Ask Your Question

Antoine-sac's profile - activity

2021-09-08 21:17:46 +0100 received badge  Famous Question (source)
2019-09-13 11:53:49 +0100 received badge  Notable Question (source)
2019-09-13 11:53:49 +0100 received badge  Popular Question (source)
2016-09-21 19:12:33 +0100 received badge  Student (source)
2016-09-21 18:24:49 +0100 received badge  Scholar (source)
2016-09-21 16:42:45 +0100 commented answer Sage-5.0 VirtualBox shell access

For information, I had to use [host]+F7 to come back to chrome (F1 to F6 open new terminals). This for sage 7.3.

2016-09-21 14:17:57 +0100 asked a question declare a variable as *not* an integer for solve

I am trying to solve symbolically a simple equation for x:

solve(x^K + d == R, x)

I am declaring these variables and assumptions:

var('K, d, R')
assume(K>0)
assume(K, 'real')
assume(R>0)
assume(R<1)

assumptions()
︡> [K > 0, K is real, R > 0, R < 1]

Yet when I run the solve, I obtain the following error:

Error in lines 1-1

Traceback (most recent call last):

File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 957, in execute exec compile(block+'\n', '', 'single') in namespace, locals

...

File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/sage/interfaces/interface.py", line 671, in __init__ raise TypeError(x)

TypeError: Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation may help (example of legal syntax is 'assume(K>0)', see assume? for more details)

Is K an integer?

Apparently, maxima is asking whether K is an integer? But I explicitly declared it 'real'! How can I spell out to maxima that it should not assume that K is an integer?

Thanks