mathlib-commitlog Mailing List for JMathLib - Octave, Matlab clone in java (Page 42)
Status: Beta
Brought to you by:
st_mueller
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(4) |
Aug
(150) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(233) |
Feb
(86) |
Mar
(32) |
Apr
(26) |
May
(73) |
Jun
(45) |
Jul
(23) |
Aug
(23) |
Sep
(5) |
Oct
(80) |
Nov
(11) |
Dec
(11) |
| 2008 |
Jan
|
Feb
|
Mar
(13) |
Apr
(3) |
May
(7) |
Jun
(30) |
Jul
(12) |
Aug
(12) |
Sep
|
Oct
|
Nov
(78) |
Dec
(78) |
| 2009 |
Jan
(214) |
Feb
(79) |
Mar
(20) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Stefan M. <st_...@us...> - 2007-01-14 18:36:19
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv16321/Source/MathLib/Functions/Matrix Modified Files: isreal.java Log Message: bugfix Index: isreal.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/isreal.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** isreal.java 14 Jan 2007 18:33:09 -0000 1.4 --- isreal.java 14 Jan 2007 18:36:15 -0000 1.5 *************** *** 20,38 **** throwMathLibException("isreal: works on numbers only"); - - // get data from arguments NumberToken num = (NumberToken)operands[0]; - double[][] aIm = num.getValuesIm(); - int a_dy = num.getSizeY(); - int a_dx = num.getSizeY(); boolean realB = true; ! for (int xi=0; xi<a_dx ; xi++) { ! for (int yi=0; yi<a_dy ; yi++) ! { ! if ( aIm[yi][xi] != 0.0) realB = false; - } } --- 20,32 ---- throwMathLibException("isreal: works on numbers only"); NumberToken num = (NumberToken)operands[0]; boolean realB = true; ! // check all elements ! // if at least one element is imaginary than return FALSE ! for (int n=0; n<num.getNumberOfElements() ; n++) { ! if ( num.getValueIm(n) != 0.0) realB = false; } *************** *** 55,60 **** @NOTES @EXAMPLES ! any([0,0;0,0]) = 0 ! any([1,0;0,0]) = 1 @SEE isnan, isimaginary --- 49,55 ---- @NOTES @EXAMPLES ! isreal([0,2i]) = 0 ! isreal([11,0]) = 1 ! isreal([]) = 1 @SEE isnan, isimaginary |
|
From: Stefan M. <st_...@us...> - 2007-01-14 18:33:23
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv14975/Source/MathLib/Functions/Matrix Modified Files: isreal.java Log Message: wrong result: returned true for imaginary number instead of pure real numbers Index: isreal.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/isreal.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** isreal.java 7 Jan 2007 15:43:55 -0000 1.3 --- isreal.java 14 Jan 2007 18:33:09 -0000 1.4 *************** *** 4,8 **** import MathLib.Functions.ExternalFunction; ! /**An external function that return 1.0 is all elements of the argument are nonzero */ public class isreal extends ExternalFunction { --- 4,8 ---- import MathLib.Functions.ExternalFunction; ! /**An external function that return 1.0 is all elements of the argument are non imaginary */ public class isreal extends ExternalFunction { *************** *** 22,28 **** // get data from arguments ! double[][] a_i = ((NumberToken)operands[0]).getValuesRe(); ! int a_dy = a_i.length; ! int a_dx = a_i[0].length; boolean realB = true; --- 22,29 ---- // get data from arguments ! NumberToken num = (NumberToken)operands[0]; ! double[][] aIm = num.getValuesIm(); ! int a_dy = num.getSizeY(); ! int a_dx = num.getSizeY(); boolean realB = true; *************** *** 31,35 **** for (int yi=0; yi<a_dy ; yi++) { ! if ( a_i[yi][xi] != 0.0) realB = false; } --- 32,36 ---- for (int yi=0; yi<a_dy ; yi++) { ! if ( aIm[yi][xi] != 0.0) realB = false; } |
|
From: Stefan M. <st_...@us...> - 2007-01-14 17:46:31
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/specialmatrix In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27535/Source/MathLib/Functions/specialmatrix Added Files: lauchli.m Log Message: --- NEW FILE: lauchli.m --- ## A = lauchli (n [,mu]) ## Creates the matrix [ ones(1,n); mu*eye(n) ] ## The value mu defaults to sqrt(eps) ## This is an ill-conditioned system for testing the ## accuracy of the QR routine. ## E.g., ## A = lauchli(15); ## [Q, R] = qr(A); ## norm(Q*R - A) ## norm(Q'*Q - eye(rows(Q))) ## This program is in the public domain ## Author: Paul Kienzle <pki...@us...> function A = lauchli(n,mu) if (nargin < 1 || nargin > 2) usage("A = lauchli(n [, mu])"); endif if (nargin < 2), mu = sqrt(eps); endif A = [ ones(1,n); mu*eye(n) ]; endfunction /* @GROUP specialmatrix @SYNTAX lauchli(x) lauchli(x,mu) @DOC Creates the matrix [ ones(1,n); mu*eye(n) ] @EXAMPLES @NOTES @SEE */ |
|
From: Stefan M. <st_...@us...> - 2007-01-14 17:41:17
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/models In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25465/Source/MathLib/Functions/Statistics/models Added Files: logistic_regression_derivatives.m Log Message: --- NEW FILE: logistic_regression_derivatives.m --- ## Copyright (C) 1995, 1996, 1997 Kurt Hornik ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, write to the Free ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ## 02110-1301, USA. ## -*- texinfo -*- ## @deftypefn {Function File} {[@var{dl}, @var{d2l}] =} logistic_regression_derivatives (@var{x}, @var{z}, @var{z1}, @var{g}, @var{g1}, @var{p}) ## Called by logistic_regression. Calculates derivates of the ## log-likelihood for ordinal logistic regression model. ## @end deftypefn ## Author: Gordon K. Smyth <gk...@ma...> ## Adapted-By: KH <Kur...@wu...> ## Description: Derivates of log-likelihood in logistic regression function [dl, d2l] = logistic_regression_derivatives (x, z, z1, g, g1, p) ## first derivative v = g .* (1 - g) ./ p; v1 = g1 .* (1 - g1) ./ p; dlogp = [(dmult (v, z) - dmult (v1, z1)), (dmult (v - v1, x))]; dl = sum (dlogp)'; ## second derivative w = v .* (1 - 2 * g); w1 = v1 .* (1 - 2 * g1); d2l = [z, x]' * dmult (w, [z, x]) - [z1, x]' * dmult (w1, [z1, x]) ... - dlogp' * dlogp; endfunction |
|
From: Stefan M. <st_...@us...> - 2007-01-14 17:25:30
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/LinearAlgebra In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18528/Source/MathLib/Functions/LinearAlgebra Added Files: housh.m logm.m Log Message: --- NEW FILE: logm.m --- ## Copyright (C) 2003 John W. Eaton ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, write to the Free ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ## 02110-1301, USA. ## -*- texinfo -*- ## @deftypefn {Function File} {} logm (@var{a}) ## Compute the matrix logarithm of the square matrix @var{a}. Note that ## this is currently implemented in terms of an eigenvalue expansion and ## needs to be improved to be more robust. ## @end deftypefn function B = logm (A) if (nargin != 1) print_usage (); endif [V, D] = eig (A); B = V * diag (log (diag (D))) * inv (V); endfunction --- NEW FILE: housh.m --- ## Copyright (C) 1995, 1998 A. Scottedward Hodel ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by the ## Free Software Foundation; either version 2, or (at your option) any ## later version. ## ## Octave is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, write to the Free ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ## 02110-1301 USA. ## -*- texinfo -*- ## @deftypefn {Function File} {[@var{housv}, @var{beta}, @var{zer}] =} housh (@var{x}, @var{j}, @var{z}) ## Computes householder reflection vector housv to reflect x to be ## jth column of identity, i.e., (I - beta*housv*housv')x =e(j) ## inputs ## x: vector ## j: index into vector ## z: threshold for zero (usually should be the number 0) ## outputs: (see Golub and Van Loan) ## beta: If beta = 0, then no reflection need be applied (zer set to 0) ## housv: householder vector ## @end deftypefn ## Author: A. S. Hodel ## Created: August 1995 function [housv, beta, zer] = housh (x, jj, z) ## check for valid inputs if (!isvector (x) && ! isscalar (x)) error ("housh: first input must be a vector") elseif (! isscalar(jj)) error ("housh: second argment must be an integer scalar") else housv = x; m = max (abs (housv)); if (m != 0.0) housv = housv / m; alpha = norm (housv); if (alpha > z) beta = 1.0 / (alpha * (alpha + abs (housv(jj)))); sg = sign (housv(jj)); if (sg == 0) sg = 1; endif housv(jj) = housv(jj) + alpha*sg; else beta = 0.0; endif else beta = 0.0; endif zer = (beta == 0); endif endfunction |
|
From: Stefan M. <st_...@us...> - 2007-01-14 12:16:08
|
Update of /cvsroot/mathlib/mathlib In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv24242 Modified Files: ChangeLog.txt Log Message: Index: ChangeLog.txt =================================================================== RCS file: /cvsroot/mathlib/mathlib/ChangeLog.txt,v retrieving revision 1.147 retrieving revision 1.148 diff -C2 -d -r1.147 -r1.148 *** ChangeLog.txt 14 Jan 2007 12:12:58 -0000 1.147 --- ChangeLog.txt 14 Jan 2007 12:16:00 -0000 1.148 *************** *** 10,26 **** New functions: angle.java, beta.m, betaln.m, close.java, compan.m, complement.m, ! cov.m, createnewfile.java, ! cumprod.java, cumsum.m, create_set.m, conj.java, delete.java, det.m, dot.m, ! eq.m, gammaln.m, ! ge.m, gray2ind.m, gray.m, gt.m, hankel.m, inf.java, inv.m, isdefinite.m, ! isdirectory.java, isfile.java, isfinite.java, ishidden.java, isnan.java, ! isinf.java, issymmetric.m, lastmodified.java, le.m, ! loadvariables.java, lookup.m, mean.m, mkdir.java, nan.java, ne.m, ntsc2rgb.m, nper.m, numel.java, orth.m, pascal.m, perms.m, pmt.m, polyval.m, polyreduce.m, poly.m, pv.m, pvl.m, qtransvmat.m, rehash.java, repmat.java, rmdir.java, roots.m, save_variables.java, size_equal.m, sort.java, ! std.m, stril.m, ! sylvester_matrix.m, toeplitz.m, triangle_lw.m, triangle_sw.m, triu.m, var.m, ! vech.m, wilkinson.m, Updated functions: --- 10,23 ---- New functions: angle.java, beta.m, betaln.m, close.java, compan.m, complement.m, ! cov.m, createnewfile.java, cumprod.java, cumsum.m, create_set.m, conj.java, ! delete.java, det.m, dot.m, eq.m, gammaln.m, ge.m, gray2ind.m, gray.m, gt.m, ! hankel.m, hurst.m, inf.java, inv.m, isdefinite.m, isdirectory.java, isfile.java, ! isfinite.java, ishidden.java, isnan.java, isinf.java, issymmetric.m, ! lastmodified.java, le.m, loadvariables.java, lookup.m, mean.m, mkdir.java, nan.java, ne.m, ntsc2rgb.m, nper.m, numel.java, orth.m, pascal.m, perms.m, pmt.m, polyval.m, polyreduce.m, poly.m, pv.m, pvl.m, qtransvmat.m, rehash.java, repmat.java, rmdir.java, roots.m, save_variables.java, size_equal.m, sort.java, ! std.m, stril.m, sylvester_matrix.m, toeplitz.m, triangle_lw.m, triangle_sw.m, ! triu.m, var.m, vech.m, wilkinson.m Updated functions: *************** *** 35,38 **** --- 32,36 ---- 2007/01/14 + stefan + Functions/signal/hurst.m stefan + Functions/Statistics/base/var.m stefan + Functions/Statistics/base/cov.m |
|
From: Stefan M. <st_...@us...> - 2007-01-14 12:14:10
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/signal In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23352/Source/MathLib/Functions/signal Added Files: hurst.m Log Message: --- NEW FILE: hurst.m --- ## Copyright (C) 1995, 1996, 1997 Friedrich Leisch ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, write to the Free ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ## 02110-1301, USA. ## -*- texinfo -*- ## @deftypefn {Function File} {} hurst (@var{x}) ## Estimate the Hurst parameter of sample @var{x} via the rescaled range ## statistic. If @var{x} is a matrix, the parameter is estimated for ## every single column. ## @end deftypefn ## Author: FL <Fri...@ci...> ## Description: Estimate the Hurst parameter function H = hurst (x) if (nargin != 1) print_usage (); endif if (isscalar (x)) error ("hurst: x must not be a scalar") elseif (isvector (x)) x = reshape (x, length (x), 1); end [xr, xc] = size (x); s = std (x); w = cumsum (x - mean (x)); RS = (max(w) - min(w)) ./ s; H = log (RS) / log (xr); endfunction /* @GROUP signal @SYNTAX hurst() @DOC . @EXAMPLES . @NOTES . @SEE */ |
|
From: Stefan M. <st_...@us...> - 2007-01-14 12:13:06
|
Update of /cvsroot/mathlib/mathlib In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22623 Modified Files: ChangeLog.txt Log Message: Index: ChangeLog.txt =================================================================== RCS file: /cvsroot/mathlib/mathlib/ChangeLog.txt,v retrieving revision 1.146 retrieving revision 1.147 diff -C2 -d -r1.146 -r1.147 *** ChangeLog.txt 13 Jan 2007 18:31:11 -0000 1.146 --- ChangeLog.txt 14 Jan 2007 12:12:58 -0000 1.147 *************** *** 10,14 **** New functions: angle.java, beta.m, betaln.m, close.java, compan.m, complement.m, ! createnewfile.java, cumprod.java, cumsum.m, create_set.m, conj.java, delete.java, det.m, dot.m, eq.m, gammaln.m, --- 10,14 ---- New functions: angle.java, beta.m, betaln.m, close.java, compan.m, complement.m, ! cov.m, createnewfile.java, cumprod.java, cumsum.m, create_set.m, conj.java, delete.java, det.m, dot.m, eq.m, gammaln.m, *************** *** 16,26 **** isdirectory.java, isfile.java, isfinite.java, ishidden.java, isnan.java, isinf.java, issymmetric.m, lastmodified.java, le.m, ! loadvariables.java, lookup.m, mkdir.java, nan.java, ne.m, ntsc2rgb.m, nper.m, numel.java, orth.m, pascal.m, perms.m, pmt.m, polyval.m, polyreduce.m, poly.m, pv.m, pvl.m, qtransvmat.m, rehash.java, repmat.java, rmdir.java, roots.m, save_variables.java, size_equal.m, sort.java, ! stril.m, ! sylvester_matrix.m, toeplitz.m, triangle_lw.m, triangle_sw.m, triu.m, vech.m, ! wilkinson.m, Updated functions: --- 16,26 ---- isdirectory.java, isfile.java, isfinite.java, ishidden.java, isnan.java, isinf.java, issymmetric.m, lastmodified.java, le.m, ! loadvariables.java, lookup.m, mean.m, mkdir.java, nan.java, ne.m, ntsc2rgb.m, nper.m, numel.java, orth.m, pascal.m, perms.m, pmt.m, polyval.m, polyreduce.m, poly.m, pv.m, pvl.m, qtransvmat.m, rehash.java, repmat.java, rmdir.java, roots.m, save_variables.java, size_equal.m, sort.java, ! std.m, stril.m, ! sylvester_matrix.m, toeplitz.m, triangle_lw.m, triangle_sw.m, triu.m, var.m, ! vech.m, wilkinson.m, Updated functions: *************** *** 34,37 **** --- 34,42 ---- stefan * + 2007/01/14 + stefan + Functions/Statistics/base/var.m + stefan + Functions/Statistics/base/cov.m + stefan - Functions/Statistics/StdDev.java + 2007/01/12 stefan + Functions/Statistics/base/mean.m |
|
From: Stefan M. <st_...@us...> - 2007-01-14 12:12:19
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22425/Source/MathLib/Functions/Statistics Removed Files: StdDev.java Log Message: --- StdDev.java DELETED --- |
|
From: Stefan M. <st_...@us...> - 2007-01-14 12:11:23
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/base In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv21955/Source/MathLib/Functions/Statistics/base Modified Files: cov.m Log Message: Index: cov.m =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/base/cov.m,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cov.m 14 Jan 2007 12:05:03 -0000 1.1 --- cov.m 14 Jan 2007 12:11:20 -0000 1.2 *************** *** 42,57 **** if (nargin == 2) if (rows (y) == 1) y = y'; endif if (rows (y) != n) error ("cov: x and y must have the same number of observations"); endif ! x = x - ones (n, 1) * sum (x) / n; ! y = y - ones (n, 1) * sum (y) / n; c = conj (x' * y / (n - 1)); elseif (nargin == 1) x = x - ones (n, 1) * sum (x) / n; c = conj (x' * x / (n - 1)); endif --- 42,63 ---- if (nargin == 2) + if (rows (y) == 1) y = y'; endif + if (rows (y) != n) error ("cov: x and y must have the same number of observations"); endif ! ! x = x - ones (n, 1) * (sum (x) / n); ! y = y - ones (n, 1) * (sum (y) / n); c = conj (x' * y / (n - 1)); + elseif (nargin == 1) + x = x - ones (n, 1) * sum (x) / n; c = conj (x' * x / (n - 1)); + endif *************** *** 63,66 **** --- 69,73 ---- @SYNTAX cov(x,y) + cov(x) @DOC Calculates the covariance |
|
From: Stefan M. <st_...@us...> - 2007-01-14 12:05:12
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/base In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18918/Source/MathLib/Functions/Statistics/base Added Files: cov.m Log Message: --- NEW FILE: cov.m --- ## Copyright (C) 1995, 1996, 1997 Kurt Hornik ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, write to the Free ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ## 02110-1301, USA. ## -*- texinfo -*- ## @deftypefn {Function File} {} cov (@var{x}, @var{y}) ## If each row of @var{x} and @var{y} is an observation and each column is ## a variable, the (@var{i}, @var{j})-th entry of ## @code{cov (@var{x}, @var{y})} is the covariance between the @var{i}-th ## variable in @var{x} and the @var{j}-th variable in @var{y}. If called ## with one argument, compute @code{cov (@var{x}, @var{x})}. ## @end deftypefn ## Author: KH <Kur...@wu...> ## Description: Compute covariances function c = cov (x, y) if (nargin < 1 || nargin > 2) print_usage (); endif if (rows (x) == 1) x = x'; endif n = rows (x); if (nargin == 2) if (rows (y) == 1) y = y'; endif if (rows (y) != n) error ("cov: x and y must have the same number of observations"); endif x = x - ones (n, 1) * sum (x) / n; y = y - ones (n, 1) * sum (y) / n; c = conj (x' * y / (n - 1)); elseif (nargin == 1) x = x - ones (n, 1) * sum (x) / n; c = conj (x' * x / (n - 1)); endif endfunction /* @GROUP statistics @SYNTAX cov(x,y) @DOC Calculates the covariance @EXAMPLES <programlisting> cov(x,y) </programlisting> @SEE std, var, mean */ |
|
From: Stefan M. <st_...@us...> - 2007-01-14 11:53:05
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Control/hinf In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13623/Source/MathLib/Functions/Control/hinf Log Message: Directory /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Control/hinf added to the repository |
|
From: Stefan M. <st_...@us...> - 2007-01-14 11:52:54
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Control/base In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13612/Source/MathLib/Functions/Control/base Log Message: Directory /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Control/base added to the repository |
|
From: Stefan M. <st_...@us...> - 2007-01-14 11:52:18
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Control/system In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13558/Source/MathLib/Functions/Control/system Removed Files: __sysdefstname__.m Log Message: --- __sysdefstname__.m DELETED --- |
|
From: Stefan M. <st_...@us...> - 2007-01-14 11:48:52
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Tokens In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11667/Source/MathLib/Tokens Modified Files: OperandToken.java Log Message: removed all trigonometric functions Index: OperandToken.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Tokens/OperandToken.java,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** OperandToken.java 26 Dec 2006 14:58:53 -0000 1.33 --- OperandToken.java 14 Jan 2007 11:48:43 -0000 1.34 *************** *** 126,303 **** } - /**trigonometric functions - calculate the sine of this token - @return the result as an OperandToken*/ - public OperandToken sin() - { - Errors.throwMathLibException("OperandToken sin"); - return null; - } - - /**trigonometric functions - calculate the cosine of this token - @return the result as an OperandToken*/ - public OperandToken cos() - { - Errors.throwMathLibException("OperandToken cos"); - return null; - } - - /**trigonometric functions - calculate the tangent of this token - @return the result as an OperandToken*/ - public OperandToken tan() - { - Errors.throwMathLibException("OperandToken tan"); - return null; - } - - /**trigonometric functions - calculate the arc sine of this token - @return the result as an OperandToken*/ - public OperandToken asin() - { - Errors.throwMathLibException("OperandToken asin"); - return null; - } - - /**trigonometric functions - calculate the arc cosine of this token - @return the result as an OperandToken*/ - public OperandToken acos() - { - Errors.throwMathLibException("OperandToken acos"); - return null; - } - - /**trigonometric functions - calculate the arc tangent of this token - @return the result as an OperandToken*/ - public OperandToken atan() - { - Errors.throwMathLibException("OperandToken atan"); - return null; - } - - /**Trigonometric function - calculates the hyperbolic sine - @return the result as an OperandToken*/ - public OperandToken sinh() - { - Errors.throwMathLibException("OperandToken sinh"); - return null; - } - - /**Trigonometric function - calculates the hyperbolic cosine - @return the result as an OperandToken*/ - public OperandToken cosh() - { - Errors.throwMathLibException("OperandToken cosh"); - return null; - } - - /**Trigonometric function - calculates the hyperbolic tan - @return the result as an OperandToken*/ - public OperandToken tanh() - { - Errors.throwMathLibException("OperandToken tanh"); - return null; - } - - /**Trigonometric function - calculates the inverse hyperbolic sine - @return the result as an OperandToken*/ - public OperandToken asinh() - { - Errors.throwMathLibException("OperandToken asinh"); - return null; - } - - /**Trigonometric function - calculates the inverse hyperbolic cosine - @return the result as an OperandToken*/ - public OperandToken acosh() - { - Errors.throwMathLibException("OperandToken acosh"); - return null; - } - - /**Trigonometric function - calculates the inverse hyperbolic tan - @return the result as an OperandToken*/ - public OperandToken atanh() - { - Errors.throwMathLibException("OperandToken atanh"); - return null; - } - - /**Standard functions - calculates the absolute value - @return the result as an OperandToken*/ - public OperandToken abs() - { - Errors.throwMathLibException("OperandToken abs"); - return null; - } - - /**Standard functions - calculates the exponent - @return the result as an OperandToken*/ - public OperandToken exp() - { - Errors.throwMathLibException("OperandToken exp"); - return null; - } - - /**Standard functions - calculates the natural logarythm - @return the result as an OperandToken*/ - public OperandToken ln() - { - Errors.throwMathLibException("OperandToken ln"); - return null; - } - /**Standard functions - calculates the logarythm - @return the result as an OperandToken*/ - public OperandToken log() - { - Errors.throwMathLibException("OperandToken log"); - return null; - } - - /**Standard functions - calculates the square root - @return the result as an OperandToken*/ - public OperandToken sqrt() - { - Errors.throwMathLibException("OperandToken sqrt"); - return null; - } - - /**Standard functions - rounds the value down - @return the result as an OperandToken*/ - public OperandToken floor() - { - Errors.throwMathLibException("OperandToken floor"); - return null; - } - - /**Standard functions - rounds the value up - @return the result as an OperandToken*/ - public OperandToken ceil() - { - Errors.throwMathLibException("OperandToken ceil"); - return null; - } - - /**Standard functions - rounds the value to the nearest integer - @return the result as an OperandToken*/ - public OperandToken round() - { - Errors.throwMathLibException("OperandToken round"); - return null; - } - - /**Standard functions - calculates the minimum of two values - @return the result as an OperandToken*/ - /*public OperandToken min(RootObject arg) - { - Errors.throwMathLibException("OperandToken multiply"); - return null; - }*/ - - /**Standard functions - calculates the maximum of two values - @return the result as an OperandToken*/ - /*public OperandToken max(RootObject arg) - { - return null; - }*/ //unary operations --- 126,130 ---- *************** *** 409,420 **** } - public OperandToken degreesToRadians() - { - return this; - } - - public OperandToken radiansToDegrees() - { - return this; - } } --- 236,238 ---- |
|
From: Stefan M. <st_...@us...> - 2007-01-14 11:34:48
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Tokens In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv5122/Source/MathLib/Tokens Modified Files: NumberToken.java Log Message: the creator NumbToken() now created an 0x0 array Index: NumberToken.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Tokens/NumberToken.java,v retrieving revision 1.101 retrieving revision 1.102 diff -C2 -d -r1.101 -r1.102 *** NumberToken.java 13 Jan 2007 10:57:18 -0000 1.101 --- NumberToken.java 14 Jan 2007 11:34:45 -0000 1.102 *************** *** 45,49 **** sizeY = 0; sizeX = 0; ! sizeA = null; noElem = 0; values = null; --- 45,49 ---- sizeY = 0; sizeX = 0; ! sizeA = new int[]{0,0}; noElem = 0; values = null; *************** *** 79,82 **** --- 79,83 ---- values = new double[1][2]; + // create real part if (_real!=null) values[0][REAL] = new Double(_real).doubleValue(); *************** *** 84,87 **** --- 85,89 ---- values[0][REAL] = 0.0; + // create imaginary part if (_imaginary!=null) values[0][IMAG] = new Double(_imaginary).doubleValue(); |
|
From: Stefan M. <st_...@us...> - 2007-01-14 11:32:42
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Tokens In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4322/Source/MathLib/Tokens Modified Files: MathLibObject.java Log Message: removed all trigonometric functions Index: MathLibObject.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Tokens/MathLibObject.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** MathLibObject.java 26 Dec 2006 12:28:13 -0000 1.10 --- MathLibObject.java 14 Jan 2007 11:32:31 -0000 1.11 *************** *** 270,274 **** /**trigonometric functions - calculate the sine of this token @return the result as an OperandToken*/ ! public OperandToken sin() { MathLibObject result = new MathLibObject(); --- 270,274 ---- /**trigonometric functions - calculate the sine of this token @return the result as an OperandToken*/ ! /* public OperandToken sin() { MathLibObject result = new MathLibObject(); *************** *** 285,293 **** } return result; ! } /**trigonometric functions - calculate the cosine of this token @return the result as an OperandToken*/ ! public OperandToken cos() { MathLibObject result = new MathLibObject(); --- 285,293 ---- } return result; ! }*/ /**trigonometric functions - calculate the cosine of this token @return the result as an OperandToken*/ ! /* public OperandToken cos() { MathLibObject result = new MathLibObject(); *************** *** 304,308 **** } return result; ! } /**trigonometric functions - calculate the tangent of this token --- 304,308 ---- } return result; ! }*/ /**trigonometric functions - calculate the tangent of this token *************** *** 320,324 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.tan()); } return result; --- 320,324 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.tan()); } return result; *************** *** 339,343 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.asin()); } return result; --- 339,343 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.asin()); } return result; *************** *** 358,362 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.acos()); } return result; --- 358,362 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.acos()); } return result; *************** *** 377,381 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.atan()); } return result; --- 377,381 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.atan()); } return result; *************** *** 397,401 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.sinh()); } return result; --- 397,401 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.sinh()); } return result; *************** *** 416,420 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.cosh()); } return result; --- 416,420 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.cosh()); } return result; *************** *** 435,439 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.tanh()); } return result; --- 435,439 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.tanh()); } return result; *************** *** 442,446 **** /**Trigonometric function - calculates the inverse hyperbolic sine @return the result as an OperandToken*/ ! public OperandToken asinh() { MathLibObject result = new MathLibObject(); --- 442,446 ---- /**Trigonometric function - calculates the inverse hyperbolic sine @return the result as an OperandToken*/ ! /* public OperandToken asinh() { MathLibObject result = new MathLibObject(); *************** *** 457,461 **** } return result; ! } /**Trigonometric function - calculates the inverse hyperbolic cosine --- 457,461 ---- } return result; ! }*/ /**Trigonometric function - calculates the inverse hyperbolic cosine *************** *** 473,477 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.acosh()); } return result; --- 473,477 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.acosh()); } return result; *************** *** 492,496 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.atanh()); } return result; --- 492,496 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.atanh()); } return result; *************** *** 511,515 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.abs()); } return result; --- 511,515 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.abs()); } return result; *************** *** 530,534 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.exp()); } return result; --- 530,534 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.exp()); } return result; *************** *** 547,551 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.degreesToRadians()); } return result; --- 547,551 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.degreesToRadians()); } return result; *************** *** 565,569 **** OperandToken data = var.getData(); ! result.setField(fieldName, data.radiansToDegrees()); } return result; --- 565,569 ---- OperandToken data = var.getData(); ! // result.setField(fieldName, data.radiansToDegrees()); } return result; |
|
From: Stefan M. <st_...@us...> - 2007-01-14 11:26:58
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1676/Source/MathLib/Functions/Statistics Modified Files: Variation.java Average.java Log Message: bufix documentation Index: Variation.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/Variation.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Variation.java 13 Jan 2007 11:41:34 -0000 1.5 --- Variation.java 14 Jan 2007 11:26:53 -0000 1.6 *************** *** 52,56 **** --- 52,59 ---- Calculates the variation of the parameters. @EXAMPLES + <programlisting> Variation(0,x,y,z,3,t) + </programlisting> @SEE + var, std */ Index: Average.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/Average.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Average.java 25 Nov 2006 11:42:46 -0000 1.4 --- Average.java 14 Jan 2007 11:26:53 -0000 1.5 *************** *** 33,42 **** statistics @SYNTAX ! Average(1,2,3,...,n) @DOC Calculates the average of the passed parameters. @EXAMPLES Average(a,b,3,4) @SEE ! stddev */ --- 33,44 ---- statistics @SYNTAX ! average(1,2,3,...,n) @DOC Calculates the average of the passed parameters. @EXAMPLES + <programlisting> Average(a,b,3,4) + </programlisting> @SEE ! std, mean, var */ |
|
From: Stefan M. <st_...@us...> - 2007-01-14 11:26:57
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/base In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1676/Source/MathLib/Functions/Statistics/base Modified Files: mean.m var.m Log Message: bufix documentation Index: var.m =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/base/var.m,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** var.m 14 Jan 2007 08:20:23 -0000 1.1 --- var.m 14 Jan 2007 11:26:54 -0000 1.2 *************** *** 78,79 **** --- 78,94 ---- endfunction + + /* + @GROUP + statistics + @SYNTAX + var([2,3,8,...]) + @DOC + Calculates the variance. + @EXAMPLES + <programlisting> + var([3,4,5]) -> 1 + </programlisting> + @SEE + mean, std + */ Index: mean.m =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/base/mean.m,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mean.m 13 Jan 2007 22:37:35 -0000 1.3 --- mean.m 14 Jan 2007 11:26:53 -0000 1.4 *************** *** 131,134 **** </programlisting> @SEE ! std */ --- 131,134 ---- </programlisting> @SEE ! std, var */ |
|
From: Stefan M. <st_...@us...> - 2007-01-14 10:38:39
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Internal In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv14031/Source/MathLib/Functions/Internal Removed Files: abs.int Log Message: --- abs.int DELETED --- |
|
From: Stefan M. <st_...@us...> - 2007-01-14 10:36:53
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13195/Source/MathLib/Functions/Matrix Modified Files: abs.java Log Message: Index: abs.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix/abs.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** abs.java 13 Jan 2007 10:46:52 -0000 1.2 --- abs.java 14 Jan 2007 10:36:49 -0000 1.3 *************** *** 48,53 **** abs(2) = 2 abs(3 + 4I) = 5 ! <programlisting> @SEE */ --- 48,54 ---- abs(2) = 2 abs(3 + 4I) = 5 ! </programlisting> @SEE + sign, angle */ |
|
From: Stefan M. <st_...@us...> - 2007-01-14 10:36:20
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13124/Source/MathLib/Functions/Trigonometric Modified Files: acsch.java asec.java asin.java asech.java Log Message: bufix documentation Index: asin.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric/asin.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** asin.java 13 Jan 2007 10:26:48 -0000 1.1 --- asin.java 14 Jan 2007 10:36:17 -0000 1.2 *************** *** 53,62 **** trigonometric @SYNTAX ! angle=ASIN(value) @DOC Returns the arc sine of the first operand. @EXAMPLES ! ASIN(1) = 1.5707963267948966 ! ASIN(0) = 0 @SEE sin, asinh, cos, acos, acosh --- 53,64 ---- trigonometric @SYNTAX ! angle=asin(value) @DOC Returns the arc sine of the first operand. @EXAMPLES ! <programlisting> ! asin(1) = 1.5707963267948966 ! asin(0) = 0 ! </programlisting> @SEE sin, asinh, cos, acos, acosh Index: asech.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric/asech.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** asech.java 13 Jan 2007 10:18:28 -0000 1.1 --- asech.java 14 Jan 2007 10:36:17 -0000 1.2 *************** *** 41,45 **** <programlisting> y = asech(x) ! </progamlisting> @SEE sec, cot, csch, sech, coth --- 41,45 ---- <programlisting> y = asech(x) ! </programlisting> @SEE sec, cot, csch, sech, coth Index: asec.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric/asec.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** asec.java 13 Jan 2007 10:12:17 -0000 1.1 --- asec.java 14 Jan 2007 10:36:17 -0000 1.2 *************** *** 41,45 **** <programlisting> y = asec(x) ! </progamlisting> @SEE sec, cot, csch, sech, coth --- 41,45 ---- <programlisting> y = asec(x) ! </programlisting> @SEE sec, cot, csch, sech, coth Index: acsch.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric/acsch.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** acsch.java 13 Jan 2007 10:16:51 -0000 1.1 --- acsch.java 14 Jan 2007 10:36:17 -0000 1.2 *************** *** 41,45 **** <programlisting> y = acsch(x) ! </progamlisting> @SEE sec, cot, csch, sech, coth --- 41,45 ---- <programlisting> y = acsch(x) ! </programlisting> @SEE sec, cot, csch, sech, coth |
|
From: Stefan M. <st_...@us...> - 2007-01-14 10:34:07
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11762/Source/MathLib/Functions/Trigonometric Modified Files: acot.java acoth.java Log Message: bufix documentation Index: acot.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric/acot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** acot.java 13 Jan 2007 10:14:33 -0000 1.1 --- acot.java 14 Jan 2007 10:34:00 -0000 1.2 *************** *** 38,45 **** calculates the inverse cotangent @NOTES @EXAMPLES <programlisting> y = acot(x) ! </progamlisting> @SEE sec, cot, csch, sech, coth --- 38,46 ---- calculates the inverse cotangent @NOTES + . @EXAMPLES <programlisting> y = acot(x) ! </programlisting> @SEE sec, cot, csch, sech, coth Index: acoth.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric/acoth.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** acoth.java 13 Jan 2007 10:20:38 -0000 1.1 --- acoth.java 14 Jan 2007 10:34:00 -0000 1.2 *************** *** 41,45 **** <programlisting> y = acoth(x) ! </progamlisting> @SEE sec, cot, csch, sech, coth --- 41,45 ---- <programlisting> y = acoth(x) ! </programlisting> @SEE sec, cot, csch, sech, coth |
|
From: Stefan M. <st_...@us...> - 2007-01-14 10:33:27
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/base In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11724/Source/MathLib/Functions/Statistics/base Modified Files: std.m Log Message: bufix documentation Index: std.m =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Statistics/base/std.m,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** std.m 13 Jan 2007 22:37:35 -0000 1.2 --- std.m 14 Jan 2007 10:33:21 -0000 1.3 *************** *** 110,115 **** std([a,b,3,4]) std([3,4,5]) -> 1 ! <programlisting> @SEE ! mean */ --- 110,115 ---- std([a,b,3,4]) std([3,4,5]) -> 1 ! </programlisting> @SEE ! mean, var */ |
|
From: Stefan M. <st_...@us...> - 2007-01-14 08:24:37
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv21059/Source/MathLib/Functions/Matrix Removed Files: Mean.java Log Message: --- Mean.java DELETED --- |