Rev 3265 | Rev 4158 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3265 | Rev 4121 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | !goto proc |
2 | !goto proc |
3 | !endif |
3 | !endif |
- | 4 | ||
4 |
|
5 | !!slib_title=Calculate an approximation interval for a given real |
5 | slib_parms=3\ |
- | |
6 | ,a real\ |
- | |
7 | 3,number of significative digits\ |
- | |
8 | 1,tolerance on the last significative digit |
- | |
9 | slib_author=Bernadette Perrin-Riou |
6 | slib_author=Bernadette Perrin-Riou |
10 | slib_out=three numbers for the answer type range : minimum, maximum, real with the number of significative digits,\ |
- | |
11 | an error of +/- "tolerance" on the last number is allowed (calculated with the given real). |
- | |
12 | slib_example=234765\ |
7 | slib_example=234765\ |
13 | 0.006543\ |
8 | 0.006543\ |
14 | 45.987543,5,10 |
9 | 45.987543,5,10 |
15 | slib_require=pari |
10 | slib_require=pari |
- | 11 | ||
- | 12 | !reset slib_lang_exists_tmp |
|
- | 13 | !readproc help/$lang/slib/text/approximation |
|
- | 14 | !if $slib_lang_exists_tmp!=yes |
|
- | 15 | !readproc help/en/slib/text/approximation |
|
- | 16 | !endif |
|
- | 17 | !exit |
|
- | 18 | ||
- | 19 | ||
16 | !exit |
20 | !exit |
17 | 21 | ||
18 | :proc |
22 | :proc |
19 | !distribute items $wims_read_parm into slib_r,slib_app,slib_tol |
23 | !distribute items $wims_read_parm into slib_r,slib_app,slib_tol |
20 | !default slib_app=3 |
24 | !default slib_app=3 |