The other day I was playing around with some equations I wanted to combine and came across this problem : Let's say I have two mathematical quantities $A,B \in \mathbb{R}$. Both can be either $= 0$ or $\neq 0$. Let's define the value $\textsf{true}$ to be "$\neq 0$" and $\textsf{false}$ to be "$=0$". So $A$ and $B$ now represent boolean value.
It is easy to mathematically simulate the AND operator by multiplying $A \cdot B$ since $A\cdot B\neq 0 = \textsf{true}$ iff $A \neq 0 = \textsf{true}$ and $B \neq 0 = \textsf{true}$
But how can we simulate the OR operator using only standard functions. (Typically not "case"-functions or piecewise-function) ?
I was thinking about using DeMorgan's Law and writing $A\vee B = \neg(\neg A \wedge \neg B)$, but now we need to mathematically write "$\neg$". The hard part here is that $\textsf{true}$ can be any number except $0$, not a fixed one. I also tried to "normalize" the variable, for example by dividing it by itself but this then raises the problem of $0/0$ for $\textsf{false}$ variable. Ideally we would need an operation $F$ such that $$ F(A) = \begin{cases} C & \text{if } A \neq 0 \\ 0 & \text{else} \end{cases} $$ (for some constant $C$).
Then $\neg A$ would simply be $C-F(A)$.
Thanks :)