| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168806Image: ubuntu2004
To solve an equation of the form , you first declare what the function is. In this example we have chosen a degree four polynomial.
Then the command find_root will find a root in a given interval [a,b] in the form "find_root(f,a,b)". In the example we choose a=0 and b=2 .
0.7505680692581952
The plot command provide us with a graph and is used to verify or make a guess about the answer. In this case we are verifying the numerical result with a graph of the function f in the interval [0,2]: