Questions tagged [math]
The math tag has no usage guidance.
80
questions
1
vote
1
answer
30
views
Cartesian application software recommendation in Debian [closed]
Is there a software recommendation for an application for the Cartesian field in Debian?
-1
votes
1
answer
91
views
SpeedCrunch is Providing Slow Math Calculations
I'm having a performance issue with SpeedCrunch 0.12 in Debian 12:
sudo apt install speedcrunch
First of all, I love the UI of SpeedCrunch, as a calculator, but currently (for me) it is giving very ...
0
votes
2
answers
101
views
math problem or variable value problem im not sure
I am having an issue comparing epoch times. I'm really not sure what I'm doing wrong. I have been tasked with identifying and actioning files beyond and during certain date ranges.
In this case, it's ...
0
votes
0
answers
51
views
After cpu time hits 8128 seconds my calculations stops
I'm new to Linux and for my bachelor thesis I'm using it in order to calculate properties of materials in physics, therefore heavy calculations are involved. I've noticed that whenever Cpu time hits ...
0
votes
3
answers
263
views
arbitrary base conversion from base 10 using only builtins in bash
I'm trying to sort out a bash command to convert a number from base 10 to an arbitrary base, using a specified set of characters (for example, to base 26 using letters a-z, although that's not ...
3
votes
4
answers
594
views
awk or perl to eval mathematical expressions in each line
I want a script to make awk to become an interactive mathematical calculator, to eval mathematical expressions given in each line.
I.e., instead of constructing awk commands to calculate expressions ...
2
votes
1
answer
106
views
Galculator weird behavior
Why does galculator miscalculate 4000225165312/512 and gets 781293977.6?
Note This is intended as a canonical question cautioning against the unreflected use of galculator 1.2.4.
Please do not use it....
2
votes
3
answers
134
views
Replacing math equations by result
What is the best way to replace, in a file, equations found using some predefined regex with the result.
Let's say each equation formula is compatible with bc -l (basic calculator with float numbers ...
9
votes
3
answers
4k
views
Linux bc defines PI as 99
I'm using bc in Ubuntu Linux. It has a pre-defined constant PI that's set to 99.
Why does bc define PI to be 99 instead of 3.14159...?
-1
votes
1
answer
75
views
average of nth line from mutiple files into one average master file
I have 3 files which contain 8 lines of numerical values and text. I'm trying to take the average of each rows across all three files and print a new file with those averages.
The three example files ...
3
votes
2
answers
13k
views
How do you type a number with a bar symbol over it?
100 divided by 3 equals 33.3 bar. How can I put a bar symbol over the three like this:
You'd think there would be 9 Unicode characters dedicated to this, but I couldn't find them.
10
votes
1
answer
901
views
Why 'let' exits with code 1 when calculation result equals to 0?
I came across this question whose author had dealt with problem caused by:
let x=1-1 exits with code 1.
According to bash manual:
If the last expression evaluates to 0, let returns 1;
otherwise 0 is ...
0
votes
1
answer
248
views
How do I convert these commands to work in a conky file?
What I am doing is working on a conky widget, and I am trying to get a voltage reading from the sensor chip on my motherboard to display it. I am getting a voltage reading and displaying it in the ...
0
votes
0
answers
188
views
Why integer division is faster than bitwise shift in shell?
I'm comparing performance of bash and dash (default sh in Xubuntu 18.04).
I expect sh to be faster than bash
I expect bitwise shift to be faster than division operator.
However, I'm getting ...
9
votes
1
answer
731
views
Who decided the bc math library will define sine cosine and arctangent?
If you load the bc math library you get the trig functions s() and c() and a() which are sine, cosine, and arctangent respectively. Why these three functions?
I know why it's those three from the ...