![]() ![]() ![]() Looks okay to me, but the math module is not really "my" part. ![]() I have fixed the build, but I did not intend the sources for building, rather for a code review of the changes. Implementing it using operators sounds hackish to me. You can quickly copy the last calculation result to the clipboard using Ctrl+R. SpeedCrunch is a high-precision scientific calculator featuring a fast, keyboard-driven user interface. The result is shown in the scrollable display. SpeedCrunch is easy to use, just type the expression that you want to calculate and press Enter. Also, doing it that way we can add support for alternative notations ( °'" and hms, although the latter will probably be confused with the alternative hexadecimal notation by users and reserve one letter keywords). SpeedCrunch is a fast, high precision and powerful open source desktop calculator. I think it should be part of the lexer ( Evaluator::scan() and floatio.c:parse()) as it is just another number format like hexadecimal, octal, and binary. I'd prefer to treat it properly as the operator it is. Hmm, the literal parser is already cumbersome enough. Is there a specific reason for using minutes as the base unit instead of seconds? Is the fractional minutes notation ( hh:mm.frac) that common?Īlso, I believe the main purpose of that issue is to support degrees in trigonometric functions, so there should be a conversion to radian somewhere (using units?). 1, 23 and 45.6 in the above example) in any base other than decimal, so introducing a new value for the format (e.g. I assume there is no need to display the resulting 'digits' (i.e. Granted, 0:0:30 still takes longer to type than 30", and arguably more than 30/3600, but the idea sounds reasonable to me.įinally for displaying the output in sexagesimal format we'd need a function like sexa to do the job. Plus, by interpreting a:b simply as an infix notation for a + b/60, it should be super easy to implement. The notation 1:23:45.6 on the other hand seems very appalling. (The problem with the notation is that it contains an implied addition, 1°+23', while generally in mathematical notation only multiplication can be implicit. Finally we'll have to deal with a lot of new tokens:Īnd all possible combinations of those need to yield defined behavior. hours or minutes), and the separators ( °, '.) can either be used as infix or postfix operators ( ° resp. For once, it can be used in a multitude of variations (omitting e.g. I see a lot of potential for trouble using it. While the notation 1☂3'45.6" is certainly common, I'm not sure I'm sold on it for SpeedCrunch. SpeedCrunch is a high-precision, powerful and fast scientific calculator. ![]()
0 Comments
Leave a Reply. |