05/02/2009, 12:44 AM
(This post was last modified: 05/02/2009, 12:48 AM by nuninho1980.)

andydude Wrote:nuninho1980 Wrote:I got calculate w/ only 6 digits. I don't get more than 6 digits after I tried N[tet /. {c -> 2, y -> 0.5},20].

First, you should probably change the 3 to 10 or 15 if you want more accuracy, and second, you're setting precision in the wrong place. If you want more precision in the output, you need more precision in the input:

and lastly, the errors are harmless, that has to do with the way SeriesData is implemented, and I usually useCode:`tet /. {c -> 2, y -> SetPrecision[0.5, 20]}`

to prevent those errors anways.Code:`Off[SeriesData::sdatc]`

Andrew Robbins

thanks!

but...

1.00000000000000000001^^0.5:

mathematica:

Code:

`input - tet = c + `

Normal[RegularIterate[Series[c^((x + c)/c) - c, {x, 0, 10}],

y]] /. x -> (1 - c);

tet /. {c -> SetPrecision[1.00000000000000000001, 500],

y -> SetPrecision[0.5, 500]}

output - 1.00000000000000000000999999999900000000107632355135617795995209920536\

8238513511966004491298409050071250667500689538361713781158824235061751\

8804942336518455216635292814415323018925473233062089824544715074650425\

6359732393835545208872315977093580695663321688857957469520534738177800\

1693967855762254625860886110633315544031059619857729710726124870557076\

6594635989115759590552321672637545798115791229033207673798680646642688\

6796500107272130759792942964123634745456350777468683283970538611734299\

73796429395

maple:

Code:

`output - 1.00000000000000000000999999999900000000009999999998750000000149999999983645833335 16666666645026041669`

maple can be better than mathematica using your method is faster but your code for maple has errors.