0.002525252525252525396** -1
0.00252525252525252551/396
On Windows Platform:
Python 3.11.0rc1 (main, Aug 8 2022, 11:30:54)
0.002525252525252525396** -1
0.00252525252525252551/396
On Friday, 14 October 2022 at 16:43:05 UTC+2, Mostowski Collapse wrote:
On Windows Platform:
Python 3.11.0rc1 (main, Aug 8 2022, 11:30:54)Numerics: another thing you have never known shit
0.002525252525252525396** -1
0.00252525252525252551/396
about and still manage to write bullshit across all
groups ad nauseam.
You really don't understand the damage you are doing,
here as elsewhere, do you, you piece of retarded shit,
or you too just working for the nazi monster??
*Troll-spammer-crank alert*
Julio
2.3676492.718281828459045**0.8618974796837966
On Windows Platform:
Python 3.11.0rc1 (main, Aug 8 2022, 11:30:54)
0.002525252525252525396** -1
0.00252525252525252551/396
I also get:
Python 3.11.0rc1 (main, Aug 8 2022, 11:30:54)
2.3676492.718281828459045**0.8618974796837966
Nice try, but isn't this one the more correct?
?- X is 2.718281828459045**0.8618974796837966.
X = 2.3676489999999997.
Mostowski Collapse <burs...@gmail.com> writes:
I also get:
Python 3.11.0rc1 (main, Aug 8 2022, 11:30:54)
2.3676492.718281828459045**0.8618974796837966
Nice try, but isn't this one the more correct?
?- X is 2.718281828459045**0.8618974796837966.
X = 2.3676489999999997.
That's probably the accuracy of the underlying C implementation of the exp function.
In [25]: exp(0.8618974796837966)
Out[25]: 2.367649
But even your answer can be improved:
Maxima:
(%i1) fpprec:30$
(%i2) bfloat(2.718281828459045b0)^bfloat(.8618974796837966b0);
(%o2) 2.36764899999999983187397393143b0
but:
(%i7) bfloat(%e)^bfloat(.8618974796837966b0);
(%o7) 2.3676490000000000085638369695b0
surprisingly closer to Python's answer.
but 2.718281828459045 isn't e. Close but no cigar.
(%i10) bfloat(2.718281828459045b0) - bfloat(%e);
(%o10) - 2.35360287471352802147785151603b-16
Fricas:
(1) -> 2.718281828459045^0.8618974796837966
(1) 2.3676489999_999998319
(2) -> exp(0.8618974796837966)
(2) 2.3676490000_000000086
--
Pieter van Oostrum <pie...@vanoostrum.org>
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
I also get:
Python 3.11.0rc1 (main, Aug 8 2022, 11:30:54)
2.3676492.718281828459045**0.8618974796837966
Nice try, but isn't this one the more correct?
?- X is 2.718281828459045**0.8618974796837966.
X = 2.3676489999999997.
Floating point will always be a can of worms, as long as people expect it to represent real numbers with more precision that float has. Usually this is not an issue, but sometimes it is. And, although this example does not exhibit subtractivecancellation, that is the surest way to have less precision that the two values you subtracted. And if you try to add up lots of values, if your sum grows large enough, tiny values will not change it anymore, even if there are many of them - there are
2.3676492.718281828459045**0.8618974796837966
Is this the same Schachner, Joseph that posted:
Subject: ANN: Dogelog Runtime, Prolog to the Moon (2021)
Message-ID: <BN8PR14MB28516E1052...@BN8PR14MB2851.namprd14.prod.outlook.com>
Opinion: Anyone who is counting on Python for truly fast
compute speed is probably using Python for the wrong purpose.
Here, we use Python to control Test Equipment, to set up the
equipment and ask for a measurement, get it, and proceed to
the next measurement; and at the end produce a nice formatted
report. If we wrote the test script in C or Rust or whatever it could
not run substantially faster because it is communicating with
the test equipment, setting it up and waiting for responses, and
that is where the vast majority of the time goes. Especially
if the measurement result requires averaging it can take a while.
In my opinion this is an ideal use for Python, not just because
the speed of Python is not important, but also because we can
easily find people who know Python, who like coding in Python,
and will join the company to program in Python ... and stay with us.
--- Joseph S.
Congratulations you already communicated in 2021 that speed is not necessecary. So whats your opinion now in 2022, precision is not necessary? Well, well, you are surely an expert in lowering the bar.
LMAO!
Schachner, Joseph (US) schrieb am Montag, 24. Oktober 2022 um 16:54:04 UTC+2:
Floating point will always be a can of worms, as long aspeople expect it to represent real numbers with more precision
that float has. Usually this is not an issue, but sometimes it is.
And, although this example does not exhibit subtractive cancellation,
that is the surest way to have less precision that the two values
you subtracted. And if you try to add up lots of values, if your sum
grows large enough, tiny values will not change it anymore, even
if there are many of them - there are simple algorithms to avoid
this effect. But all of this is because float has limited precision.
--- Joseph S.
Subject: ANN: Dogelog Runtime, Prolog to the Moon (2021)
Message-ID: <BN8PR14MB28516E1052F60F2A924B55B7F5DA9@BN8PR14MB2851.namprd14.prod.outlook.com>
Opinion: Anyone who is counting on Python for truly fast
compute speed is probably using Python for the wrong purpose.
Here, we use Python to control Test Equipment, to set up the
equipment and ask for a measurement, get it, and proceed to
the next measurement; and at the end produce a nice formatted
report. If we wrote the test script in C or Rust or whatever it could
not run substantially faster because it is communicating with
the test equipment, setting it up and waiting for responses, and
that is where the vast majority of the time goes. Especially
if the measurement result requires averaging it can take a while.
In my opinion this is an ideal use for Python, not just because
the speed of Python is not important, but also because we can
easily find people who know Python, who like coding in Python,
and will join the company to program in Python ... and stay with us.
Floating point will always be a can of worms, as long aspeople expect it to represent real numbers with more precision
--- Joseph S.
3.1415926535897927import math
28*math.atan(1/9)+4*math.atan(4765/441284)
3.14159265358979320*math.atan(1/7)+8*math.atan(3/79)
48*math.atan(1/16)+4*math.atan(14818029403841/407217467325761) 3.1415926535897936
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 31:35:44 |
Calls: | 10,391 |
Calls today: | 2 |
Files: | 14,064 |
Messages: | 6,417,109 |