Jump to content

euler's identity is calculated incorrectly


Recommended Posts

To get the value of "e" you may want to type   =exp(1)

 

The imaginary number "i" is not supported in Alfred 4.

You can visit the calculator settings here: https://www.alfredapp.com/help/features/calculator/

 

If you want to use the math libraries of python (math, numpy) you can use this workflow:

http://www.packal.org/workflow/python-interpreter

 

Then,

 

pt    e**(1j*pi)            Gives:   (-1+1.2246467991473532e-16j)

pt real(e**(1j*pi))     Gives -1. 

 

 NOTE: 

1. In python 1j is imaginary number 1i. 

2. In python power operation is **

Edited by Bhishan
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...