Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Extending piecwise to 2 variables (or a parameter)

This piecewise function work correctly

score =  piecewise([([i,i], ncand - i) for i in range(ncand)])

because ncand is defined earlier in my notebook. when I typeset say scor(1) It returns what I expect. But I would like that ncand be a variable.

Extending piecwise to 2 variables (or a parameter)

This piecewise function work correctly

score =  piecewise([([i,i], ncand - i) for i in range(ncand)])

because ncand is defined earlier in my notebook. when I typeset say scor(1)score(1) It returns what I expect. But I would like that ncand be a variable.

Extending piecwise to 2 variables (or a parameter)

This piecewise function work correctly

score =  piecewise([([i,i], ncand - i) for i in range(ncand)])

because ncand is defined earlier in my notebook. when I typeset say score(1) It returns what I expect. But I would like that ncand be a variable.