This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
biggest yikes's profile picture

Math API 4 Dummies

Started by biggest yikes, 15 December 2013 - 01:16 PM
biggest yikes #1
Posted 15 December 2013 - 02:16 PM
EDIT: Could an admin lock/delete this topic?
Edited on 03 May 2015 - 07:23 PM
raduczoid #2
Posted 16 December 2013 - 09:08 AM
Thx, it was exactly something I needed:)
Lyqyd #3
Posted 16 December 2013 - 10:21 AM
This is well below the level of quality we expect in a tutorial.
biggest yikes #4
Posted 16 December 2013 - 04:17 PM
I'm sorry about that, if it's true.
I just felt like it might be of some use, as the 2nd reply.
Lyqyd #5
Posted 16 December 2013 - 04:58 PM
You essentially just copied the documentation for some arbitrary subset of the math library and added a few mostly useless ("this is self explanatory" adds nothing) comments.
distantcam #6
Posted 16 December 2013 - 07:05 PM
Most of your explanations are "self-explanatory" which, if people need help, means that it's not explaining itself properly to them. Saying something is self-explanatory in a tutorial is just lazy.

math.pow [2 inputs needed, e.g, 1,5]:
"Returns 1st input^2nd input."
Self-explanatory. math.pow(1,5) returns the value 1^5, e.g
Take this part for example.
  • There's no example code so it's difficult for a beginner to know how to call this.
  • Saying it returns 1st input ^ 2nd input is not useful if people don't know what ^ does.
  • Again, not self-explanatory.
  • You forgot the result of your example, and 1^5 = 1 is a bad example to use in a power function.