Multiple precision editorial computing In editorial computing multiple precision computations are performed by giving a specification ACCURACY=n,m where n>16 is the accuracy used in calculations and m is the accuracy for output (by default m=n). ....................................................................... Examples: ACCURACY=50 1/3=0.33333333333333333333333333333333333333333333333333 2^150=1427247692705959881058285969449495136382746624 ....................................................................... n=10^500 ACCURACY=1000,10 This shows how lim (1+1/n)^n=exp(1)=e exp(1)-(1+1/n)^n=0.135914091e-499 ....................................................................... Sum 1+1/2+1/4+1/8+1/16+... = 2 ACCURACY=1000,50 b=for(i=1)to(2000)term(T=1)sum(0.5*T) 2-b=0.1741961963243443335115239098955774459171820748541e-601 2^(-1999)=0.1741961963243443335115239098955774459171820748541e-601 ....................................................................... Multiple precision editorial computing (continued) The rules and tools in editorial multiprecision computing are the same as in standard editorial computing. However, certain special functions (like statistical and financial) are not available in multiprecision form. Also multiple activations (.=) are not permitted. Long numbers are presented on consecutive lines as follows: ....................................................................... ACCURACY=200 WIDTH=50 (WIDTH determines the line width. Default is 70.) sqrt(2)=0.1414213562373095048801688724209698078569\ 67187537694807317667973799073247846210703885038753\ 43276415727350138462309122970249248360558507372126\ 44121497099935831413222665927505592755799950501152\ 7820605714e1 Results may overwrite existing lines. Multiple precision editorial computing (continued) Numbers computed can be saved in a compressed form to files in the current working directory with names starting by '!' and with the .NBR extension. ....................................................................... Example: Computing and Saving e in !E.NBR with ACCURACY=10000 NBR=!E / Specification giving the the name of the result exp(1)= When exp(1)= above is activated, e is computed and saved in !E.NBR. Instead of a numerical value exp(1)=!E is diplayed on the activated line. ....................................................................... Thereafter !E can be used in numerical computations: ACCURACY=300 log(!E)=1 ....................................................................... P = More on multiprecision computations