Difference between revisions of "Assume Command"
From GeoGebra Manual
m (added Note template) |
(:{{example|1=<code><nowiki>Assume(x>0 && n>0,Solve(log(n^2*(x/n)^lg(x))=log(x^2),x))</nowiki></code> yields <code>{x = 100, x = n}</code>}}) |
||
Line 3: | Line 3: | ||
;Assume( <Condition>, <Expression> ) | ;Assume( <Condition>, <Expression> ) | ||
:Evaluates the expression according to the condition | :Evaluates the expression according to the condition | ||
− | :{{example|1=<code><nowiki>Assume(a > 0,Integral(exp(-a x), 0, infinity))</nowiki></code> yields | + | :{{example|1=<code><nowiki>Assume(a > 0,Integral(exp(-a x), 0, infinity))</nowiki></code> yields <code>1 / a</code>.}} |
+ | :{{example|1=<code><nowiki>Assume(x>0 && n>0,Solve(log(n^2*(x/n)^lg(x))=log(x^2),x))</nowiki></code> yields <code>{x = 100, x = n}</code>}} | ||
+ | |||
+ | |||
{{note|1=See also [[Solve Command]].}} | {{note|1=See also [[Solve Command]].}} |
Revision as of 17:03, 18 March 2019
CAS Syntax
- Assume( <Condition>, <Expression> )
- Evaluates the expression according to the condition
- Example:
Assume(a > 0,Integral(exp(-a x), 0, infinity))
yields1 / a
.
- Example:
Assume(x>0 && n>0,Solve(log(n^2*(x/n)^lg(x))=log(x^2),x))
yields{x = 100, x = n}
Note: See also Solve Command.