part (-expression, 0) => "neg"

Bugs

Modérateur : xcasadmin

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

part (-expression, 0) => "neg"

Message par compsystems » lun. févr. 26, 2018 1:49 am

HELLO BP, there is a problem extracting the operator from the following expression
the part (-3 * x, 0) extracts the minus sign "-", must extract the change of sign "neg" of the operator, so that the reverse process can be carried out, or make a difference between the symbols − (minus), - (neg)

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: part (-expression, 0) => "neg"

Message par parisse » lun. févr. 26, 2018 7:09 am

- is neg, you won't see binary minus because a-b is internally a+(-b).

Répondre