I have a class with a lot of def functions.  It says 2 args.  Right.
It says I am passing 3.
I am not a Python wizard.
Thanx

Calling it with

val31a=SR(request.args['Expression2'][0])
      val30a = SR(request.args['Var2'][0])
      s = Rfuncs()
      ans=s.Integrate3a(val31a,val30a)

class Rfuncs:
    def Integrate3a(exp1,exp2):
        eq11=exp1;w=b*1 #just an expression
        w1=maxima.subst(eq11,b,w)
        R1 = integral(exp1,exp2)
        w2 = latex(eq11); w3 = "$"+w2+"$"
        R2 = latex(R1);R3="$"+R2+"$"+"+ Constant"
        Beq1="$\int" + w2 + "dx$"
        #print Beq1
        str1="Calculate the following integral. \
        The default example is an expression you will need to do
partial \
        fraction decomposition, then integrate each of the parts. \
        Try the ParFrac function then try it on your own."
        str2="The integral is :"
        return str1,Beq1,str2,R3
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to