Post Reply 
Checking parallelism PROBLEM... (SOLVED!)
04-12-2015, 01:49 AM
Post: #6
RE: Checking parallelism PROBLEM!
Programs don't have to have any arguments. Those are completely optional. A "program" is essentially a collection of "functions" that are called by some "main" function. You can create two kinds of functions: CAS and non-CAS. If you plan to do any computations that require the CAS (basically anything symbolic) then it may be best to create a CAS function (or subroutine) to specifically handle those computations.

In your case, simply typing:

Code:
#cas
paraexample():=
begin
local result;

result:=is_parallel(line(3*x+5*y=3),line(4*x-8*y=7));
return(result);
end;
#end

would create a subroutine named paraexmple that takes no arguments and simply returns a 1 or 0. That's a pure CAS function. If you prefer to not have to create a pure CAS function, you could do:

Code:
paraexample()
begin
local result;
result:=CAS("is_parallel(line(3*x+5*y=3),line(4*x-8*y=7))");
return(result);
end;

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


Messages In This Thread
RE: Checking parallelism question... - Han - 04-11-2015, 06:03 PM
RE: Checking parallelism PROBLEM! - Han - 04-12-2015 01:49 AM
RE: Checking parallelism PROBLEM! - Spybot - 04-12-2015, 02:28 AM
RE: Checking parallelism PROBLEM! - Han - 04-12-2015, 02:53 AM
RE: Checking parallelism PROBLEM! - Spybot - 04-12-2015, 04:36 AM



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