Why does Mathematica results differ from C++ results within machine precision?
Bug with Block & Lookup: Scope Variable Leak
Why is "k" in the output of Sum[Log[k]/k^k, k,1,Infinity ]?
Simulating molecular dynamics efficiently
Why is listable not an attribute of the Set function?
How to improve quality of this Plot3D
How can I tell Mathematica to interpret 0xffff as a hexadecimal number?
Why does Mathematica results differ from C++ results within machine precision?
I am trying to wrap my head around floating-point precision. Performing the following numeric operation: 275./6.*1.03692775514337 in Mathematica and C++ and taking the difference of the two results ...
- asked by Knowledge (22 votes), answered by ilian (44 votes)
Bug with Block & Lookup: Scope Variable Leak https://mathematica.stackexchange.com/questions/161616/bug-with-block-lookup-scope-variable-leak
After debugging a large chunk of code, I could identify this MWE. ClearAll@test test[var_String]:= Block[{association}, association = <|"x"-> <|"key01"-> "ok"|>|>[var]; ...
- asked by Murta (22 votes), answered by Albert Retey (15 votes)
Why is "k" in the output of Sum[Log[k]/k^k, k,1,Infinity ]? NSum[Log[k]/k^k, {k,1,Infinity}, WorkingPrecision->50] (* 0.219947267975228664843531307905860703797097130 *) But Sum[Log[k]/k^k, {k,1,Infinity}] (* -(PolyLog^(1,0))[0,1/k] *) What does "k" in ...
- asked by Vaclav Kotesovec 13votes Simulating molecular dynamics efficiently https://mathematica.stackexchange.com/questions/161471/simulating-molecular-dynamics-efficiently
The following website offers a very nice molecular dynamics simulation:http://physics.weber.edu/schroeder/md/. It is pretty neat and quite a few physical phenomena can be described from that small ...
- asked by anderstood (13 votes), answered by Henrik Schumacher (16 votes)
Why is listable not an attribute of the Set function? The following is a list of attributes for the Set function: Attributes[Set] {HoldFirst, Protected, SequenceHold} Why is Listable not included?
- asked by S.V (13 votes), answered by Kuba (16 votes)
How to improve quality of this Plot3D https://mathematica.stackexchange.com/questions/161771/how-to-improve-quality-of-this-plot3d
I tried driving up PlotPoints and MaxRecursion but the intersections look weird, is there some other trick I can do? plot = Plot3D @@ {Abs[Sqrt[x] + Sqrt[y]] /. {x -> Sin[2 x], y -> Cos[2 ...
- asked by Yaroslav Bulatov (10 votes), answered by Nasser (11 votes)
How can I tell Mathematica to interpret 0xffff as a hexadecimal number?
I am stuck. I would like Mathematica simply accept 0x as a prefix Operator for Hexadecimal Numbers. I know that 0x is interpreted as 0*x, so maybe this is just not possible. I am a programmer and am ...
- asked by Mark (9 votes), answered by Carl Woll (16 votes)