SwitchΒΆ
fortran.spad line 1255 [edit on github]
This domain builds representations of boolean expressions for use with the FortranCode domain.
- AND: (Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %), Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %)) -> %
AND(x, y)
returns the Switch expression representingx and y
.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: Symbol -> %
coerce(s)
is undocumented.
- EQ: (Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %), Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %)) -> %
EQ(x, y)
returns the Switch expression representingx = y
.
- GE: (Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %), Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %)) -> %
GE(x, y)
returns the Switch expression representingx>=y
.
- GT: (Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %), Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %)) -> %
GT(x, y)
returns the Switch expression representingx>y
.
- LE: (Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %), Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %)) -> %
LE(x, y)
returns the Switch expression representingx<=y
.
- LT: (Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %), Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %)) -> %
LT(x, y)
returns the Switch expression representingx<y
.
- NOT: % -> %
NOT(x)
returns the Switch expression representing\~~x
.
- NOT: Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %) -> %
NOT(x)
returns the Switch expression representing\~~x
.
- OR: (Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %), Union(I: Expression Integer, F: Expression Float, CF: Expression Complex Float, switch: %)) -> %
OR(x, y)
returns the Switch expression representingx or y
.