2020-12-20 22:18:48 +0200 | received badge | ● Popular Question (source) |
2018-11-20 17:47:28 +0200 | commented answer | Evaluate from string an equation that has integer division I'm using |
2018-11-20 17:45:13 +0200 | commented answer | Evaluate from string an equation that has integer division I put the sentence |
2018-11-20 17:44:54 +0200 | answered a question | Evaluate from string an equation that has integer division I put the sentence |
2018-11-20 17:20:40 +0200 | received badge | ● Editor |
2018-11-20 17:18:50 +0200 | answered a question | Converting strings into expressions Well, but this does no work for the following case.
I want to define an equation from a string, by changing the value of If I follow the suggested construction like I get the Error Message In other words, and referring to the first question, How about an expression like |
2018-11-19 18:11:45 +0200 | received badge | ● Autobiographer |
2018-11-19 18:07:42 +0200 | received badge | ● Scholar (source) |
2018-11-18 19:49:37 +0200 | received badge | ● Student (source) |
2018-11-18 19:09:33 +0200 | asked a question | Evaluate from string an equation that has integer division I have the following Python list that contains strings of equations. You can see that all of the equations have integer division. Because this is obtained by some program, I can not edit the strings. When I evaluate for It gives And should be give Of course I can solve this by modifying MANUALLY the strings of the equations by indicating that the denominator is a real number and not an integer (I put a decimal point at the end of the integer in the denominator) as following. But this is not the idea, the strings of the equations are generated automatically and one can not modify by editing manually, because it will be implemented in a process where it should be create at least 2000 equations. Is there some elegant solution for this? --Many thanks! |