Complex Lock mode for WP-34s
|
04-12-2015, 09:29 PM
Post: #32
|
|||
|
|||
RE: Complex Lock mode for WP-34s
(04-12-2015 02:59 PM)Nigel (UK) Wrote: Entering a number in polar display mode was slow on the calculator (about 1 second). The delay seems to be caused by the op_p2r function in decn.c; I don't really understand why this function is slower when called by my code than when it is called by the P->R keyboard function, but there it is. I've rewritten the op_p2r function so that it only calls the sincosTaylor function once (roughly doubling the speed) but I feel I'm missing the point of something. Different angle units I suspect. sincosTaylor works in radians only. decNumberSin and decNumberCos honour the current unit settings. In complex mode, they are all the same since radians is always in force. Out of complex mode, you'll have possibly broken things. I coded p2r this way to save space The performance issue is probably due to a low clock rate being used during keyboard entry. Try calling update_speed(0) first, if you are not in a program. I don't think you need to use full speed, the trigonometric functions evaluate pretty quickly and you're working at user speed here. Pauli |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)