Post Reply 
def functions on advanced graphing
04-11-2018, 09:35 PM (This post was last modified: 07-27-2018 11:24 PM by compsystems.)
Post: #1
def functions on advanced graphing
Hello, I want to define two functions for the application advanced graphing from history view.

purge(X,Y);
from HOME V1(X,Y):=X-2*Y=7; V2(X,Y):=5*X-3*Y=2; returns Error: Invalid input

from CAS V1(X,Y):=X-2*Y=7; V2(X,Y):=5*X-3*Y=2; returns (X,Y)->false,(X,Y)->false
solve([V1(X,Y),V2(X,Y)],[X,Y]) returns [X,Y] ?

although pressing the SYMB button the definitions of the functions are well defined

How can I define or externally delete the variables of the applications?

mechanical binary calculator https://www.youtube.com/watch?v=NQX6irk11qA
Find all posts by this user
Quote this message in a reply
04-11-2018, 09:47 PM
Post: #2
RE: def functions on advanced graphing
I simply tried V1:="X*Y=2" which works in Home as well as in CAS.
Arno
Find all posts by this user
Quote this message in a reply
04-11-2018, 10:07 PM (This post was last modified: 07-27-2018 11:33 PM by compsystems.)
Post: #3
RE: def functions on advanced graphing
but on CAS V1:="X*Y=2" returns (X,Y)->false

same for

V1:=' X-2*Y=7' returns (X,Y)->false
V2:=' 5*X-3*Y=2'

Advanced_Graphing.V1(X,Y):= X-2*Y=7;
returns (X,Y)->false (CAS)
Error: Invalid input (Home)
Advanced_Graphing.V2(X,Y):= 5*X-3*Y=2;

CAS("V1(X,Y):=X-2*Y=7") returns program([0.,0.],[0.],false)
CAS("V2(X,Y):= 5*X-3*Y=2")

and how do I eliminate them then the variables V1, V2
purge(Advanced_Graphing.V2); // not work

HOME
purge(X,Y);
Advanced_Graphing.V1(X,Y):= 'X-2*Y=7' => Error: Invalid input
Advanced_Graphing.V1:='X-2*Y=7' // ok

purge(X,Y);
Advanced_Graphing.V2(X,Y):= '5*X-3*Y=2';
Advanced_Graphing.V2:= '5*X-3*Y=2'; // ok

mechanical binary calculator https://www.youtube.com/watch?v=NQX6irk11qA
Find all posts by this user
Quote this message in a reply
04-12-2018, 06:18 AM (This post was last modified: 04-12-2018 06:20 AM by Arno K.)
Post: #4
RE: def functions on advanced graphing
Advanced_Graphing.V1:="X*Y=3" works from where I tried to fill that in V1, deleting is as simple as entering: Advanced_Graphing.V1:="", but you have to use strings to get that done, not quotes nor anything else.
Arno
Find all posts by this user
Quote this message in a reply
Post Reply 




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