Tagged Questions
4
votes
2answers
246 views
Implementation of builtin function Fold
In the documentation for fold, it says
Fold[f,x,list] gives the last element of FoldList[f,x,list].
But this is surely not the way it is implemented, right? ...
3
votes
2answers
185 views
How does RootOfUnityQ work?
How does Mathematica's RootOfUnityQ function work?
That is, how does Mathematica know if a number is a root of unity?
Example:
Let $x = \frac{1-i \sqrt{2+\sqrt{5}}}{1+i \sqrt{2+\sqrt{5}}}$.
Then
...
5
votes
1answer
187 views
Can we know the background code associated with basic mathematica functions
I wanted to know how computers calculate basic functions like Sqrt so first I checked how humans do it I found that they use something called "Newton's method" that ...