ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 Apr 2016 12:32:34 -0500Evaluate whatever rsolve returns. Recurrence relationshttp://ask.sagemath.org/question/33009/evaluate-whatever-rsolve-returns-recurrence-relations/ sage: from sympy import *
sage: x = Function('x')
sage: n = var('n')
sage: q = rsolve(x(n+1)-(1+(3/(100)))*x(n),x(n),{x(0):10000})
sage: q
10000*(103/100)**n
I want to evaluate the result , say q(5) , but i get the following: ''TypeError: 'Mul' object is not callable''.
Can someone help me
brayn92298Tue, 05 Apr 2016 12:32:34 -0500http://ask.sagemath.org/question/33009/evaluating an expressionhttp://ask.sagemath.org/question/8470/evaluating-an-expression/Hello,
started to use open source mathematical software. And i have some questions since i can not find in google what i am searching for (maybe i am a bad searcher :S).
The thing is if i write in maple (with predefined F, M, q and Q):
Sum('F[ix]', 'i' = 1 .. n) = 0; '-2*F*cos(45*deg)-3*Q+4*RB*cos(45*deg)-RB*sin(45*deg)-M = 0'; evalf[4](solve(%, RB))
I get
RB := 19.51
And in Sage:
solve(-2*F*cos(45*deg)-3*Q+4*RB*cos(45*deg)-RB*sin(45*deg)-M,RB)
i get:
[23/3*sqrt(2) + 26/3 == 23/3*sqrt(2) + 26/3]
Now i do not find any equivalent to evalf in sage.
Could someone help me, please?JustisSun, 13 Nov 2011 23:59:50 -0600http://ask.sagemath.org/question/8470/