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

  • SEARCH
  • Home
  • 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 9313171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:48:45+00:00 2026-06-19T01:48:45+00:00

So I tried to check Euler’s İdentity in python console: import math import cmath

  • 0

So I tried to check Euler’s İdentity in python console:

import math
import cmath
cmath.exp(1j*math.pi)

and result was:

-1+1.2246063538223773e-16j

Shouldn’t it be just -1.

  • 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-19T01:48:47+00:00Added an answer on June 19, 2026 at 1:48 am

    Imagine you were doing this calculation but you started with only 5 digits of pi and then at every stage you rounded to 5 significant figures. Do you think you’d get an exact answer? No, of course not, the tiny errors at each stage would produce an error in the answer.

    Floating point maths is the same, except that this time you’re working in binary instead of decimal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks for previous replies, I tried to check the data connection through code, I
I tried to write a function to check key code with JavaScript. It's working
I tried to make ValidationAttribute which would check the database whether such an object.
I tried the below code to check whether my mobile is connected to a
Please check my website out: http://www.budgie.richardcmpage.com/index.php I've tried all sorts and can't get the
I'm trying to check a checkbox, i've tried doing the following :- $('#someId').attr('checked','checked'); $('#someId').attr('checked',
How can I check if a variable has something in it? I tried checking
How do I check if a textarea contains nothing? I tried with this code:
I'm trying to check if a textbox starts with a - . I tried
This continues from a previous question . I tried the suggested fix to check

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.