Post Reply 
help with hpppl
05-09-2016, 01:25 PM
Post: #13
RE: help with hpppl
(05-09-2016 06:48 AM)leprechaun Wrote:  I have tried the simplest code I could think of. No variables passed to the program. Nothing sophisticated. Results are commented in the code. The [undef] result is contained as one could expect.

This is no special coding and similar tasks will arise sooner or later to everyone. What changes in the firmware might cause the result? How should I code a problem like the original one and what did I get wrong with the patch note about finally integrating the cas into home??

Code:

EXPORT tst()
BEGIN
local argument,result;

//version1 result is [undef]
//argument:="b^2=10,b";
//CAS.solve(argument);

//version2 result is "solve(b^2=10,b" i.e. the call
//argument:="solve(b^2=10,b)";
//CAS(argument);

//version 3 result is [b^2=10 b]
//CAS("b^2=10,b");


END;

P.S:
F1:="B^2=10";
RETURN solve(F1,B);

Does the trick, BUT(!) that is really unintuitive and no improvement and I am sure that there must be an other way. And second it is totally different from what the other posters suggested i.e. useing lower case letters.... because F1:="b^2=10"; solve(F1,b) in all variants fail with syntax errors.

So I am curious about what is going on.

My suspicion is that you do not have a clear understanding of variable types and their priorities. B is a system-wide variable whereas b is generally not (it must be created). Moreover, when you use F1:="b^2=10" this will likely generate and internal syntax error if b does not already exist as a variable.

http://www.hpmuseum.org/forum/thread-215.html

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
help with hpppl - leprechaun - 05-07-2016, 12:30 PM
RE: help with hpppl - roadrunner - 05-07-2016, 04:55 PM
RE: help with hpppl - roadrunner - 05-07-2016, 05:00 PM
RE: help with hpppl - salvomic - 05-07-2016, 05:15 PM
RE: help with hpppl - roadrunner - 05-08-2016, 01:52 AM
RE: help with hpppl - leprechaun - 05-08-2016, 06:41 PM
RE: help with hpppl - leprechaun - 05-08-2016, 06:46 PM
RE: help with hpppl - roadrunner - 05-09-2016, 12:14 AM
RE: help with hpppl - roadrunner - 05-09-2016, 12:55 PM
RE: help with hpppl - CH3791 - 05-28-2016, 01:17 AM
RE: help with hpppl - leprechaun - 05-09-2016, 05:14 AM
RE: help with hpppl - leprechaun - 05-09-2016, 06:48 AM
RE: help with hpppl - Han - 05-09-2016 01:25 PM
RE: help with hpppl - leprechaun - 05-09-2016, 05:35 PM
RE: help with hpppl - Tim Wessman - 05-09-2016, 05:53 PM



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