|
Campbell Ritchie wrote:Please tell us the full details; we can only help if we know what is going wrong. What is supposed to happen and what does happen? I think I can see a compiler error somewhere. Add the image to the post, not the link (which I shall delete) because some people are reluctant to click such links. Please explain what the formula is supposed to calculate.
in the second exerciseCampbell Ritchie wrote:Please tell us the full details; we can only help if we know what is going wrong. What is supposed to happen and what does happen? I think I can see a compiler error somewhere. Add the image to the post, not the link (which I shall delete) because some people are reluctant to click such links. Please explain what the formula is supposed to calculate.
Campbell Ritchie wrote:Please read about abs(). Who told you to use it? It is not appropriate for the current application.
Please post the original image with the formula; I removed the link for reasons I explained earlier. I can see it, and I think it evaluates to
1.0 ÷ √(|x² − 1.0|)
in which case when x = ±1, the formula will evaluate to ∞.
What is it the formula for?
I haven't looked at the second exercise yet.
akol ompen wrote:
"indentation and spaces surrounding all binary operators" i didnt catch it.If you could do an example please.What i think you mean is that i do lines with out wrote something?
I understand! Thanks a lot now i catch it i will do itHenry Wong wrote:
akol ompen wrote:
"indentation and spaces surrounding all binary operators" i didnt catch it.If you could do an example please.What i think you mean is that i do lines with out wrote something?
Which is more readable? understandable?
This? ....
Or this? ...
Also, your eariler code had comments. Why did you remove them? Granted, they might not have been the best comments, but you could have improved them, than removing them completely.
Henry
akol ompen wrote:
I understand! Thanks a lot now i catch it i will do itHenry Wong wrote:
akol ompen wrote:
"indentation and spaces surrounding all binary operators" i didnt catch it.If you could do an example please.What i think you mean is that i do lines with out wrote something?
Which is more readable? understandable?
This? ....
Or this? ...
Also, your eariler code had comments. Why did you remove them? Granted, they might not have been the best comments, but you could have improved them, than removing them completely.
Henry
i will do and the next exercise after .Lets finish this.
Henry Wong wrote:. . . . Which is more readable? understandable?
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|