Update internal help documentation

master
skylarmt 9 years ago
parent f285b67fe7
commit 16557ed90d

@ -241,17 +241,9 @@ public class Help extends javax.swing.JInternalFrame {
+ "</p>"
+ "<p>SyMAT is copyright &copy; "
+ Calendar.getInstance().get(Calendar.YEAR)
+ " Apocalypse Laboratories. Some rights reserved."
+ "</p>"
+ "<p>Internal help documentation is "
+ "licensed under the Creative Commons "
+ "Attribution-NonCommercial 4.0 International"
+ " license (CC-BY-NC). "
+ "You can use it in part or in whole "
+ "for any purpose, excepting commercial, as long as "
+ "you attribute Apocalypse Laboratories. See "
+ "http://creativecommons.org/licenses/by-nc/4.0/"
+ " for more information.</p>";
+ " Apocalypse Laboratories."
+ "<br />"
+ "This built-in documentation falls under the SyMAT Media License.</p>";
setText(text, "Manual");
} else {
try {

@ -60,3 +60,7 @@ def sleep(x):
_.sleep(x)
def pause(x):
_.pause(x)
def perms(*a):
return _.perms(a)
def md5sum(a):
return _.md5sum(a)

@ -3,7 +3,7 @@
<title>Commands</title>
</head>
<body>
<h1>Command Reference</h1>
<h1>Basic Command Reference</h1>
<p>
<b>notify(var)</b> Creates a popup box with the given content.
<br><b>ask(prompt)</b> Returns the entered text.
@ -11,7 +11,6 @@
<br><b>diff("x^3", "x")</b> Returns the derivative of the function with respect to the second argument.
<br><b>integrate("3*x^2", "x")</b> Returns the integral of the function with respect to the second argument.
<br><b>$("command")</b> Parses the given text with the Symja library.
<br>&nbsp;&nbsp;&nbsp;<i>Aliases: sym</i>
<br><b>simplify("expr")</b> Simplifies the given expression.
<br><b>vpa("expr")</b> Attempts to find the numerical value of "expr".
<br><b>replace("text", "find", "replace")</b> Returns "text" with all occurrences of "find" changed to "replace".
@ -19,18 +18,30 @@
Returns the answer or 0.0 if there is no numerical answer.
<br><b>plot("function")</b> Graphs the given function as if it were typed into a graph window.
Uses the graph window bound to the current action.
<br>&nbsp;&nbsp;&nbsp;<i>Aliases: ezplot, graph</i>
<br><b>plotname("name")</b> Set the window title of the bound graph window.
<br><b>plotname()</b> Get the name of the plot window.
<br><b>plotclr()</b> Clears all drawings from the plot window.
<br>&nbsp;&nbsp;&nbsp;<i>Aliases: clearplot, plotclear</i>
<br><b>plotscale({-1,0,1,2,3})</b> Scale the graph. Erases content when scaled.
Smaller is farther out, larger closer.
<br><b>drawDot(x,y)</b> Draw a small red dot wherever you tell it.
<br><b>rad(degrees), deg(radians)</b> Convert degrees to radians and vice versa.
Python has built-in radians(degrees) and degrees(radians) which work the same.
<br><b></b>
<br><b></b>
<br><b>pause(1000)</b> Pause script execution for a number of milliseconds.
<br><b>factorial(n)</b> Calculate (n!).
<br><b>factor(n)</b> Get an array (list) of all the factors of n.
<br><b>add(n1,n2,n3...)|add(n[])</b> Add together the given numbers or array of numbers.
<br><b>subtract(n1,n2,n3...)|subtract(n[])</b> Subtract the given numbers or array of numbers, as in (n1-n2-n3-...)
<br><b>times(n1,n2,n3...)|times(n[])</b> Multiply together the given numbers or array of numbers.
<br><b>divide(n1,n2,n3...)|divide(n[])</b> Divide the given numbers or array of numbers, as in (n1/n2/n3/...)
<br><b>perms(a,b,c...)|perms(items[])</b> Get an array of all possible combinations of the given items.
<br><b>rand()</b> Get a random fraction between 0 and 1.
<br><b>randb()</b> Get a random boolean (true or false).
<br><b>rand(min,max)</b> Get a random integer between min and max, inclusive.
<br><b>readfile(path)</b> Read the text file at path and return the contents.
<br><b>savefile(content,path)</b> Save the content in the file at path.
</p>
<p>
For more information, consult the Wiki or SyMAT's source code.
</p>
</body>
</html>

@ -19,11 +19,14 @@ savefile(data,"")|Save the text data to a file.
rand()|Random fraction from 0 (inclusive) to 1 (exclusive)
rand(min,max)|Random number between min and max, inclusive
randb()|Random boolean (true or false)
perms(items)|Array of all possible combinations.
add(n1,n2,...)|Add the given numbers.
subtract(n1,n2,...)|Subtract the given numbers.
times(n1,n2,...)|Multiply the given numbers.
divide(n1,n2,...)|Divide the given numbers.
mod(n1,n2,...)|Divide the numbers and return the remainder.
factorial(n)|Get the factorial (n!) of n as a string.
factor(n)|Get an array of all the factors of n.
abs(0)|Absolute value of number.
asin(0)|
acos(0)|

@ -24,6 +24,9 @@ times(n1,n2,...)|Multiply the given numbers.
divide(n1,n2,...)|Divide the given numbers.
mod(n1,n2,...)|Divide the numbers and return the remainder.
vpa('')|Computes numerical value or simplifies.
factorial(n)|Get the factorial (n!) of n as a string.
factor(n)|Get an array of all the factors of n.
perms(items)|Array of all possible combinations.
fabs(0)|Absolute value of number.
asin(0)|
acos(0)|

Loading…
Cancel
Save