Hello,
When I use the solve() function with this code:
var('r2')
c = P*e^(r*n)
d = P*(1+r2)^n
solve(c==d,r2)
I receive the following exception:
========
Traceback (most recent call last):
File "", line 1, in
File "/home/sage/sage_notebook/worksheets/kosan_ma_p236/code/2.py",
line 8, in
solve(c==d,r2)
File "/home/sage/", line 1, in
File
"/opt/sage-2.5.3-linux-32bit-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/equations.py",
line 379, in solve
return f.solve(*args, **kwds)
File
"/opt/sage-2.5.3-linux-32bit-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/equations.py",
line 251, in solve
s = m.solve(x).str()
File
"/opt/sage-2.5.3-linux-32bit-i686-Linux/local/lib/python2.5/site-packages/sage/interfaces/expect.py",
line 731, in __call__
return self._obj.parent().function_call(self._name, [self._obj] +
list(args))
File
"/opt/sage-2.5.3-linux-32bit-i686-Linux/local/lib/python2.5/site-packages/sage/interfaces/expect.py",
line 678, in function_call
return self.new("%s(%s)"%(function, ",".join([s.name() for s in args])))
File
"/opt/sage-2.5.3-linux-32bit-i686-Linux/local/lib/python2.5/site-packages/sage/interfaces/expect.py",
line 580, in new
return self(code)
File
"/opt/sage-2.5.3-linux-32bit-i686-Linux/local/lib/python2.5/site-packages/sage/interfaces/maxima.py",
line 374, in __call__
return Expect.__call__(self, x)
File
"/opt/sage-2.5.3-linux-32bit-i686-Linux/local/lib/python2.5/site-packages/sage/interfaces/expect.py",
line 536, in __call__
return cls(self, x)
File
"/opt/sage-2.5.3-linux-32bit-i686-Linux/local/lib/python2.5/site-packages/sage/interfaces/expect.py",
line 765, in __init__
raise TypeError, x
TypeError: Computation failed since Maxima requested additional
constraints (use assume):
Is n an integer?
========
Does anyone have any thoughts on ways to fix this problem?
Thanks in advance :-)
Ted
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---