[WP34S] DEG and RAD  diffs

06062014, 05:42 PM
Post: #25




RE: [WP34S] DEG and RAD  diffs
(06062014 04:24 PM)Claudio L. Wrote: Now what if you are trying to calculate sin(3e10)? Compare it to all the angles in the list until one is smaller than 3e10. That will be \(\tan^{1}(10^{10})\) which is a little bit smaller than 1e10. Thus we can subtract \(3\cdot\tan^{1}(10^{10})\). And then we can go on with the remainder ... As you may notice there will be no cancellation due to adding or subtracting big values. Quote:However, you can avoid that by starting the loop with 1e9 radians In fact this is very similar to what you do. Quote:But starting the loop with smaller angles means the constants K=Product(cos(Alphai)) changes for each case, hence you need a whole lot of constants to handle this case properly. You can do without using the constant K. Calculate: \[\tan(\theta)=\frac{K\cdot\sin(\theta)}{K\cdot\cos(\theta)}\] From this you can calculate: \[\sin(\theta)=\frac{\tan(\theta)}{\sqrt{1+\tan(\theta)^2}}\] How normal do you consider the implementation used in most HPcalculators? Cheers Thomas 

« Next Oldest  Next Newest »

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