Pathological floating point problems: Difference between revisions

m
No edit summary
m (→‎{{header|Wren}}: Minor tidy)
(2 intermediate revisions by one other user not shown)
Line 1,980:
=={{header|Fōrmulæ}}==
 
{{FormulaeEntry|page=https://formulae.org/?script=examples/Pathological_floating_point_problems}}
Fōrmulæ programs are not textual, visualization/edition of programs is done showing/manipulating structures but not text. Moreover, there can be multiple visual representations of the same program. Even though it is possible to have textual representation —i.e. XML, JSON— they are intended for storage and transfer purposes more than visualization and edition.
 
'''Solution'''
Programs in Fōrmulæ are created/edited online in its [https://formulae.org website], However they run on execution servers. By default remote servers are used, but they are limited in memory and processing power, since they are intended for demonstration and casual use. A local server can be downloaded and installed, it has no limitations (it runs in your own computer). Because of that, example programs can be fully visualized and edited, but some of them will not run if they require a moderate or heavy computation/memory resources, and no local server is being used.
 
'''Case 1. Introduction example'''
In '''[https://formulae.org/?example=Pathological_floating_point_problems this]''' page you can see the program(s) related to this task and their results.
 
[[File:Fōrmulæ - Pathological floating point problems 01.png]]
 
[[File:Fōrmulæ - Pathological floating point problems 02.png]]
 
'''Case 2. A sequence that seems to converge to a wrong limit'''
 
[[File:Fōrmulæ - Pathological floating point problems 03.png]]
 
[[File:Fōrmulæ - Pathological floating point problems 04.png]]
 
'''Case 3. The Chaotic Bank Society'''
 
[[File:Fōrmulæ - Pathological floating point problems 05.png]]
 
[[File:Fōrmulæ - Pathological floating point problems 06.png]]
 
'''Case 4. Siegfried Rump's example'''
 
[[File:Fōrmulæ - Pathological floating point problems 07.png]]
 
[[File:Fōrmulæ - Pathological floating point problems 08.png]]
 
=={{header|Go}}==
Line 4,496 ⟶ 4,518:
{{libheader|Wren-big}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./big" for BigRat
import "./fmt" for Fmt
 
var LIMIT = 100
9,482

edits