diff --git a/src/net/apocalypselabs/symat/MainGUI.java b/src/net/apocalypselabs/symat/MainGUI.java
index 6cb6f43..9fe2db3 100644
--- a/src/net/apocalypselabs/symat/MainGUI.java
+++ b/src/net/apocalypselabs/symat/MainGUI.java
@@ -325,7 +325,6 @@ public class MainGUI extends javax.swing.JFrame {
arrangeWindowsBtn = new javax.swing.JButton();
displaySettingsBtn = new javax.swing.JButton();
helpBtn = new javax.swing.JButton();
- globalsBtn = new javax.swing.JButton();
jPanel5 = new javax.swing.JPanel();
wikiBtn = new javax.swing.JButton();
jLabel4 = new javax.swing.JLabel();
@@ -483,19 +482,6 @@ public class MainGUI extends javax.swing.JFrame {
}
});
- globalsBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/net/apocalypselabs/symat/images/globals.png"))); // NOI18N
- globalsBtn.setText("Vars");
- globalsBtn.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
- globalsBtn.setFocusable(false);
- globalsBtn.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- globalsBtn.setOpaque(false);
- globalsBtn.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- globalsBtn.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- globalsBtnActionPerformed(evt);
- }
- });
-
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
@@ -504,12 +490,10 @@ public class MainGUI extends javax.swing.JFrame {
.addContainerGap()
.addComponent(displaySettingsBtn)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(globalsBtn)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(arrangeWindowsBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(helpBtn)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addGap(77, 77, 77)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 439, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
@@ -519,8 +503,7 @@ public class MainGUI extends javax.swing.JFrame {
.addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(arrangeWindowsBtn, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(displaySettingsBtn, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(helpBtn, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(globalsBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addComponent(helpBtn, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
@@ -793,10 +776,6 @@ public class MainGUI extends javax.swing.JFrame {
loadFrame(new WebBrowser("SyMAT Wiki", "http://wiki.symatapp.com", WebBrowser.WIKI_LOGO));
}//GEN-LAST:event_wikiBtnActionPerformed
- private void globalsBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_globalsBtnActionPerformed
- loadFrame(new Globals());
- }//GEN-LAST:event_globalsBtnActionPerformed
-
private void forumBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_forumBtnActionPerformed
loadFrame(new WebBrowser("Community Forum", "http://forum.symatapp.com/", WebBrowser.FORUM_LOGO));
}//GEN-LAST:event_forumBtnActionPerformed
@@ -961,7 +940,6 @@ public class MainGUI extends javax.swing.JFrame {
public static javax.swing.JButton displaySettingsBtn;
public static javax.swing.JButton editorBtn;
public static javax.swing.JButton forumBtn;
- public static javax.swing.JButton globalsBtn;
public static javax.swing.JButton graphBtn;
public static javax.swing.JButton helpBtn;
public static javax.swing.JLabel jLabel1;
diff --git a/src/net/apocalypselabs/symat/functions.py b/src/net/apocalypselabs/symat/functions.py
index 80fe4d9..be6330e 100644
--- a/src/net/apocalypselabs/symat/functions.py
+++ b/src/net/apocalypselabs/symat/functions.py
@@ -29,8 +29,4 @@ def drawdot(x, y):
def simplify(expr):
return _.simplify(expr)
def vpa(expr):
- return _.vpa(expr)
-def setglobal(key,val):
- _.setglobal(key,val)
-def getglobal(key):
- return _.getglobal(key)
\ No newline at end of file
+ return _.vpa(expr)
\ No newline at end of file
diff --git a/src/net/apocalypselabs/symat/help/basics.html b/src/net/apocalypselabs/symat/help/basics.html
index d2d9a53..122298c 100644
--- a/src/net/apocalypselabs/symat/help/basics.html
+++ b/src/net/apocalypselabs/symat/help/basics.html
@@ -5,8 +5,8 @@
Getting Started
Open a new shell by clicking the button.
-
Try typing commands, like "2*2" or "sin[.5]".
-
You can make variables too, try "x=.5" then "sin[x]".
+
Try typing commands, like "2*2" or "sin(.5)".
+
You can make variables too, try "x=.5" then "sin(x)".
SyMAT keeps track of the last few commands you enter in a shell.
To run one again, use the up and down keys to navigate the history.
diff --git a/src/net/apocalypselabs/symat/help/commands.html b/src/net/apocalypselabs/symat/help/commands.html
index 4071f83..cf4da9d 100644
--- a/src/net/apocalypselabs/symat/help/commands.html
+++ b/src/net/apocalypselabs/symat/help/commands.html
@@ -14,8 +14,6 @@
Aliases: sym
simplify("expr") Simplifies the given expression.
vpa("expr") Attempts to find the numerical value of "expr".
-
global("name",value) Sets global variable "name" to value.
-
global("name") Gets the global variable with id "name".
replace("text", "find", "replace") Returns "text" with all occurrences of "find" changed to "replace".
subs("function", "var", "replace") Replaces all occurrences of "var" with "replace" and solves.
Returns the answer or 0.0 if there is no numerical answer.
diff --git a/src/net/apocalypselabs/symat/resources/jsfunctions.txt b/src/net/apocalypselabs/symat/resources/jsfunctions.txt
index d7c1513..c556653 100644
--- a/src/net/apocalypselabs/symat/resources/jsfunctions.txt
+++ b/src/net/apocalypselabs/symat/resources/jsfunctions.txt
@@ -7,8 +7,6 @@ deg(0)|Convert a given number in radians to degrees.
subs('',"x")|Solve an equation for the second argument.
simplify('')|Simplify the given function.
vpa('')|Computes numerical value or simplifies.
-setglobal("", obj)|Set global variable with the given id.
-getglobal("")|Get global variable with the given id.
plot()|Show the plot window.
plot('')|Graph the given function.
plotname("")|Sets the title of the graph window.
diff --git a/src/net/apocalypselabs/symat/resources/pyfunctions.txt b/src/net/apocalypselabs/symat/resources/pyfunctions.txt
index 502da13..4e26858 100644
--- a/src/net/apocalypselabs/symat/resources/pyfunctions.txt
+++ b/src/net/apocalypselabs/symat/resources/pyfunctions.txt
@@ -14,8 +14,6 @@ plotclr()|Reset the graph.
drawdot(x, y)|Places a dot at the given coordinates.
simplify('')|Simplify the given function.
vpa('')|Computes numerical value or simplifies.
-global("", obj)|Set global variable with the given id.
-global("")|Get global variable with the given id.
fabs(0)|Absolute value of number.
asin(0)|
acos(0)|