Update file headers

master
skylarmt 10 years ago
parent 36e10a7af8
commit afd64e2f5b

@ -1,12 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for --> <!--
<!-- some examples of how to customize the build. --> Apocalypse Laboratories
<!-- (If you delete it and reopen the project it will be recreated.) --> Open Source License
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if --> Source code can be used for any purpose, as long as:
<!-- the Compile on Save feature is turned off for the project. --> - Compiled binaries are rebranded and trademarks are not
<!-- You can turn off the Compile on Save (or Deploy on Save) setting --> visible by the end user at any time, except to give
<!-- in the project's Project Properties dialog box.--> credit to Apocalypse Laboratories, such as by showing
"Based on <product> by Apocalypse Laboratories" or a
similar notice;
- You do not use the code for evil;
- Rebranded compiled applications have significant
differences in functionality;
- and you provide your modified source code for download,
under the terms of the GNU LGPL v3 or a comparable
license.
Compiled binaries cannot be redistributed or mirrored,
unless:
- You have written permission from Apocalypse Laboratories;
- Downloads are not available from Apocalypse Laboratories,
not even behind a paywall or other blocking mechanism;
- or you have received a multi-computer license, in which
case you should take measures to prevent unauthorized
downloads, such as preventing download access from the
Internet.
-->
<project name="SyMAT" default="default" basedir="."> <project name="SyMAT" default="default" basedir=".">
<description>Builds, tests, and runs SyMAT.</description> <description>Builds, tests, and runs SyMAT.</description>
<import file="nbproject/build-impl.xml"/> <import file="nbproject/build-impl.xml"/>

@ -1,3 +1,30 @@
#
# Apocalypse Laboratories
# Open Source License
#
# Source code can be used for any purpose, as long as:
# - Compiled binaries are rebranded and trademarks are not
# visible by the end user at any time, except to give
# credit to Apocalypse Laboratories, such as by showing
# "Based on <product> by Apocalypse Laboratories" or a
# similar notice;
# - You do not use the code for evil;
# - Rebranded compiled applications have significant
# differences in functionality;
# - and you provide your modified source code for download,
# under the terms of the GNU LGPL v3 or a comparable
# license.
#
# Compiled binaries cannot be redistributed or mirrored,
# unless:
# - You have written permission from Apocalypse Laboratories;
# - Downloads are not available from Apocalypse Laboratories,
# not even behind a paywall or other blocking mechanism;
# - or you have received a multi-computer license, in which
# case you should take measures to prevent unauthorized
# downloads, such as preventing download access from the
# Internet.
#
libs.CopyLibs.classpath=\ libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.CopyLibs.displayName=CopyLibs Task libs.CopyLibs.displayName=CopyLibs Task

@ -92,7 +92,7 @@ meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false mkdist.disabled=false
native.bundling.enabled=true native.bundling.enabled=true
platform.active=default_platform platform.active=default_platform
project.license=lgpl21 project.license=aplabs-oss
run.classpath=\ run.classpath=\
${javac.classpath}:\ ${javac.classpath}:\
${build.classes.dir} ${build.classes.dir}

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Apocalypse Laboratories. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Skylar. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Apocalypse Laboratories. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Apocalypse Laboratories. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;
@ -60,6 +69,12 @@ public class Functions {
return util.evaluate(input).toString(); return util.evaluate(input).toString();
} }
// Shortcut for non-JS math evaluation.
public String $(String input) {
return sym(input);
}
public String replace(String function, String variable, String newvar) { public String replace(String function, String variable, String newvar) {
return function.replaceAll(variable, newvar); return function.replaceAll(variable, newvar);
} }

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Apocalypse Laboratories. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Apocalypse Laboratories. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Apocalypse Laboratories. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Apocalypse Laboratories. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Skylar. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -1,20 +1,29 @@
/* /*
* Copyright (C) 2014 Skylar. * Apocalypse Laboratories
* * Open Source License
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public * Source code can be used for any purpose, as long as:
* License as published by the Free Software Foundation; either * - Compiled binaries are rebranded and trademarks are not
* version 2.1 of the License, or (at your option) any later version. * visible by the end user at any time, except to give
* * credit to Apocalypse Laboratories, such as by showing
* This library is distributed in the hope that it will be useful, * "Based on <product> by Apocalypse Laboratories" or a
* but WITHOUT ANY WARRANTY; without even the implied warranty of * similar notice;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - You do not use the code for evil;
* Lesser General Public License for more details. * - Rebranded compiled applications have significant
* * differences in functionality;
* You should have received a copy of the GNU Lesser General Public * - and you provide your modified source code for download,
* License along with this library; if not, write to the Free Software * under the terms of the GNU LGPL v3 or a comparable
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * license.
* MA 02110-1301 USA *
* Compiled binaries cannot be redistributed or mirrored,
* unless:
* - You have written permission from Apocalypse Laboratories;
* - Downloads are not available from Apocalypse Laboratories,
* not even behind a paywall or other blocking mechanism;
* - or you have received a multi-computer license, in which
* case you should take measures to prevent unauthorized
* downloads, such as preventing download access from the
* Internet.
*/ */
package net.apocalypselabs.symat; package net.apocalypselabs.symat;

@ -8,23 +8,23 @@
<b>notify(var)</b> Creates a popup box with the given content. <b>notify(var)</b> Creates a popup box with the given content.
<br><b>ask(prompt)</b> Returns the entered text. <br><b>ask(prompt)</b> Returns the entered text.
<br><b>d("3*x", "x")</b> Returns the derivative of the function with respect to the second argument. <br><b>d("3*x", "x")</b> Returns the derivative of the function with respect to the second argument.
<br><b>sym("command")</b> Parses the given text with the Symja library. <br><b>$("command")</b> Parses the given text with the Symja library.
<br>&nbsp;&nbsp;&nbsp;<i>Aliases: sym</i>
<br><b>replace("text", "find", "replace")</b> Returns "text" with all occurrences of "find" changed to "replace". <br><b>replace("text", "find", "replace")</b> Returns "text" with all occurrences of "find" changed to "replace".
<br><b>subs("function", "var", "replace")</b> Replaces all occurrences of "var" with "replace" and solves. <br><b>subs("function", "var", "replace")</b> Replaces all occurrences of "var" with "replace" and solves.
Returns the answer or 0.0 if there is no numerical answer. 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. <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. Uses the graph window bound to the current action.
<br>&nbsp;&nbsp;&nbsp;<i>Aliases: ezplot, graph</i> <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("name")</b> Set the window title of the bound graph window.
<br><b>plotname()</b> Get the name of the plot window. <br><b>plotname()</b> Get the name of the plot window.
<br><b>plotclr()</b> Clears all drawings from the plot window. <br><b>plotclr()</b> Clears all drawings from the plot window.
<br>&nbsp;&nbsp;&nbsp;<i>Aliases: clearplot, plotclear</i> <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. <br><b>plotscale({-1,0,1,2,3})</b> Scale the graph. Erases content when scaled.
Smaller is farther out, larger closer. Smaller is farther out, larger closer.
<br><b>drawDot(x,y)</b> Draw a small red dot wherever you tell it. <br><b>drawDot(x,y)</b> Draw a small red dot wherever you tell it.
<br><b></b> <br><b></b>
<br><b></b> <br><b></b>
<br><b></b> <br><b></b>
</p>
</body> </body>
</html> </html>

Loading…
Cancel
Save