Skip to content

Instantly share code, notes, and snippets.

@rssh
Created October 10, 2013 08:44
Show Gist options
  • Save rssh/6915114 to your computer and use it in GitHub Desktop.
Save rssh/6915114 to your computer and use it in GitHub Desktop.
example of rewriting rules
sqrtd(s,x,0) -> x
sqrtd(s,x,d) -> sqrt(s, x+d, (s/x - x)/2 )
sqrt(s) -> sqrtd(s,1,(s-1)/2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment