help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave: assume() command in symbolic toolbox.


From: Colin Macdonald
Subject: Re: Octave: assume() command in symbolic toolbox.
Date: Wed, 25 Jan 2017 10:19:05 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

On 25/01/17 08:53, Constantine Frangos wrote:
(1) How is the assume() command applied in order to limit
a symbolic variable w to a real interval (a, b], for example,
(-pi/2, pi/2], [0, pi], (-pi, pi], etc?

Unfortunately, I don't know any way to do this at the moment. If you're using "solve", perhaps you can pass inequality constraints to it?

The symbolic package uses Sympy; here is a perhaps helpful thread about this in Sympy:

http://stackoverflow.com/questions/19553652/sympy-limit-symbol-variable-to-interval

(2) The documentation for the assume() command states that it
can be used as follows:

sym X = assume (X, COND1, COND2, …)

Some of the possible values for cond1, cond2, etc seem to be
'positive', 'negative', 'integer', 'real'.

What are all the other possible values?

See "help assumptions" and in particular:

>> assumptions ('possible')

The upcoming 2.5.0 release will have many more options (but still no general algebraic constraints).

best,
Colin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]