Playing with direct definition with the plot demo. Replaced "steps" with a
direct definition. Called the verb to run "curves".
Started debug (ctrl+k). Then ran it with a deliberate error. Got the debug
form changed y =.1 3 100 then pressed run in the debug window. J locks up
and eventually J crashes. It fails in J903 as well.
I did the same exercise using 13!:0]1 and 13!:4'' instead and it worked
fine. No problem.
The following is the scrip and term window up to entering debug:
require 'plot math/misc/trig'
curves =: 3 : 0
steps=.{{
'start end steps'=.y
step_size=.(end-start)%steps
start+step_size*i.>:steps
}}
numsteps=.100
pd 'reset'
pd 'title sin(exp) vs cos(exp)'
pd 'color red,green'
pd 'ycaption This is the y axis'
pd 'key sin(exp),cos(exp)'
s=. steps y,numsteps
pd s;sin ^s
pd s;cos ^s
pd 'show'
)
curves 1 3 2
|length error: steps
| 'start end steps' =.y
JVERSION
Engine: j904/j64avx2/windows
Beta-e: commercial/2022-07-16T19:21:14
Library: 9.04.04
Qt IDE: 2.0.3/6.2.4(6.2.4)
Platform: Win 64
Installer: J904 install
InstallPath: c:/j904
Contact: www.jsoftware.com
NB. Here entered debug and got the crash.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm