Subversion Repositories wimsdev

Rev

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

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