Jacques Gélinas on Wed, 09 May 2018 01:20:06 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

RE: Findroot


Try  ?? solve


for example         solve(x=1,2,cos(x))


or                          solve(x=-1,1,x-cos(x))


You can use \p100 to get 100 digits.


Jacques Gélinas




De : Georges Nassif <georgesnassif7@gmail.com>
Envoyé : 8 mai 2018 18:27
À : pari-users@pari.math.u-bordeaux.fr
Objet : Findroot
 
Hello,

Is there a function in PARI library which is equivalent to Findroot in Mathematica?

For example:

FindRoot[Cos[x] == x, {x, 0}] 

will find a solution to cos(x)=x near x=0  

Thank you in advance,

Georges