FractalPark
Root finding

newtonSinh

6d27b5fd-462b-5561-bac2-7c5f915e3cb5

Teaching overview

In FRM-like/1, newtonSinh initializes z from pixel. Each loop computes denom = cosh(z), keeps z when its squared size is below 1e-10, and otherwise assigns z - sinh(z)/denom. The pinned julia profile uses 96 iterations.

Source walkthrough

  1. frm-v1:7ef2bf1f2dd573053bbe1e8af171472dff08ed6346b2e760ab2780c9244d1e85:init/0

    Initialization: init/0 sets z from pixel.

  2. frm-v1:7ef2bf1f2dd573053bbe1e8af171472dff08ed6346b2e760ab2780c9244d1e85:loop/0

    Iteration: loop/0 defines denom = cosh(z).

  3. frm-v1:7ef2bf1f2dd573053bbe1e8af171472dff08ed6346b2e760ab2780c9244d1e85:loop/1

    Branch: loop/1 keeps z when denom has squared size below 1e-10; otherwise it assigns z - sinh(z)/denom.

  4. frm-v1:7ef2bf1f2dd573053bbe1e8af171472dff08ed6346b2e760ab2780c9244d1e85:bailout

    Termination: bailout tests |z - zPrev| >= 0.000001.

Syntax features

sequence

The cited annotations connect z = pixel, denom = cosh(z), and the change-based bailout.

branch

The cited branch keeps z for a squared denom size below 1e-10; otherwise it applies z - sinh(z)/denom.

Parameter experiment

Steps

  1. Use the pinned julia profile with all controls fixed. Run 48 iterations and then 96 iterations, and record whether the cosh(z) denominator guard or the sinh(z) update changes the observed iteration counts.

What to observe

The larger cap may expose additional guarded or unguarded sinh/cosh updates; record whether the iteration counts differ.

Exercise

State the two outcomes of the cosh(z) denominator-size guard.

Completion check

Your response names all 4 annotations and gives both keeping z and z - sinh(z)/denom.

Sources and rights

This teaching unit is grounded in the pinned runtime source revision.

rightsStatus is project-owned; implementationBasis is project-owned; publicationDecision is publish; decisionReason is publish-project-owned-native-recipe. This does not make a broader claim about any third-party original.

Formula Record

newtonSinh

This canonical FractalPark implementation is published and runnable.

Deterministic preview of newtonSinh

Canonical source

Language
frm-like/1
Standard library
1
Profile mode
parameter-plane
Profile center
0, 0
Profile zoom
0.35
Profile iterations
96
Profile evidence
family

Parameters

No declared parameters

Canonical source

This verified canonical revision is read-only. Remix creates a separate editable fork.

Loading canonical source…

Source and implementation

Formula ID
6d27b5fd-462b-5561-bac2-7c5f915e3cb5
Canonical name
newtonSinh
Original name
newtonSinh
Historical source
FractalPark
Current implementation
Project-owned

This is a FractalPark project-owned implementation. The linked file is the pinned canonical Definition.

Rights or attribution concern?

Send the Formula ID and supporting evidence. The maintainer can hold or withdraw the implementation while the claim is reviewed. contact@fractalpark.com