Post Reply 
Integration in Python
05-08-2021, 04:45 PM
Post: #2
RE: Integration in Python
In reality, the calculation of the integral, with extremes equal to "xx = 0" and "yy = 3", instead of being equal to 9/2, becomes equal to "yy^2/2 - xx^2/2". How can I express, in the integral, the values given to "xx" and "yy"?

Code:

#PYTHON EXPORT integrale
import sys
from hpprime import *
from cas import *
xx=sys.argv[0]
yy=sys.argv[1]
xx=float(xx)
yy=float(yy)
gg=caseval("int(x,x,xx,yy)")
print(gg)
#end
 
EXPORT Prova(a,b)
BEGIN
 PYTHON(integrale,a,b);
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Integration in Python - robmio - 05-08-2021, 04:07 PM
RE: Integration in Python - robmio - 05-08-2021 04:45 PM
RE: Integration in Python - Albert Chan - 05-08-2021, 05:34 PM
RE: Integration in Python - robmio - 05-08-2021, 07:16 PM
RE: Integration in Python - robmio - 05-08-2021, 07:42 PM



User(s) browsing this thread: 1 Guest(s)