Difference between revisions of "Simplify Command"
From GeoGebra Manual
m |
(command syntax: changed [ ] into ( )) |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|algebra}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|algebra}} | ||
− | ;Simplify | + | ;Simplify( <Function> ) |
:Simplifies the terms of the given function, if possible. | :Simplifies the terms of the given function, if possible. | ||
− | :{{example| 1=<code><nowiki>Simplify | + | :{{example| 1=<code><nowiki>Simplify(x + x + x)</nowiki></code> yields the function ''f(x) = 3x''.}} |
− | ;Simplify | + | ;Simplify( <Text> ) |
:Attempts to tidy up text expressions by removing repeated negatives etc. | :Attempts to tidy up text expressions by removing repeated negatives etc. | ||
− | :{{example| 1=For ''a'' = ''b'' = ''c'' = -1 <code><nowiki>Simplify | + | :{{example| 1=For ''a'' = ''b'' = ''c'' = -1 <code><nowiki>Simplify("f(x) = " + a + "x² + " + b + "x + " + c)</nowiki></code> yields the text ''f(x) = -x<sup>2</sup> - x - 1''.}} |
:{{note| <div>The [[FormulaText Command]] normally produces better results and is simpler.</div>}} | :{{note| <div>The [[FormulaText Command]] normally produces better results and is simpler.</div>}} | ||
{{note|<div>This command needs to load the Computer Algebra System, so can be slow on some computers. Try using the [[Polynomial Command]] instead.</div>}} | {{note|<div>This command needs to load the Computer Algebra System, so can be slow on some computers. Try using the [[Polynomial Command]] instead.</div>}} | ||
== CAS Syntax == | == CAS Syntax == | ||
− | ;Simplify | + | ;Simplify( <Function> ):Simplifies the terms of the given function, if possible. Undefined variables can be included in the terms. |
− | :{{example|1=<code><nowiki>Simplify | + | :{{example|1=<code><nowiki>Simplify(3 * x + 4 * x + a * x)</nowiki></code> yields ''xa'' + ''7x''.}} |
:{{Note|1=See also [[Factor Command]].}} | :{{Note|1=See also [[Factor Command]].}} |
Revision as of 13:04, 5 October 2017
- Simplify( <Function> )
- Simplifies the terms of the given function, if possible.
- Example:
Simplify(x + x + x)
yields the function f(x) = 3x.
- Simplify( <Text> )
- Attempts to tidy up text expressions by removing repeated negatives etc.
- Example: For a = b = c = -1
Simplify("f(x) = " + a + "x² + " + b + "x + " + c)
yields the text f(x) = -x2 - x - 1.
- Note:The FormulaText Command normally produces better results and is simpler.
Note:
This command needs to load the Computer Algebra System, so can be slow on some computers. Try using the Polynomial Command instead.
CAS Syntax
- Simplify( <Function> )
- Simplifies the terms of the given function, if possible. Undefined variables can be included in the terms.
- Example:
Simplify(3 * x + 4 * x + a * x)
yields xa + 7x.
- Note: See also Factor Command.