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 8942519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:32:06+00:00 2026-06-15T11:32:06+00:00

Trying to convert a number from rectangular to polar form, ie from 20+j25 to

  • 0

Trying to convert a number from rectangular to polar form, ie from 20+j25 to 32<38.66

here’s what i have so far:

    static void Main(string[] args)
    {
        Complex A = new Complex (0.4, 0.3);
        Complex B = new Complex (0.6, 0.7);
        Complex C = new Complex (24, 19);
        Complex D = A + B + C;

        Console.WriteLine (D);

        Console.ReadLine();
    }

That gives me the answer 20, 25. which is in rectangular form. how would i go about making this polar?

Thanks

EDIT:
Ok i’ve made a few changes but still can’t get the right answer. Using the code:

    static void Main(string[] args)
    {
        Complex RA = new Complex(25, 20);
        Console.WriteLine("{0} + i{1}", RA.Real, RA.Imaginary);

        double r, q;
        r = Math.Sqrt((RA.Real * RA.Real) + (RA.Imaginary * RA.Imaginary));
        q = Math.Atan(RA.Imaginary/RA.Real);
        Console.WriteLine("{0} < {1}", r, q);
        Console.ReadLine();
    }

I’m getting 32 < 0.647… the answer should be 32<38.66. Can anyone explain why i’m getting the wrong angle?
Thanks

  • 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-06-15T11:32:07+00:00Added an answer on June 15, 2026 at 11:32 am

    Got it. Have to convert radians to degrees. Thanks for the help everyone!

        static void Main(string[] args)
        {
            Complex RA = new Complex(25, 20);
            Console.WriteLine("{0} + i{1}", RA.Real, RA.Imaginary);
    
            double r, q, z;
            r = Math.Sqrt((RA.Real * RA.Real) + (RA.Imaginary * RA.Imaginary));
            q = Math.Atan(RA.Imaginary/RA.Real);
            z = (q * (180/Math.PI));
            Console.WriteLine("{0} < {1}", r, z);
            Console.ReadLine();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use std::ostringstream to convert a number into a string (char *),
I'm trying to convert a number from an integer into an another integer which,
I am trying to grab a number from a text box entry, convert it
How can I convert a number contained in a string from any base to
I'm trying to convert a big-endian 2 byte string into a numeric port number.
I am trying to convert from an int to a string but I am
Whilst trying to convert the number from the value of a numericupdown to an
I'm trying to convert a string value I retrieved from an XML parser into
I am trying to convert a long value ( number of milliseconds elapsed from
I am trying to convert string to double. But i am getting the number

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.