SciCalc
Colin (478) 2433 posts |
With what? It comes with the OS. |
Chris (121) 472 posts |
I agree :) When I originally updated the app I changed the name, but at some point during its adoption it switched back to SciCalc. I’m guessing this is due to licence issues, or possibly because there’s already a !Calc application reserved. It’s not a big issue, but I do think !Calc or !Calculator is a bit friendlier. |
Martin Avison (27) 1494 posts |
So is !SciCalc that is on the current disc build your version that was tested as !Calc 0.74? |
Chris (121) 472 posts |
The version on the current disc build is 0.77 (I think), which has a number of useful fixes over the one I released as 0.74. 0.78, the most recent version in CVS, addresses a glitch with decimal separators in some non-UK territories. |
Frederick Bambrough (1372) 837 posts |
SciCalc does advertise its features & differenciate from the likes of Apple’s version with only 4 functions. |
Bernard Boase (169) 208 posts |
Using 0.78 to calculate the area of a circle of radius 7, I tried three methods: 1. Enter pi x 7 × 7 = 53.9380401 4. Enter 2 + 6 × 5 = 32 (as in OS 3.6 User Guide p.360, with correct precedence) Why do cases 1. and 2. differ? The precedence for case 3. is treated correctly by ROL’s SciCalc 0.67 (25-Mar-2007). (x^y as the x-to-the-power-of-y button). |
Chris Johnson (125) 825 posts |
In most calculators x or / have higher precedence than + or -, so case 4 is not unexpected. x and power is likely to have similar precedence so the evaluation proceeds left to right. 1 and 2 differ due to rounding in the two methods? |
Bernard Boase (169) 208 posts |
Not according to the precedence information in the 0.78 Help file and in the OS 3.6 User Guide p.365. |
Steve Drain (222) 1620 posts |
SciCalc is written in BASIC VI in which ‘^’ has a lower priority than ‘*’. This may not be at all relevant. Looking only briefly at the two apps, there is one obvious difference in the way they seem to operate in 3. They both calculate a power based on the figure shown in the display, but the ROOL version evalutes previous values before it does so, as if ‘=’ were pressed, whereas the ROL one uses the last entered value. This would account for the anomaly. The difference is also apparent in other functions, such as ‘x root y’ and ‘nPr’ and it would only take a small change in some common code. In 4, ROL and ROOL versions do the same, so other functions must use a different piece of code. If it were worth it I could look for where the difference is. |
Steve Pampling (1551) 8170 posts |
BODMAS is the mnemonic for the precedence. |
Bernard Boase (169) 208 posts |
Thanks Steve D, but it’s Chris (121) who did all the running to provide this (imnproved) ROOL version of SciCalc, and wrote the Help file, so I expect, if he’s willing, he’s the one to check what needs to be altered. How can we ask him? (He’s active in other threads). |
David Pitt (102) 743 posts |
This BASIC gives the right answers, 153.93804, on both BASIC and BASIC64. PRINT PI * 7 * 7 PRINT PI * (7^2) PRINT PI * 7 ^ 2 SciCalc 0.57 gives the right answer to pi * y ^ 2 My maths teacher went by the nickname of Bod, short for Bodmas, perhaps all maths teachers did. |
Chris Evans (457) 1614 posts |
I’m sure I was taught the ‘O’ in BODMAS stood for ‘OF’. A google reveals some other were taught the same, but I must admit I never really understood what ‘of’ meant in maths. Orders or Exponential is easier to understand I think. On further reading I now realise I’d been remembering the meaning wrong. From:http://www.channel4.com/programmes/dispatches/articles/2010/kids-dont-count-bodmas
I’d have said 1! |
Rick Murray (539) 13840 posts |
I’d have said
|
David Pitt (102) 743 posts |
Left to right,
Multiply before subtraction, See BODMAS |
Rick Murray (539) 13840 posts |
For me, maybe others: () – brackets ;-) |
Steve Drain (222) 1620 posts |
I am surprised nobody has picked me up on this. I said:
I meant lower priority number, which is a higher evaluation priority, of course. ;-( As for the naming of those curved things, I had to make an unambiguous choice for the BASIC StrongHelp manual and looked in many places: the OED, HTML tables, other computer languages. So I chose: () parentheses [] brackets {} bracesHowever, the BASIC manual refers to () as brackets, so nothing is certain. |
Steve Pampling (1551) 8170 posts |
Quite likely: (parentheses) a pair of round brackets ( ) used to mark off a parenthetical word or phrase: the stage number is added in parentheses to the name or formula As Rick pointed out there are multiple types of brackets, so the UK version and the similar Canadian and Australian (using E instead of O to denote Exponent) would apply to those wonderfully obscure calculations that don’t use a round bracket. In short “parenthesis” is the enclosing, the style of enclosure varies. |
Rick Murray (539) 13840 posts |
Sounds like an acronym for the words one says when, in the middle of the night, that obscure and difficult bug still won’t reveal itself, only now the latest code change breaks the compile and one is short on caffeine, even shorter of temper and one is seriously considering jacking it all in and moving to a country that has barely reliable electricity never mind 3G, to do something more productive, like raising sheep. Or is that just me? ;-) |
Steve Pampling (1551) 8170 posts |
Just you. I have a friend, worked for Network Rail, and previous incarnations, for years and now rears sheep. |
Bernard Boase (169) 208 posts |
How, pray, does one pass my original observation to him while he’s not reading this thread? Perhaps someone knows who he is! (I don’t). |
nemo (145) 2546 posts |
Rick said: For me, maybe others: I’ll stop you there. They’re parentheses, not brackets. {} – curly brackets / braces Nope. They’re the less than and greater than signs. Now if you’d used 〈 and 〉 (or for Japanese 〈〉) I’d have agreed.
Extra points for spelling it correctly – not the Adobe way! 「」 – corner brackets (East Asian style quotes) Actually that’s correct, but don’t forget the lenticular, double angle and ‘white’ corner brackets too: 【】《》『』 |
nemo (145) 2546 posts |
As for expression evaluation, the last time I wrote an expression evaluator it had over 40 levels of precedence. It’s not straightforward. (Or at least I managed to contrive it so ;-) |
Chris (121) 472 posts |
When I updated SciCalc the intention was just to revamp the user interface and leave the internals alone, so I hoped that the actual operation of the calculator was unchanged. However, I did reorganise a lot of the code in order to get the summary bar working, so it looks like something has inadvertently been altered. I’ll take a look at this – it may take a while to find the time, but I’ll do my best! |
Steve Drain (222) 1620 posts |
I think I found the problem might lie in the use of PROCcalc_sum in PROCcalc_binary. Unfortunately, I found that the !RunImage was in a form without spaces that could not be edited and saved in StrongEd (Zapped maybe?) so I could not go further at that time. Is there an original source here? |