#4457: [with patch, positive review] tutorial: add find_root() to "2.4.1
Solving
Equations"
---------------------------+------------------------------------------------
Reporter: dhbradshaw | Owner: mhansen
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-3.4
Component: documentation | Resolution:
Keywords: |
---------------------------+------------------------------------------------
Old description:
> Currently, the section in the tutorial on solving equations refers only
> to analytical solutions, which are found using "solve()." When solve
> fails, it may be worth using a numerical solution.
>
> For equations with a single variable, this can be done using find_root().
> It will save new users time to find "find_root()" mentioned with
> "solve()" in the section on solving equations.
>
> Examples:
> {{{id=1|
> var('theta')
> ///
>
> <html><span class="math">\theta</span></html>
> }}}
>
> {{{id=2|
> solve(theta^2 + 1==4)
> ///
>
> <html><span class="math">\left[\theta = -\sqrt{ 3 },
> \theta = \sqrt{ 3 }\right]</span></html>
> }}}
>
> {{{id=3|
> solve(cos(theta)==sin(theta))
> ///
>
> <html><span class="math">\left[\sin \left( \theta \right) = \cos \left(
> \theta \right)\right]</span></html>
> }}}
>
> {{{id=4|
> find_root(cos(theta)==sin(theta),0,pi/2)
> ///
>
> <html><span class="math">0.785398163397</span></html>
> }}}
>
> {{{id=5|
> pi.n()/4
> ///
>
> <html><span class="math">0.785398163397448</span></html>
> }}}
>
> {{{id=6|
>
> ///
> }}}
New description:
Currently, the section in the tutorial on solving equations refers only to
analytical solutions, which are found using "solve()." When solve fails,
it may be worth using a numerical solution.
For equations with a single variable, this can be done using find_root().
It will save new users time to find "find_root()" mentioned with "solve()"
in the section on solving equations.
Examples:
Examples:
{{{
var('theta')
solve(theta^2 + 1==4)
solve(cos(theta)==sin(theta))
find_root(cos(theta)==sin(theta),0,pi/2)
pi.n()/4
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4457#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---