1 - There's no such thing as Math.arctan()
2 - There's no such thing as enemy
The JavaScript function for this is Math.atan():
JavaScript Math atan() Method
The Math.atan() method returns the arctangent of a number as a value between -PI/2 and PI/2 radians.
I'm not sure why you correctly use b in one place but try to use enemy in another - the damage formula only has b.
Why?
Yes.
Googling it worked fine for me.
They don't get specifically into order of operations (because it is standard), but damage formula tutorial posts do have information on syntax, operators, and formulae.
Damage Formulas 101
Please note: A discussion has already been started about different things you can do with these formulas so please direct those comments and question to the appropriate thread. https://forums.rpgmakerweb.com/index.php?threads/rmmv-damage-formula-ideas-and-help.47099/ A link to the list of...
forums.rpgmakerweb.com
As would any basic JavaScript tutorials, many of which come right up by Googling those words.
As does, for that matter, MV's instructions, at least for the operators.