Solving Equations Numerically

Description

If it is not possible to find an exact solution to an equation or equations specified, one can use find_root to find a numerical solution. For example, solve does not return anything interesting for the following equation:

sage: theta = var('theta')
sage: solve(cos(theta)==sin(theta), theta)

Sage Cell

Code

phi = var('phi')
find_root(cos(phi)==sin(phi),0,pi/2)

Options

None

Tags

Primary Tags: Precalculus: Algebra of real numbers and simplifying expressions

Secondary Tags: Algebra of Real Numbers and Simplifying Expressions: Solving algebraic equations

Related Cells

Attribute

Permalink:

Author: Sage Tutorial v7.6

Date: 08 Jul 2017 07:51

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License