Skip to content

Instantly share code, notes, and snippets.

@olekravchenko
Last active May 6, 2016 06:00
Show Gist options
  • Save olekravchenko/d5875756f7901418336705c1a0e5b06c to your computer and use it in GitHub Desktop.
Save olekravchenko/d5875756f7901418336705c1a0e5b06c to your computer and use it in GitHub Desktop.
BizzareStatement
(*Fabius Function*)
Fb[x_] := up[x - 1, 5, 30]
(*Statement Function*)
GFb[a1_, a2_, b_] := a2 - a1 + b (Fb[a1/b] - Fb[a2/b]) // Evaluate
(*Samples*)
GFb[2, 13, 30];
GFb[2, 7, 18];
(*Search*)
tbl = Table[{b, GFb[2, 9, b]}, {b, 15, 25, 1}];
tbl // Grid
(*
Out: {{22, 7.9331*10^-7}}
So, Fb equals zero in b = 22.
*)
(*Generalization*)
Manipulate[
Column@{a1*a2 + 4, GFb[3, 3, 2*4 + 4]},
{a1, 1, 40, 1},
{a2, 1, 40, 1}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment