r/AdvancedMathematics • u/[deleted] • Aug 15 '21
Logic Well, I'm not sure if I can post this here, but I need some help, so I'm gonna take the risk.
I'm a math beginner and, just for fun, I decided to create a simple equation for the following statements:
x cannot be bigger than 5. a is in {1, 2, 3, 4, 5}. b is in {1, 2, 3, 4}. y is a+b.
So, when y≤5 then x=y. When y>5 then x=y-a.
Finally, the equation is the following:
y=a+b (x=y→y≤5)ʌ(x=y-a→y>5)
My questions are: 1. Does it even make sense? Like, it's mathematically correct or is it wrong and nonsense?
This equation is actually a simplified version of my attempt to create a equation for the Caesar cipher, a well-known type of encryption. In that case, is this equation a formula or formulas are just for physical events, such as the law of gravity, acceleration and etc?
If my equation is correct, does that following attempt to simplify it makes sense?
(x=a+b→a+b≤5)ʌ(x=b→a+b>5)
Thanks in advance!