Release [REPO] CASPack - 1.0.1.1 - New


Repository

Member
Joined
Apr 29, 2013
Messages
117
gnuplot1.png
A collection of computer algebra (CAS) and graphing applications. Currently includes Mathomatic, Yacas and Gnuplot with extensive documentation and examples.
Get it from here!
 
This pnd will be updated tomorrow. I have implemented a simple system for passing command line parameters to each of the three applications at start-up, using a text file in the appropriate appdata directory. This gives a greater degree of control of the Yacas and mathomatic environments, and makes it very easy for Gnuplot to display graphs/charts created by external scripts and programs. I've finished the testing, and just now need to finish the "documentation". I've also taken the opportunity to recompile mathomatic with readline support, and correct a few typos in the PXML.xml and readme file.
 
Finally learned how to use it for more than differentiation!

So say you have a set of 4 equations, and you want to solve it for a certain variable "G":
Bash:
K+K-G=S
3*S=33
S-A=7
K-3=A
simplify all
set debug 1
repeat eliminate all
G
quit

The result is:

Bash:
Mathomatic version 15.8.2
Copyright (C) 1987-2012 George Gesslein II.
200 equation spaces available in memory,
1920 kilobytes per equation space.
ANSI color mode enabled; manage by typing "help color".
Anything done here is temporary, unless it is saved or redirected.
1-> K+K-G=S

#1: K + K - G = S

1-> 3*S=33

#2: 3*S = 33

2-> S-A=7

#3: S - A = 7

3-> K-3=A

#4: K - 3 = A

4-> simplify all

#1: (2*K) - G = S


#2: 3*S = 33


#3: S - A = 7


#4: K - 3 = A

4-> set debug 1
Success.
4-> repeat eliminate all
Solving equation #3 for (A) and substituting into the current equation...
level 1: S - A = 7
Subtracting "S" from both sides of the equation:
level 1: -1*A = 7 - S
Dividing both sides of the equation by "-1":
level 1: A = -1*(7 - S)
Solve completed:
level 1: A = -1*(7 - S)
Solving equation #1 for (K) and substituting into the current equation...
level 1: (2*K) - G = S
Adding "G" to both sides of the equation:
level 1: 2*K = S + G
Dividing both sides of the equation by "2":
level 1: K = 0.5*(S + G)
Solve completed:
level 1: K = 0.5*(S + G)
Solving equation #2 for (S) and substituting into the current equation...
level 1: 3*S = 33
Dividing both sides of the equation by "3":
level 1: S = 11
Solve completed:
level 1: S = 11

    (11 + G)
#4: -------- - 3 = 4
       2

4-> G
level 1: (0.5*(11 + G)) - 3 = 4
Adding "3" to both sides of the equation:
level 1: 0.5*(11 + G) = 7
Dividing both sides of the equation by "0.5":
level 1: 11 + G = 14
Subtracting "11" from both sides of the equation:
level 1: G = 3
Solve completed:
level 1: G = 3

#4: G = 3

4-> quit
ByeBye!! from Mathomatic.

Do the same in wolfraamalpha

I always used "reduce" from this package (pnd generates many items to run), like so:

s1:=x+y=5;s2:=x-y=1;solve({s1,s2},{x,y})

the oneliner can also be writen as:

Code:
s1:=x+y=5;
s2:=x-y=1;
solve({s1,s2},{x,y})
 
Last edited:
Back
Top