Multiprecision Computing Toolbox 3.1.3

by Pavel Holoborodko on September 20, 2011

New version of multiprecision computing toolbox (MCT) – 3.1.3.1472 is available for download. Improvements have been made to expression evaluation in high precision:

  • New functions: acot(), asec(), acsc(), acoth(), asech(), acsch(). All of them support complex arguments too.
  • Both symbols i and j can be used for imaginary unit. Before only i was allowed.

Examples of introduced features:

% use i or/and j to denote imaginary unit 
>> x = mp('sqrt(i+j)-sqrt(2i)')
0
 
% use new functions in expression, 40 digit accuracy.
>> x = mp('acot(pi) + asec(pi) + acsc(pi) + acoth(pi) + asech(pi) + acsch(pi)',40)   
2.521896593318449038508054025494729076484 + 1.246850219862915899250368861010977606426i
 
% compare with MATLAB
>> acot(pi) + asec(pi) + acsc(pi) + acoth(pi) + asech(pi) + acsch(pi)                
ans =
 
           2.52189659331845 +      1.24685021986292i
 
% complex arguments are supported
>> x = mp('acoth(sqrt(-1))',40)
0 - 0.7853981633974483096156608458198757210493i

{ 0 comments… add one now }

Leave a Comment

Next post: