Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7689127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:05:33+00:00 2026-05-31T20:05:33+00:00

is it possible to do calculation like this in C? A*exp(i*(b+c)) + D*exp(i*(e+f)), where

  • 0

is it possible to do calculation like this in C?

A*exp(i*(b+c)) + D*exp(i*(e+f)),

where A,b,c,D,e,f are real numbers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:05:34+00:00Added an answer on May 31, 2026 at 8:05 pm

    Section 7.3 in the C99 Standard (or C11 Standard) deals with complex numbers.

    Example code

    #include <complex.h>
    #include <stdio.h>
    
    int main(void) {
        double A, b, c, D, e, f;
        complex double x;
        const complex double i = csqrt(-1);
    
        A = 1;
        b = 2;
        c = 3;
        D = 4;
        e = 5;
        f = 6;
        x = A * cexp(i * (b + c)) + D * cexp(i * (e + f));
        printf("value is %f + %fi\n", creal(x), cimag(x));
    }
    

    You can see the code running at ideone: http://ideone.com/d7xD7

    The output is

    value is 0.301365 + -4.958885i
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do I calculate someone's age in C#? Maybe this could be
I have an Excel sheet and have this formula below. I would like to
I have a table with alot of rows looking something like this: id-name-date---pcs 1
There were many similar questions around but none addressed this calculation. Using javascript i
Is it possible to vectorise code like the following? length(x) <- 100; x[1] <-
Is it possible to sort on a calculation of 2 rows in mySQL? For
Possible Duplicate: In java, in this program it suddenly stops running properly at a
I have a List/IEnumerable of objects and I'd like to perform a calculation on
a short question: is it possible to assign the result of a calculation within
I'm setting up a data model in django using multiple-table inheritance (MTI) like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.