Difference between revisions of "Simplify Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(removed unnecessary example)
Line 3: Line 3:
 
;Simplify[ <Function> ]
 
;Simplify[ <Function> ]
 
:Simplifies the terms of the given function, if possible.
 
:Simplifies the terms of the given function, if possible.
:{{example| 1=<div><code><nowiki>Simplify[x + x + x]</nowiki></code> yields the function ''f(x) = 3x''.</div>}}
+
:{{example| 1=<code><nowiki>Simplify[x + x + x]</nowiki></code> yields the function ''f(x) = 3x''.}}
 
;Simplify[ <Text> ]
 
;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=<div>For ''a=b=c=-1'' <code><nowiki>Simplify["f(x) = " + a + "x² + " + b + "x + " + c]</nowiki></code> yields ''f(x)=-x^2 - x - 1''.</div>}}
+
:{{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^2 - x - 1''.}}
 
:{{note| 1=The [[FormulaText Command]] normally produces better results and is simpler.}}
 
:{{note| 1=The [[FormulaText Command]] normally produces better results and is simpler.}}
 
== CAS Syntax ==
 
== CAS Syntax ==
 
;Simplify[ <Function> ]:Simplifies the terms of the given function, if possible. Undefined variables can be included in the terms.  
 
;Simplify[ <Function> ]:Simplifies the terms of the given function, if possible. Undefined variables can be included in the terms.  
:{{example|1=<br><code><nowiki>Simplify[3 * x + 4 * x + a * x]</nowiki></code> yields  ''x * a + 7 * x'' while...<br><code><nowiki>Factor[3 * x + 4 * x + a * x]</nowiki></code>  yields ''x * (a + 7)''.}}
+
:{{example|1=<br><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 09:17, 24 June 2013



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) = -x^2 - x - 1.
Note: The FormulaText Command normally produces better results and is simpler.

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.
© 2024 International GeoGebra Institute