HP Forums
Calling Program from Advanced Graphing - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Calling Program from Advanced Graphing (/thread-176.html)



Calling Program from Advanced Graphing - Tugdual - 12-20-2013 08:32 AM

Is there a way to call functions from advanced graphing app?
I created a very simple program:
Code:

EXPORT func(X, Y)
BEGIN
return X^2+Y^2;
END;

From the Function App I can call func(X,X) and see a plot
From the Advanced Graphing App if I enter func(X,Y)<=4 I get "Error: Invalid object"

Why the Prime is not consistent?


RE: Calling Program from Advanced Graphing - cyrille de brébisson - 12-20-2013 09:35 AM

Hello,

short reply: NO.

the reason for it is that the advanced grapher does NOT evaluate the function for each x/y, it uses inteval arithmetics on the input function to deduce where things are true or false...

unfortunately, this only works on functions that the interval arithmetic engine can analyse and does not work on programs...

Maybe one day we will create an 'interval' object and modify all build in functions to work with these to allow a program to be called with an interval and return an interval... this would allow what you are asking for... but this is prety advanced stuff!

Cyrille