Subversion Repositories wimsdev

Rev

Rev 20 | Rev 16113 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
 
2
#if you change these limits, you have to modify var.def!
3
limit_var=2048
4
maxstep=100
5
 
6
wims_multiexec=pari maxima
7
insmath_rawmath=yes
8
wims_backslash_insmath=yes
9
htmlmath_gtlt=yes
10
proc_oef=yes
11
!read deduc/$module_language/names
12
!read deduc/var.headers
13
# Limit Pari precision, for otherwise many computations will fail.
14
!default pari_precision=18
15
!default precision=10000
16
!default print_precision=8
17
wims_print_precision=$print_precision
18
maxima_precision=$print_precision
19
!default insplot_set=size 0.6,0.6
20
 
21
!if $cmd=help
22
 !set module_title=$title
23
 !set module_author=$author
24
 !set module_address=$email
25
 !exit
26
!endif
27
 
28
!read Exindex
29
exocnt=!itemcnt $exolist
30
!bound qnum between integer 1 and $exocnt default 1
31
!bound qcmlevel between integer 1 and 9 default 3
32
!bound random within 0,1 default 1
33
!default format=html
34
 
35
!if $cmd notwordof new renew and $status!=waiting
36
 !readproc oef/valback.proc
37
 error=double_reply
38
 !exit
39
!endif
40
 
41
!readproc deduc/imagedir.proc
42
!distribute items 0,0,0 into postvarcnt,conditioncnt,feedbackcnt
43
 
44
!if $status!=waiting
45
 !read deduc/exo.init
46
!else
47
 !read $deffile
48
 !readproc oef/valback.proc
49
!endif
50
 
51
m_step=$currstep
52
!if $cmd=reply and $status=waiting
7210 bpr 53
 
20 reyssat 54
 !if $opt iswordof newstep newcase gotocase
55
  !changeto deduc/var.$opt
56
 !endif
57
 !readproc deduc/meth$methstep.proc
58
 !if $error!=$empty or $methsubstep>1
59
  !exit
60
 !endif
61
 !advance methstep
62
 !if $methstep<=3 and \
63
    ($methstep<=2 or \
64
	(($askcontext>0 and $contextlist!=$empty) or \
65
	 ($askresult>0 and $resultlist!=$empty)))
66
  !exit
67
 !endif
68
 methstep=1
69
 thisstepnocount=$stepnocounting
70
 !read deduc/methreset
71
 !if $postvarcnt>0
72
  !read $deffile postdef
73
 !endif
74
 ctstep=!char 1 to $currstep of $stepcounting
75
 ctstep=!text select 1 in $ctstep
76
 ctstep=!charcnt $ctstep
77
 !if $earlyscore=$empty
78
  cstep=$[max($m_minsteps,$ctstep-$tolerance)]
79
  vstep=$[min($ctstep,$cstep)]
80
  uustep=$[max(0,$ustep-$ctstep-max(0,$m_minsteps+$tolerance-$ctstep))]
81
  wstep=$[max(1,$vstep)+$ecoeff*$uustep+$pcoeff*$penalty]
82
  wscore=$[max(0,(($m_minsteps/$wstep)^$scorepower-$scoremin)/(1-$scoremin))]
83
  scoretest=$[min(10,rint(100*$wscore)/10)]
84
  !if $scoretest<=0
85
   earlyscore=0
86
   module_score=0
87
   wims_module_log=score $module_score/10
88
  !endif
89
 !else
90
  scoretest=$earlyscore
91
 !endif
92
 !if $thisstepnocount!=yes
93
  !advance ustep
94
 !endif
95
 !advance currstep
96
 m_step=$currstep
97
 !if $currstep>$cutstep
98
  scoretest=0
99
  cutstop=yes
100
  !changeto deduc/var.finish
101
 !endif
102
 
103
 !if $conditioncnt>0
104
  !read $deffile test
105
 !else
106
  !read deduc/var.checkgoal
107
 !endif
108
 !if $condtest1=1 or $condtest1=-1
109
  !read deduc/var.finish
110
 !endif
111
!endif
112
 
7210 bpr 113