Ticket #1663 (closed defect: fixed)

Opened 5 months ago

Last modified 4 months ago

Solve[{x+y=7,x-y=1},{x,y}] gives null pointer

Reported by: michael Owned by: simon
Priority: major Milestone: GeoGebra 4.2
Component: CAS / MPReduce Keywords:
Cc: Estimate (h): 0
Progress (%): 100

Description

0: 
0: Solve[{x+y=7,x-y=1},{x,y}]
0: 
*** processCasCell: Solve[{x+y=7,x-y=1},{x,y}]
*** updateCasCellRows() ***
Row 0: Solve[{x+y=7,x-y=1},{x,y}]
eval with MPReduce: <<keepinput!!:=0$ numeric!!:=0$ precision 30$ print_precision 16$ off complex, rounded, numval, factor, div, combinelogs, expandlogs, pri$ currentx!!:= ggbcasvar1x; currenty!!:= ggbcasvar1y;<< begin scalar equations!!; equations!!:=(listofliststomat(list(addition(ggbcasvar1x,ggbcasvar1y) = 7, subtraction(ggbcasvar1x,ggbcasvar1y) = 1))); if arglength(equations!!)>-1 and part(equations!!,0)='list then equations!!:=mkdepthone(equations!!); return flattenlist(mysolve(aeval(equations!!),listofliststomat(list(ggbcasvar1x, ggbcasvar1y)))) end >>>>
   result: +++++ Error: java.lang.NullPointerException
GeoCasCell.computeOutput(), CAS eval: Solve[{x + y = 7, x - y = 1},{x, y}]
	error: Encountered "" at line 1, column 1.
Was expecting one of:

Change History

comment:1 Changed 5 months ago by michael

comment:2 Changed 5 months ago by michael

Solutions[{x+y=2,x=1},{x,y}]

comment:3 Changed 4 months ago by simon

  • Status changed from new to closed
  • Progress (%) changed from 0 to 100
  • Resolution set to fixed

Fixed in r15314.

Note: See TracTickets for help on using tickets.