Rev 5807 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
338 | schaersvoo | 1 | goback=0 |
362 | schaersvoo | 2 | errortext=$empty |
338 | schaersvoo | 3 | n=$counter |
4 | # check on scientific notation 3e+12 3*10^12 |
||
5 | test=!nospace $AAA |
||
6 | !if x10 isin $test |
||
7 | ex=!record 68 of $remarkdir/commonremarks.$taal |
||
8 | maxscore=$[$P1*$maxscore] |
||
9 | !if $teaching=1 |
||
10 | goback=1 |
||
11 | errortext=$ex |
||
12 | !exit |
||
13 | !else |
||
14 | !if $extra=$empty |
||
15 | extra=$ex |
||
16 | !else |
||
5807 | schaersvoo | 17 | extra=$extra<br />$ex |
338 | schaersvoo | 18 | !endif |
19 | AAA=!replace internal x10 by *10 in $AAA |
||
20 | !endif |
||
21 | !else |
||
22 | test=!replace [0-9]e[0-9] by @ in $test |
||
23 | !if @ isin $test |
||
24 | maxscore=$[$P1*$maxscore] |
||
25 | testvar1=!replace internal e by e+ in $AAA |
||
5857 | schaersvoo | 26 | testvar1=<span style="color:green">$testvar1</span> |
27 | testvar2=<br /><span style="color:red">$AAA</span> |
||
338 | schaersvoo | 28 | errortext=!record 16 of $remarkdir/commonremarks.$taal |
29 | goback=1 |
||
30 | !exit |
||
31 | !endif |
||
32 | AAA=!replace internal ** by ^ in $AAA |
||
33 | AAA=!replace internal e+ by *10^ in $AAA |
||
34 | AAA=!replace internal e- by *10^- in $AAA |
||
35 | !for p=1 to 3 |
||
36 | AAA=!replace internal ** by * in $AAA |
||
37 | !next p |
||
38 | t=!char 1 of $AAA |
||
39 | !if $t=* |
||
40 | AAA=!char 2 to -1 of $AAA |
||
5857 | schaersvoo | 41 | !endif |
338 | schaersvoo | 42 | !endif |
5857 | schaersvoo | 43 | |
338 | schaersvoo | 44 | !exit |