Questions tagged [calculator]

Questions about calculators, or calculator programming. For TI-BASIC calculator programming, use the ti-basic tag.

This tag is for questions about calculators, or calculator programming. For TI-BASIC calculator programming, use the tag.

4616 questions
112
votes
11 answers

How to calculate a Mod b in Casio fx-991ES calculator

Does anyone know how to calculate a Mod b in Casio fx-991ES Calculator. Thanks
user1035927
  • 1,653
  • 5
  • 17
  • 18
82
votes
6 answers

Accurate calculation of CPU usage given in percentage in Linux?

It's a question which has been asked many times, however there is no well supported answer I could find. Many people suggest the use of top command, but if you run top once (because you have a script for example collecting Cpu usage every 1 second)…
Vangelis Tasoulas
  • 3,109
  • 3
  • 23
  • 36
62
votes
10 answers

Smart design of a math parser?

What is the smartest way to design a math parser? What I mean is a function that takes a math string (like: "2 + 3 / 2 + (2 * 5)") and returns the calculated value? I did write one in VB6 ages ago but it ended up being way to bloated and not very…
Akbun Lrasin
57
votes
18 answers

Is there a calculator with LaTeX-syntax?

When I write math in LaTeX I often need to perform simple arithmetic on numbers in my LaTeX source, like 515.1544 + 454 = ???. I usually copy-paste the LaTeX code into Google to get the result, but I still have to manually change the syntax,…
Jørgen Fogh
  • 7,516
  • 2
  • 36
  • 46
40
votes
5 answers

How can I solve equations in Python?

Let's say I have an equation: 2x + 6 = 12 With algebra we can see that x = 3. How can I make a program in Python that can solve for x? I'm new to programming, and I looked at eval() and exec() but I can't figure out how to make them do what I want.…
user1221937
  • 513
  • 2
  • 6
  • 7
26
votes
7 answers

C# Math calculator

Possible Duplicates: Is there a string math evaluator in .NET? Converting string expression to Integer Value using C# Best and shortest way to evaluate mathematical expressions c# evaluating string “3*(4+2)” yield int 18 Is there a way to…
gapo
  • 505
  • 1
  • 7
  • 19
24
votes
2 answers

How does a simple calculator with parentheses work?

I want to learn how calculators work. For example, say we have inputs in infix notation like this: 1 + 2 x 10 - 2 The parser would have to respect common rules in math. In the above example this means: 1 + (2 x 10) - 2 = 19 (rather than 3 x 10 - 2 =…
Proud Member
  • 40,078
  • 47
  • 146
  • 231
24
votes
9 answers

how to calculate distance while walking in android?

I am developing a demo for my app, in which there are two buttons named as "START" and "STOP". When user taps on "START" he will start walking. What I want to do is make it so that when users tap "STOP" then the demo will calculate his distance…
rahul
  • 2,613
  • 8
  • 32
  • 55
23
votes
1 answer

Logarithm Calculation with Windows 7 Calculator

I would like to use the Windows Calculator in Scientific Mode in order solve a very basic Logarithm equation but, unfortunately, I couldn't do that. Here is the problem: log_5 125=? Thank you very much for your help... Well, I know it equals to…
Kerim Atasoy
  • 331
  • 1
  • 2
  • 5
23
votes
9 answers

How get total sum from input box values using Javascript?

I am not perfect in Javascript.. I want to show total sum of values entered in qty input boxes in next input box named total without refreshing page. Can anyone will help me to figure it out..? Here is javascript