FAQs and Support Center

Assumptions on variables

Assumptions can be used in any code where you can call Maple (i.e. either in Maple answer code, in Maple grading code, or in the creation of an algorithmic variable).

Note that these various components are not part of one Maple session like in a typical Maple worksheet and assumptions will not carry across the components.

For example, if you take an algorithmic variable:
$f=maple("assume(t>0): sqrt(t^2)");
and then reference t (either directly or indirectly via $f for instance) in Maple grading code (or even anywhere else in the question’s algorithm for that matter), there is no assumption on t at that point. The assumption would have to be explicitly added to the Maple grading code to be taken into account.

Did you find this article helpful?

© Maplesoft, a division of Waterloo Maple Inc. 2017.   • Terms of Use | Privacy | Trademarks | Site Map