Last active
August 29, 2015 14:15
-
-
Save rcythr/fa6b2abcfb173db1b5b3 to your computer and use it in GitHub Desktop.
A simple concept of a language to implement.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "other_functions.texc" | |
fun foo(a, b, \theta in reals, N in integers) -> reals = | |
\sum_{i=0}^{N} ( \sin(\theta) + a^i + b^i ) | |
fun foorec(a, b, \theta in reals, N in integers) -> reals = | |
if N < 0 then | |
return 0 | |
else | |
\sin(\theta) + a^N + b^N + foorec(a, b, \theta, N-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment