2019-04-08 13:52:19 +0200 | commented answer | Plot breaking the y-axis This is precisely the information I needed. Thank you! |
2019-04-08 11:39:57 +0200 | asked a question | Plot breaking the y-axis Is there a way to force plot not to break the y-axis? For example, in this graph: |
2018-10-12 09:59:00 +0200 | commented answer | Use of / operator when defining a function Thank you so much! |
2018-10-11 16:24:39 +0200 | received badge | ● Editor (source) |
2018-10-11 16:24:30 +0200 | answered a question | Use of / operator when defining a function Thank you so much! |
2018-10-11 16:23:38 +0200 | received badge | ● Scholar (source) |
2018-10-10 23:43:20 +0200 | received badge | ● Student (source) |
2018-10-10 23:32:27 +0200 | asked a question | Use of / operator when defining a function Hello. I need a clarification on the behaviour of fractions. More precisely, I don't understand the behaviour of the / operator when used inside a def(). I noticed that / finds the integer part of the fraction when used inside a def: Then sumA() the following result: That is: 8/3 + 9/8 = 3. How can I make a/b + c/d work like a sum of fractions inside this function? Oddly enough, the behaviour is different when generating random numbers a and b and adding 1/a + 1/b. This function adds the fractions in the correct way. The result of sumB() is Finally, I noticed that writing a1/b + c1/d instead of a/b + c/d makes everything work like fractions: The result of sumC() is |