
When you save a graph document, all of the functions and constants defined in that document, as well as any functions in the Function Library that are referenced by the current document's functions or equations, are saved along with the document. When you save settings (either by the Save Setup Info command or exiting the program), the contents of the Function Library are saved in your graphmat.ini file, where they are available to any new graph documents you create. Note that when other functions in the Function Library depend on a function, you may not move it out of the Function Library until they have been removed as well. To remove a function from the library (it will remain defined in the current document), select a function in the bottom listbox and use the Remove button. (This can happen when you open a graph document which redefines one of the functions in the library.) Also, you will be prompted for confirmation if a function of the same name already exists in the library. Note that you cannot add a function that depends on other functions defined at the document level to the Function Library you must move those functions into the Function Library first. To move functions from your current graph document into the Function Library, select a function in the top listbox and use the Add button. Graphmatica supports two levels of custom functions: those defined in the current graph document only, and the Function Library, which is available to any graph document created on your machine. Any graphs that depend on the redefined function will be redrawn once you close the dialog box. The program will ask you for confirmation if you attempt to redefine a function that already exists. If you want to replace the definition of a function, simply type in the new definition and press Define as usual. If the function is still referenced by one or more equations, the program will offer to delete the equations as well or allow you to cancel the operation. Note that when a function is referenced by other functions, you must delete each of those (or modify them to no longer reference the function you are trying to delete) first. To remove a function that is no longer needed, select a function in the top listbox and use the Delete button. You may also use any built-in function, or a custom function or constant you have previously defined in your graph document or function library.įor example, some useful functions and constants you could define include: Logarithm base 2
Graphmatica factorial free#
Your function definition may be any expression that uses only the variable you specify and any constants or free variables (a, b, c, j, k) you need. Regardless of which variable you pick, you may use the function in any equation the value you pass to the function when you use it does not need to use the same variable. The variable name in your function definition must be either x or t. However, Greek letters are case sensitive, to accommodate the customary practice ofĪssigning unrelated meanings to upper- and lowercase Greek letters in different contexts. Letters may be used interchangeably in the function name when it is defined and when you reference it in Note that Latin letters used in function and constant names are not case sensitive-upper and lowercase

( select Special Characters in the Edit menu press the αβγ… button) to help you enter characters (See the Operator Table for aĬomplete list of these.) Use the Special Characters tool window You may not use a name which is alreadyĪssigned to a built-in function or variable. Valid function names start with a letter (Latin or Greek) and areįollowed by letters, numbers, subscripts, or underscore ("_"). Or a multi-letter word up to 20 characters. The function or constant name may be f, g, a single Greek letter (except lowercase π or θ or uppercase Σ or Γ), Use the Functions item in the Tools menu to bring up the Functions dialog box, which lists all of the custom functions you have defined and allows you to define or delete functions.Įnter your custom function or constant in one of the following formats: constant=expression You may want to do so to add functions derived from those built-in to the program to its library, or to make entering equations with several instances of a common subexpression faster and more accurate. Graphmatica allows you to define your own custom functions and named constants, which you can then reference in any equation. Graphmatica Help - Defining Your Own FunctionsĭEFINING YOUR OWN FUNCTIONS AND CONSTANTS
