Programming a calculator (Python) – Problem?
Hello, I'm currently learning Python and wanted to program a calculator.
However, when I tested it, I sometimes got very accurate results.
Why is that?
Hello, I'm currently learning Python and wanted to program a calculator.
However, when I tested it, I sometimes got very accurate results.
Why is that?
What is the error here I'm looking for print() calls that each print specific parts of the input sequence. The print() calls can be written one below the other (note: the order is important). Since indexing and slicing are possible for both strings and lists, the same Python code can cover all tests. The expenditure…
I completely reprogrammed my website because the old one wasn't very well SEO-optimized, and the crawling was poorly done. So, how can I remove the indexing from the entire website and then re-upload it or have it crawled again? Also, would you be helpful if you could give me some more tips for perfect SEO?…
I would like to "learn" hacking (unfortunately I can't program yet). So: Which programming language(s) do you need? How do I best learn it? What books or tutorials do I need? How does it work in general terms?
If you want to represent decimal numbers with decimal places in binary, you often use the normalized floating-point representation (IEEE-754 standard) First, the decimal places and then the decimal places are converted to binary numbers. Only then is normalization performed. My question is why we normalize the binary number first. Wouldn't it be possible to…
Hello, I'm in my first semester of studying computer science at a university, but I want to switch to business informatics at a university near me as soon as possible. I applied to the business informatics school and was rejected, so I panicked and applied to several different universities and am now studying computer science…
Which part of the law of thermodynamics is zero for a… a) isochoric change of state b) isothermal change of state c) isobaric change of state? I already have: a) ΔW = 0 , since no volume change b) ΔU = 0 c)
This is the format in which floating point numbers are usually stored.
This allows a large value range, but only with limited accuracy.
See also:
https://de.wikipedia.org/wiki/IEEE_754
To illustrate the distribution (this is logarithmic):
It is even more important that the accuracy is not homogeneously distributed over the value range.
Jein. This is not important for understanding now, but it is already, yes.
Then you may want to explain what operations (addition/subtraction) tend to reduce the accuracy.
I’ll add a graphic.
Look at you:
https://docs.python.org/3/library/decimal.html
on.
There are good reasons why you don’t use IEEE flats for a calculator in case of doubt.