From: Chris S. <san...@us...> - 2005-10-07 06:26:46
|
Update of /cvsroot/stack/stack-1-0/scripts/maxima In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27355/scripts/maxima Modified Files: stackfun.php stackmaxima.mac Log Message: Index: stackmaxima.mac =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/maxima/stackmaxima.mac,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** stackmaxima.mac 26 Sep 2005 10:15:34 -0000 1.36 --- stackmaxima.mac 7 Oct 2005 06:26:38 -0000 1.37 *************** *** 83,87 **** /* Makes a complex j if needed */ ! make_complexJ(OPT_COMPLEXJ) := if OPT_COMPLEXJ=j then (j:%i,load("complexj.lisp")) else i:%i; /* ARRGH! */ --- 83,88 ---- /* Makes a complex j if needed */ ! i:%i; ! make_complexJ(OPT_COMPLEXJ) := if OPT_COMPLEXJ=j then (j:%i,load("complexj.lisp")); /* ARRGH! */ *************** *** 381,391 **** - /* allinteger(l) returns true if all of the list are integers */ - allinteger(l) := BLOCK([ret], - ret:TRUE, - if listp(l) then for i:1 thru length(l) do (ret:ret AND integerp(l[i])) else ret:"FAIL", - RETURN(ret) )$ - - /* A general all purpose function Takes two objects and returns true if they are equal, and false otherwise --- 382,385 ---- Index: stackfun.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/maxima/stackfun.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** stackfun.php 12 Jun 2005 09:13:28 -0000 1.1 --- stackfun.php 7 Oct 2005 06:26:38 -0000 1.2 *************** *** 18,21 **** --- 18,26 ---- $stack_cmd['e']['use'] = 's'; + $stack_cmd['i']['doc'] = 'As usual i<sup>2</sup>=-1. There is an option to redefine this so that j can be used instead both as input and display.'; + $stack_cmd['i']['syntax'] = 'i'; + $stack_cmd['i']['type'] = 'num'; + $stack_cmd['i']['use'] = 's'; + $stack_cmd['float']['doc'] = 'Converts <tt>n</tt> into a floating point number.'; $stack_cmd['float']['syntax'] = 'float(n)'; *************** *** 23,31 **** $stack_cmd['float']['use'] = 's'; - $stack_cmd['anyfloat']['doc'] = 'Takes a list of number <tt>l</tt> and returns TRUE if any of them are floating point numbers.'; - $stack_cmd['anyfloat']['syntax'] = 'anyfloat(l)'; - $stack_cmd['anyfloat']['type'] = 'num'; - $stack_cmd['anyfloat']['use'] = 's'; - $stack_cmd['round']['doc'] = 'An alias for Maxima\'s lisp based <tt>?round</tt> command.'; $stack_cmd['round']['syntax'] = 'round(n)'; --- 28,31 ---- *************** *** 38,41 **** --- 38,86 ---- $stack_cmd['truncate']['use'] = 's'; + $stack_cmd['decimalplaces']['doc'] = 'Rounds a floating point number x to n decimal places.'; + $stack_cmd['decimalplaces']['syntax'] = 'decimalplaces(x,n)'; + $stack_cmd['decimalplaces']['type'] = 'num'; + $stack_cmd['decimalplaces']['use'] = 's'; + + $stack_cmd['commonfaclist']['doc'] = 'Takes a list and returns the highest common factor of all the numbers.'; + $stack_cmd['commonfaclist']['syntax'] = 'commonfaclist(l)'; + $stack_cmd['commonfaclist']['type'] = 'num'; + $stack_cmd['commonfaclist']['use'] = 't'; + + $stack_cmd['anyfloat']['doc'] = 'Takes a list of number <tt>l</tt> and returns TRUE if any of them are floating point numbers.'; + $stack_cmd['anyfloat']['syntax'] = 'anyfloat(l)'; + $stack_cmd['anyfloat']['type'] = 'list'; + $stack_cmd['anyfloat']['use'] = 's'; + + $stack_cmd['all_listp']['doc'] = 'Takes a predicate <tt>p</tt> and applies to to every element of a list <tt>l</tt>. Returns TRUE if all elements are TRUE and FALSE otherwise.'; + $stack_cmd['all_listp']['syntax'] = 'all_listp(p,l)'; + $stack_cmd['all_listp']['type'] = 'list'; + $stack_cmd['all_listp']['use'] = 't'; + + $stack_cmd['any_listp']['doc'] = 'Takes a predicate <tt>p</tt> and applies to to every element of a list <tt>l</tt>. Returns TRUE if all elements are TRUE and FALSE otherwise.'; + $stack_cmd['any_listp']['syntax'] = 'any_listp(p,l)'; + $stack_cmd['any_listp']['type'] = 'list'; + $stack_cmd['any_listp']['use'] = 't'; + + $stack_cmd['equationp']['doc'] = "Expands Maxima's predicate functions. Returns TRUE if the top operation is an '=', and FALSE otherwise."; + $stack_cmd['equationp']['syntax'] = 'equationp(ex)'; + $stack_cmd['equationp']['type'] = 'algebra'; + $stack_cmd['equationp']['use'] = 't'; + + $stack_cmd['inequalityp']['doc'] = "Expands Maxima's predicate functions. Returns TRUE if the expression is an inequality, and FALSE otherwise."; + $stack_cmd['inequalityp']['syntax'] = 'inequalityp(ex)'; + $stack_cmd['inequalityp']['type'] = 'algebra'; + $stack_cmd['inequalityp']['use'] = 't'; + + $stack_cmd['anyfloatex']['doc'] = 'Takes an expression <tt>ex</tt> and returns TRUE if any of the coefficients are floating point numbers.'; + $stack_cmd['anyfloatex']['syntax'] = 'anyfloatex(ex)'; + $stack_cmd['anyfloatex']['type'] = 'algebra'; + $stack_cmd['anyfloatex']['use'] = 't'; + + $stack_cmd['deg']['doc'] = 'The algebraic degree of the expression <tt>ex</tt>'; + $stack_cmd['deg']['syntax'] = 'dex(ex)'; + $stack_cmd['deg']['type'] = 'algebra'; + $stack_cmd['deg']['use'] = 't'; + $stack_cmd['expand']['doc'] = 'Expand the algebraic expression <tt>p</tt>.'; $stack_cmd['expand']['syntax'] = 'expand(p)'; *************** *** 75,78 **** --- 120,133 ---- $stack_cmd['int']['use'] = 's'; + $stack_cmd['continuousp']['doc'] = 'This determines if an expression <tt>ex</tt> is continuous in the variable <tt>v</tt> at the point <tt>v=xp</tt>. This test relies on the <tt>limit</tt> function which Maxima supplies, and hence is not totally robust. Returns either TRUE or FALSE.'; + $stack_cmd['continuousp']['syntax'] = 'continuousp(ex,v,xp)'; + $stack_cmd['continuousp']['type'] = 'calculus'; + $stack_cmd['continuousp']['use'] = 't'; + + $stack_cmd['diffp']['doc'] = 'This determines if an expression <tt>ex</tt> is differentiable (n times) in the variable <tt>v</tt> at the point <tt>v=xp</tt>. If <tt>n</tt> is ommitted it is assumed to be 1. This test relies on the <tt>limit</tt> function which Maxima supplies, and hence is not totally robust. Returns either TRUE or FALSE.'; + $stack_cmd['diffp']['syntax'] = 'diffp(ex,v,xp,[n])'; + $stack_cmd['diffp']['type'] = 'calculus'; + $stack_cmd['diffp']['use'] = 't'; + $stack_cmd['rand']['doc'] = 'Generate a random object. See below.'; $stack_cmd['rand']['syntax'] = 'rand(x)'; |