### The Maxima on-line user's manual

Algebra Calculator

#### Optimize

Function: optimize (<expr>) Returns an expression that produces the same value and side effects as <expr> but does so more efficiently by avoiding the recomputation of common subexpressions. `optimize` also has the side effect of "collapsing" its argument so that all common subexpressions are shared. Do `example (optimize)` for examples.

There are also some inexact matches for `optimize`. Try `?? optimize` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

##### optimize

y(x) := (y0+(2*A/PI)*...

A=-672.67335;

w=55.88089;

Calculate

##### optimize-sin-sqrt

optimize ( sqrt(1-sin...

Calculate

##### optimize-ratsimp-xthru

a: 1/(c-d)-c/(c^2-d^2...

xthru(a);

b:ratsimp(a);

Calculate

##### optimize

y(x) := (y0+(2*A/PI)*...

A=-672.67335;

w=55.88089;

Calculate

? optimize;

Calculate

##### optimize

y(x) := (y0+(2*A/PI)*...

A=-672.67335;

w=55.88089;

Calculate

##### optimize-sin-sqrt

optimize ( sqrt(1-sin...

Calculate

##### optimize-ratsimp-xthru

a: 1/(c-d)-c/(c^2-d^2...

xthru(a);

b:ratsimp(a);

Calculate

##### optimize

y(x) := (y0+(2*A/PI)*...

A=-672.67335;

w=55.88089;

Calculate

? optimize;

Calculate