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: algebra

Secondary Tags:

## Related Cells

Solving Equations

Solving Equations for One Variable in Terms of Others

## Attribute

Permalink:

Author: Sage Tutorial v7.6

Date: 08 Jul 2017 07:51

Submitted by: Tom Judson