I reckon if the function can't be evaluated at the endpoint, plot should narrow the interval until it can be. I don't see myself having time to work on this any time soon, so if someone else wants to step up and make this change, please do. [Chris did 99.9% of the work on Plot but this bug is mine.]

Henry Rich

On 3/12/2023 1:07 AM, More Rice wrote:
Hi,

some questions, if I may ...

1. plot can't handle asymptote (or "not in domain" issue) right at the
boundary in its domain?

install 'all'

load 'plot trig numeric'

plot _5 5 ; '%' NB. ok

plot _5 0 ; '%' NB. Bad

|NaN error: plotfintvl

| bakproj=.({:"1 zvals),~"0 1(}."1 zvals) -(}."1 secant)*"1 intsize

plot 0 5 ; '%' NB. Bad

|NaN error: plotfintvl

| fwdproj=.({."1 zvals),"0 1(}:"1 zvals) +(}:"1 secant)*"1 intsize

plot  0 10; '%:'  NB. ok

plot _1 10; '%:'  NB. Bad

|domain error: plotsubd

| mtone1=.
(<./@:((((i.&0)@:(2&(<:/\)))>.((i.&0)@:(2&(>:/\))))"1))@(1&{::)"1 d

JVERSION

Engine: j903/j64avx2/windows

Release-b: commercial/2022-01-28T04:09:50

Library: 9.03.08

Qt IDE: 1.9.5s/5.15.2(5.15.2)

Platform: Win 64

Installer: J903 install

InstallPath: c:/users/myself/software/j903

Contact: www.jsoftware.com



2. I'm trying to control plot's y-scale and x-/y-tick labels. I don't see
its doc in jwiki nor calculus.pdf.  So, I tried scrolling through
Help|Studio|Showcase...|plot to see if they're possible; but still
nothing.  For example, instead of a numeric value, I want to do 0, +/-
1p1, +/- 2p1, etc.  Can it be done?


3. While looking for solution to #2, I stumbled upon a bug:
Help|Studio|Showcase...|isigraph.  Repeatedly pressing F12 till you see
'Screen Roller' (yes, ignore Paint Demo and just hit another F12).  Once
you reach this stage, Paint Demo will relaunch if you try to exit the
window. In the end, I've to kill the jqt to get out of the demo.


thanks


Maurice
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to