[Mathlib-commitlog] mathlib/Source/MathLib/Functions/General Fibonacci.java, 1.7, 1.8 Primes.java,
Status: Beta
Brought to you by:
st_mueller
|
From: Stefan M. <st_...@us...> - 2007-01-06 09:33:12
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/General In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12663/Source/MathLib/Functions/General Modified Files: Fibonacci.java Primes.java Harmonic.java setPFileCaching.java Factor.java Log Message: getValue() replaced by getValueRe() Index: Primes.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/General/Primes.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Primes.java 4 Jul 2004 19:10:46 -0000 1.7 --- Primes.java 6 Jan 2007 09:33:09 -0000 1.8 *************** *** 23,27 **** if(operands[0] instanceof NumberToken) { ! double maxValue = ((NumberToken)operands[0]).getValue(); if(maxValue < 2) --- 23,27 ---- if(operands[0] instanceof NumberToken) { ! double maxValue = ((NumberToken)operands[0]).getValueRe(); if(maxValue < 2) Index: Harmonic.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/General/Harmonic.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Harmonic.java 30 Dec 2006 18:06:26 -0000 1.6 --- Harmonic.java 6 Jan 2007 09:33:09 -0000 1.7 *************** *** 19,23 **** { //harmonic(n) = 1 + 1/2 + 1/3 + ... + 1/n ! double index = ((NumberToken)operands[0]).getValue(); double total = 0; --- 19,23 ---- { //harmonic(n) = 1 + 1/2 + 1/3 + ... + 1/n ! double index = ((NumberToken)operands[0]).getValueRe(); double total = 0; Index: setPFileCaching.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/General/setPFileCaching.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** setPFileCaching.java 30 Dec 2006 17:39:59 -0000 1.5 --- setPFileCaching.java 6 Jan 2007 09:33:09 -0000 1.6 *************** *** 21,25 **** if (operands[0] instanceof NumberToken) { ! if ( ((NumberToken)operands[0]).getValue()==0) getFunctionManager().getMFileLoader().setPFileCaching(false); else --- 21,25 ---- if (operands[0] instanceof NumberToken) { ! if ( ((NumberToken)operands[0]).getValueRe()==0) getFunctionManager().getMFileLoader().setPFileCaching(false); else Index: Factor.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/General/Factor.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Factor.java 30 Dec 2006 18:06:26 -0000 1.8 --- Factor.java 6 Jan 2007 09:33:09 -0000 1.9 *************** *** 22,26 **** throwMathLibException("factor: first argument must be a number"); ! double maxValue = ((NumberToken)operands[0]).getValue(); int temp = (new Double(maxValue/2)).intValue(); --- 22,26 ---- throwMathLibException("factor: first argument must be a number"); ! double maxValue = ((NumberToken)operands[0]).getValueRe(); int temp = (new Double(maxValue/2)).intValue(); Index: Fibonacci.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/General/Fibonacci.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Fibonacci.java 30 Dec 2006 18:06:26 -0000 1.7 --- Fibonacci.java 6 Jan 2007 09:33:09 -0000 1.8 *************** *** 22,26 **** //harmonic(n) = 1 + 1/2 + 1/3 + ... + 1/n ! double index = ((NumberToken)operands[0]).getValue(); double total1 = 0; --- 22,26 ---- //harmonic(n) = 1 + 1/2 + 1/3 + ... + 1/n ! double index = ((NumberToken)operands[0]).getValueRe(); double total1 = 0; |