I actually need to divide by zero for something I am creating. It does not push the 0 towards my program. But instead pushes the equation to another. Is there anyway possible I can divide by zero without running into an error?
Asked
Active
Viewed 53 times
0
-
No, since the division by 0 is undefined. There is no result you could forward. – NathanOliver Jun 12 '17 at 18:38
-
Divide what by zero? An integer or a real? – Jun 12 '17 at 18:38
-
6Test for `0` and set the answer to what you conciser reasonable – Richard Critten Jun 12 '17 at 18:38
-
send them as characters and parse it out on the other end? – Jason V Jun 12 '17 at 18:38
-
Thanks for help. Got it solved! – Johan Doe Jun 12 '17 at 18:41
-
@Nathan In the case of real numbers you could return INF. – Jun 12 '17 at 18:42
-
[Expression templates](https://en.wikipedia.org/wiki/Expression_templates) is the correct answer ;) Other symbolic computation methods may also work – Ivan Aksamentov - Drop Jun 12 '17 at 18:42