Post Reply 
What is wrong with my code?
01-23-2021, 07:56 PM
Post: #8
RE: What is wrong with my code?
(01-23-2021 02:30 PM)Albert Chan Wrote:  [...]
Combining 2 assignments into 1, we *mostly* avoided the non-exact path.
But, this assumed all inputs are integers.

Thanks, that the point I missed. Your strategy is by far more efficient:

r := simplify(√(exact(c-a)^2+exact(d-b)^2)); // \( r = \frac{2\times \sqrt{61}}{5} \)


I still in trouble reproducing the 'non ticking' behavior of SpyBot's results.

Is there a way to avoid the evaluation of an expressions ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
What is wrong with my code? - Spybot - 01-20-2021, 09:05 PM
RE: What is wrong with my code? - rawi - 01-21-2021, 05:13 AM
RE: What is wrong with my code? - C.Ret - 01-21-2021, 08:27 PM
RE: What is wrong with my code? - Spybot - 01-23-2021, 01:25 AM
RE: What is wrong with my code? - C.Ret - 01-23-2021 07:56 PM
RE: What is wrong with my code? - Han - 01-24-2021, 03:31 AM
RE: What is wrong with my code? - Spybot - 01-24-2021, 03:40 PM



User(s) browsing this thread: 3 Guest(s)