iblamefish 0 Posted May 30, 2019 Share Posted May 30, 2019 I was showing off Alfred to a friend and proving that it was better than spotlight. I typed =e^(i*pi) and was surprised and impressed that it actually did a calculation. But the result was 1, where it should be -1. https://www.wolframalpha.com/input/?i=e^(i*pi) Link to post

iblamefish 0 Posted May 30, 2019 Author Share Posted May 30, 2019 I've done some further testing, and it may not have done any calculation at all =e returns 0. Link to post

Bhishan 4 Posted May 30, 2019 Share Posted May 30, 2019 (edited) 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 May 30, 2019 by Bhishan deanishe 1 Link to post

## Recommended Posts

## 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