ArcTan(x,y)?
|
04-05-2017, 09:17 PM
(This post was last modified: 04-05-2017 09:29 PM by StephenG1CMZ.)
Post: #13
|
|||
|
|||
RE: ArcTan(x,y)?
(04-05-2017 08:10 PM)KeithB Wrote: Harbison and Steele. Judging by the reviews, H&S looks like a useful update of K&R. Most of my programming has been functional, with the emphasis on returning real-world values. I'd be looking for: (A) Values not significantly different from atan2(0 .000001,0.00001) etc., assuming the 0 is a rounding error - no discontinuous jumps. (B) Values that are portable and compatible. Every atan2 that I have seen since the 1980's has used 0, so I would need some convincing that a different incompatible value were useful. (C) For real-world use: In the case of Atan2, I don't see 0,0 as being a real domain error, assuming the 0,0 was a rounding error from valid inputs like 0.001,0.001...what the pilot wants to see is an angle... I'd keep domain error for truly exceptional error conditions, like if the input (0,0) were instead (NaN,NaN) because the compass had dropped off, and you really cannot return an angle. (D) But in maths class, I would like to see it highlighted as indeterminate. Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
ArcTan(x,y)? - toml_12953 - 04-05-2017, 12:07 PM
RE: ArcTan(x,y)? - Joe Horn - 04-05-2017, 12:20 PM
RE: ArcTan(x,y)? - toml_12953 - 04-05-2017, 12:26 PM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-05-2017, 03:00 PM
RE: ArcTan(x,y)? - toml_12953 - 04-05-2017, 03:39 PM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-05-2017, 06:22 PM
RE: ArcTan(x,y)? - KeithB - 04-05-2017, 07:28 PM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-05-2017, 07:47 PM
RE: ArcTan(x,y)? - KeithB - 04-05-2017, 10:47 PM
RE: ArcTan(x,y)? - DrD - 04-06-2017, 10:27 AM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-06-2017, 03:22 PM
RE: ArcTan(x,y)? - KeithB - 04-05-2017, 07:33 PM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-05-2017, 07:53 PM
RE: ArcTan(x,y)? - KeithB - 04-05-2017, 08:10 PM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-05-2017 09:17 PM
RE: ArcTan(x,y)? - jte - 04-05-2017, 09:08 PM
RE: ArcTan(x,y)? - KeithB - 04-05-2017, 09:42 PM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-05-2017, 10:38 PM
RE: ArcTan(x,y)? - KeithB - 04-05-2017, 10:41 PM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-06-2017, 03:30 PM
RE: ArcTan(x,y)? - Han - 04-06-2017, 03:53 PM
RE: ArcTan(x,y)? - JMB - 04-09-2017, 09:50 AM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-09-2017, 03:47 PM
RE: ArcTan(x,y)? - JMB - 04-09-2017, 08:00 PM
RE: ArcTan(x,y)? - KeithB - 04-06-2017, 02:38 PM
RE: ArcTan(x,y)? - StephenG1CMZ - 04-09-2017, 09:54 PM
|
User(s) browsing this thread: 3 Guest(s)