RosettaCodeData/Task/Logical-operations/Maxima/logical-operations.maxima

10 lines
219 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
f(a, b) := [not a, a or b, a and b];
/* to use multiple arguments, use any of these */
a and b and c and d;
a or b or c or d;
"and"(a, b, c, d);
"or"(a, b, c, d);
apply("and", [a, b, c, d]);
apply("or", [a, b, c, d]);