On Fri, Jun 3, 2022, at 23:54, Brinley Patterson wrote:
> Hi,
>
> By using the exponential equation:
>
> exp(x) = (sum{k=0}{n} 1/ k! ) ^ x
>
> the speed and accuracy of calculating exponent greatly increases. Plus
> it makes it easier to use with imaginary numbers. I have the python
> function code if you are interested to learn more about this. This
> equation can then be used to calculate sine and cos more efficiently
> using the exponent form of them both.
Hi,
From the equation you posted it sounds like your recommendation is to compute
`e` from a truncated Taylor series, and then raise that number to the `x`th
power. But we already know "the" double-precision value of `e`, a.k.a.
`exp(1)`. So the recommended alternative would be more work than using
double-precision `e` and then raising _that_ to the `x`th power.
So this makes me think that I missed your point. Could you please try
elaborating on your recommendation?
AndrĂ¡s
>
> Kind regards,
>
> Brinley
> MSc Machine Learning
> BSc Mathematical Physics
> ___
> NumPy-Discussion mailing list -- numpy-discussion@python.org
> To unsubscribe send an email to numpy-discussion-le...@python.org
> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
> Member address: deak.and...@gmail.com
___
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com