Items tagged with digits digits Tagged Items Feed

Say I have a 3x3 matrix with real entries (like 3.4) and want to compute, say, A^(11). How can I do it and only have 5 digits in the output? I set Digits:=5; and used MatrixPower -- but got 10 digits, which is way too many for the classroom presentation.

I am trying to illustrate the effects of using finite-precision arithmetic on solving certain linear systems using elementary row operations. I am able to set Digits to the desired level and use the RowOperation command for each individual row operation. I would like to be use say, ReducedRowEchelonForm or LinearSolve with the desired level of precision. Is there anyway to force Maple to use whatever number of digits when using commands like ReducedRowEchelonForm or LinearSolve?...

For example, how to round 45.67845 up to 3 digits after comma?

expected answer - 45.678

Hello,

I want to calculate the IDs product :

 

I have some numerical data, which are very accurate (500 digits) and want to copy them on a text file.

For pratical reason I would like the procedure writefile to write just 20 digits figures: which is the right syntax to use?

Digits:=20;

p:=proc() global Digits; Digits:=Digits+5;end proc;

Digits;

Obtained 20 at the end. Which variables has also such property of "recoveriability" after proc call?

hi

 

i have written the followin code that achieve Y from determinant of matric aa. but when i change digit my result changes. i dont know why? 

 

> restart;
> with(LinearAlgebra);
> Digits := 100;
>
> NULL;
> upsilon := .38;
> rho := 0.122e4;
> l := 0.176e-4;
> h := 2*0.176e-4;
> L := 20*h;
> NULL;
> E := 0.144e10;
> lambda := E*upsilon/((1+upsilon)*(1-2*upsilon));

On the usenet newsgroup sci.math.symbolic Prof. Richard Fateman posted a question (or here) recently about what mechanisms a math application could use to handle the situation of negligible imaginary parts of computed data when plotting.

An example could...

And so with this provocative title, "pushing dsolve to its limits" I want to share some difficulties I've been having in doing just that. I'm looking at a dynamic system of 3 ODEs. The system has a continuum of stationary points along a line. For each point on the line, there exist a stable (center) manifold, also a line, such that the point may be approached from both directions. However, simulating the converging trajectory has proven difficult.

I have simulated as...

Dear all,

I have encoutered a funny problem with Optimization package. I minimize some long stuff (lets call it A) and get an answer, e.g.

[.116553990209052046e-19, [n = 4.24568325257496060, rhocut = 1.66125593854788400, m = 2.00000021862965971, rho = .956914761577446150]]

then i just do

evalf(subs(n = 4.24568325257496060, rhocut = 1.66125593854788400, m = 2.00000021862965971, rho = .956914761577446150, A));

and i get

There are two data txt files:x0-y0.txt and x1-y1.txt,every one has two columns.
So, two functions can be made from the data,named y0=y0(x0) and y1=y1(x1).
I just want (y0-y1)/y0 at the same x coordinate.
Because it's too difficult to get it directly,I choose the curve fit method.
First,I used the command CurveFitting[ThieleInterpolation] to get two functions.
And then pointplot the (y0-y1)/y0 at the same x0 coordinate.
Surprisingly,the plot is discontinued.

Why do I get different results for these four command? BTW only Result #2 is correct.
 
> evalf((1/2)*sqrt(3.0), 5);
0.86605
> evalf((1/1)*sqrt(3.0*(1/4)), 5);
0.86603
> evalf((1/1)*sqrt(3/4), 5);
0.86605
> evalf((1/2)*sqrt(3), 5);
0.86605
 
I have read the answer to a similar question, 

Hello,

I do want to export as  LATEX input (displaying only 3 digits) my matrix "tableau".

After using

latex(  evalf(tableau),   3 )

I get too many decimals. What should I do to send as latex input only 3 decimals. My commands are below and my worksheet attached.

Thanks in advance for any help,

 

Jean-Jacques

 

 

restart:
f1 :=  (w1, w2,n) -> add(add(

Hi everybody, could any one tell me " What is the job of order  round(evalhf(Digits)) ?

Amr

1 2 Page 1 of 2