Rank: 533 based on 152 downloads (last 30 days) and 18 files submitted
photo

Ben Petschel

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Ben View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Oct 2012 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel fraction, rational, arithmetic 12 15
  • 5.0
5.0 | 8 ratings
22 Jul 2011 wordhit determines probabilities and expected times to produce words in a random character stream Author: Ben Petschel probability, coin toss, random string, markov chain, transition matrix 2 0
16 Jun 2011 quantilese determines quantiles of data and their standard errors or confidence intervals Author: Ben Petschel quantile, standard error, confidence interval, percentile 2 0
15 Jun 2011 scatterquad2 calculates the volume under a surface defined by scattered points Author: Ben Petschel quad2, dblquad, delaunay 2 0
  • 5.0
5.0 | 1 rating
02 Nov 2010 groebner manipulate and solve systems of multivariate polynomial equations by computing the groebner basis Author: Ben Petschel groebner, polynomial equations 32 14
  • 4.66667
4.7 | 4 ratings
Comments and Ratings by Ben View all
Updated File Comments Rating
06 Oct 2012 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel

Richard/Nathan, thanks for the suggestions - I've submitted a new update for fr.m and freduce.m. I got around the performance issue in fr.m by using a persistent variable to ensure that the calls to superiorto are done only once.

18 Aug 2011 fdep: a pedestrian function dependencies finder FDEP dissects ML files and iteratively looks for all user defined functions used during runtime Author: us

Excellent tool, much faster and more informative than DEPFUN.

An especially useful feature is detection of unresolved function calls, which DEPFUN doesn't seem to do. The synopses of each module have a list of unresolved names, though I couldn't see a way to get a single list of all unresolved names except by browsing.

Also you might want to switch off latex interpretation in the point labels in the dependency matrix (line 1921, I think).

Good work!

14 Aug 2011 Special Functions math library Collection of Special Functions programs. Author: Paul Godfrey

Nice work, these should be included in the core MATLAB.

Since erf rapidly goes to infinity along the i axis (e.g. erfz(1i*30) = 1i*Inf in floating point), it would be useful to have a function that calculates exp(z^2)*erf(z) or z*exp(z^2)*erfc(z).

14 Aug 2011 Dett Computes the determinant of non-square matrices. Author: Paul Godfrey

Interesting idea, it would be good to see references to the literature; for example does it relate to the one in
http://www.emis.de/journals/BAG/vol.46/no.2/b46h2rad.pdf

which can be used to calculate the areas of polygons, for example.

Any definition for rectangular matrices, including the above, would be a major rewrite of the theory for square determinants which are defined as alternating multilinear forms; this would imply that det(A)=0 whenever m<n.

11 Aug 2011 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel

Ok, to do that you'd need to define a total ordering on the polynomials by partitioning R[x] into P, -P and {0}, so p(x)>0 if p(x) is in P. See Lang's Algebra chapter 11 (real fields) for examples and details on the theory - e.g. the monomial orderings used for Groebner basis calculation are valid. This way you have sign(p)=1 if p is in P, etc, and similarly abs(p)=sign(p)*p.

Also I forgot to mention that MOD is required, but once this is defined then it's easy to write a GCD function. To define MOD you just need to define the representative elements of the cosets R[x]/p(x), such that MOD(q,p)>=0.

If you're willing to put in the effort implementing this, I'd be keen to see the results, but otherwise you're probably better off with a professional package such as Mathematica (which has an affordable home-use version) or the Symbolic Toolbox.

Comments and Ratings on Ben's Files View all
Updated File Comment by Comments Rating
06 Oct 2012 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel Petschel, Ben

Richard/Nathan, thanks for the suggestions - I've submitted a new update for fr.m and freduce.m. I got around the performance issue in fr.m by using a persistent variable to ensure that the calls to superiorto are done only once.

03 Oct 2012 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel Crozier, Richard

One more thing, even with my change, I still find that about 60% of the time in fr.m is spent on the line

if exist('vpi', 'class')

at least according to the profiler. So if anyone does not have this toolbox, I'd advise just commenting this whole test out.

03 Oct 2012 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel Crozier, Richard

Sorry for the multiple posts, and a better suggestion, just:

if exist('vpi', 'class')
superiorto('vpi')
end

03 Oct 2012 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel Crozier, Richard

I suggest modifying fr.m to check for the existence of the vpi class before calling superiorto like follows:

if exist('vpi', 'class')
try
superiorto('vpi')
catch
% in case VPI toolbox has never been used
end
end

the reason is that if you call fr.m many times and don't have the vpi toolbox, the call to superiorto('vpi') is incredibly slow, and in fact takes up most of the execution time.

03 Oct 2012 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel Crozier, Richard

I suggest modifying fr.m to check for the existence of the vpi class before calling superiorto like follows:

if exist('vpi', 'class')
try
superiorto('vpi')
catch
% in case VPI toolbox has never been used
end
end

the reason is that if you call fr.m many times and don't have the vpi toolbox, the call to superiorto('vpi') is incredibly slow, and in fact takes up most of the execution time.

Top Tags Applied by Ben
sql, arithmetic, chebyshevmarkovstieltjes, coin toss, combination
Files Tagged by Ben View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Oct 2012 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel fraction, rational, arithmetic 12 15
  • 5.0
5.0 | 8 ratings
22 Jul 2011 wordhit determines probabilities and expected times to produce words in a random character stream Author: Ben Petschel probability, coin toss, random string, markov chain, transition matrix 2 0
16 Jun 2011 quantilese determines quantiles of data and their standard errors or confidence intervals Author: Ben Petschel quantile, standard error, confidence interval, percentile 2 0
15 Jun 2011 scatterquad2 calculates the volume under a surface defined by scattered points Author: Ben Petschel quad2, dblquad, delaunay 2 0
  • 5.0
5.0 | 1 rating
02 Nov 2010 groebner manipulate and solve systems of multivariate polynomial equations by computing the groebner basis Author: Ben Petschel groebner, polynomial equations 32 14
  • 4.66667
4.7 | 4 ratings

Contact us