mercredi 19 août 2020

Function with if statement in Mathematica

h[x_, y_] := (p = if[x > 0, 0, 1], q = if[y > 0, 3, 4], g = p + q; g)

I tried this function but I got an error of syntax

Aucun commentaire:

Enregistrer un commentaire