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 )
m
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|algebra}}
{{command|cas=true|algebra}}
+
;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<sup>2</sup> - x - 1''.}}
:{{note| 1=The [[FormulaText Command]] normally produces better results and is simpler.}}
+
:{{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>}}
 +
 
 
== 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)''.}}
+
 
:{{Note|1=See also [[Factor Command]].}}
+
:{{examples|<div>
 +
:*<code><nowiki>Simplify(3 * x + 4 * x + a * x)</nowiki></code> yields <code> ''a x'' + ''7x''</code>.
 +
:*<code><nowiki>Assume(x<2,Simplify(sqrt(x-2sqrt(x-1))))</nowiki></code> yields <code>-sqrt(abs(x - 1)) + 1</code>
 +
:*<code><nowiki>Assume(x>2,Simplify(sqrt(x-2sqrt(x-1))))</nowiki></code> yields <code>sqrt(x - 1) + 1</code></div>}}
 +
:{{Note|1=See also [[Factor Command]], [[Assume Command]], [[PartialFractions Command]], [[Expand Command]], [[Polynomial Command]].}}

Latest revision as of 21:33, 15 May 2019


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.
Examples:
  • Simplify(3 * x + 4 * x + a * x) yields a x + 7x.
  • Assume(x<2,Simplify(sqrt(x-2sqrt(x-1)))) yields -sqrt(abs(x - 1)) + 1
  • Assume(x>2,Simplify(sqrt(x-2sqrt(x-1)))) yields sqrt(x - 1) + 1
© 2024 International GeoGebra Institute