Post Reply 
PYTHON program not work
09-05-2021, 11:06 AM
Post: #3
RE: PYTHON program not work
Hello everyone: I ask a question: how can you use a function, programmed with the PYTHON language, in another program? For example, if I program a function in HPPPL language, it becomes immediately usable in another program, since the result does not go through the "Terminal".
For instance:
Code:
EXPORT Rad_q(b)
BEGIN
RETURN sqrt(b);
END;
Now I use the Rad_q function in another program:
Code:
EXPORT Rad_q_Det(a)
BEGIN
LOCAL uu;
uu:=DET(a);
uu:=Rad_q(uu);
RETURN uu;
END;
In the BetaRegInc(a, b, x) program, shown at the beginning of this post, the final line of "#PYTHON EXPORT nome" contains a "print(incomplete(a, b, x));" to view the result on the terminal; even using “EXPR (TERMINAL (1))”, the result of the function always passes through the “Terminal”, before being displayed on the “main screen”. How to prevent the result of the function from passing through the terminal?
Thanks a lot, Roberto
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
PYTHON program not work - robmio - 09-05-2021, 05:59 AM
RE: PYTHON program not work - robmio - 09-05-2021, 08:54 AM
RE: PYTHON program not work - robmio - 09-05-2021 11:06 AM
RE: PYTHON program not work - Albert Chan - 09-05-2021, 03:58 PM
RE: PYTHON program not work - robmio - 09-05-2021, 04:54 PM



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