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) Quote 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. Quote 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 Quote Link to post

## Recommended Posts

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.