Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2717 plot2d treats linear and log plots inconsistentlyf

None
closed
nobody
5
2014-05-16
2014-04-02
Sergey Litvinov
No

This gives me a plot and a warrning

(%i1) plot2d(if x>5 then 1 else 'und, [x, 1, 10]);
plot2d: expression evaluates to non-numeric value somewhere in plotting range.

But with 'logy' it fails

(%i1) plot2d(if x>5 then 1 else 'und, [x, 1, 10], [logy]);
Maxima encountered a Lisp error:

LOG: $UND is not a number

Automatically continuing.
To enable the Lisp debugger set *debugger-hook* to nil.

I think it would be useful to have a plot too.

Maxima version: "branch_5_32_base_93_g33a7882"
Maxima build date: "2014-03-27 19:40:19"
Host type: "x86_64-unknown-linux-gnu"
Lisp implementation type: "CLISP"
Lisp implementation version: "2.49 (2010-07-07) (built 3575122160) (memory 3604934424)"

Discussion

  • I've just pushed [83875c], which should fix this bug. Thanks for the report.

     

    Related

    Commit: [83875c]

    • status: open --> closed
     
  • It works. Thank you.