diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/fifty.bqn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/fifty.bqn b/examples/fifty.bqn index fb336dfe..77f83a33 100644 --- a/examples/fifty.bqn +++ b/examples/fifty.bqn @@ -59,11 +59,11 @@ PascalsTriangle ← {>𝕩↑¨0(∾+∾˜)⍟(↕𝕩)⥊1} ! 1‿1‿2‿3‿5‿8‿13‿21‿34‿55 ≡ { 𝕩 ↑ +´¨ (+⌜˜↕𝕩) ⊔○⥊ PascalsTriangle 𝕩 } 10 # 9 -GoldenRatio ← +⟜÷´¨∘(1↓↑) ⥊⟜1 +GoldenRatio ← ÷⊸+`⥊⟜1 ! 1e¯5 ∧´∘> | (GoldenRatio 16) - 1‿2‿1.5‿1.66667‿1.6‿1.625‿1.61538‿1.61905‿1.61765‿1.61818‿1.61798‿1.61806‿1.61803‿1.61804‿1.61803‿1.61803 # 10 -NewtonsMethod ← (2 ÷˜ ⊢ + ÷)´¨∘(1↓↑) ⥊ +NewtonsMethod ← (2 ÷˜ ⊣ + ÷˜)` ⥊ ! 1e¯5 ∧´∘> | (7 NewtonsMethod 2) - 2‿1.5‿1.41667‿1.41422‿1.41421‿1.41421‿1.41421 # 11 |
