Add use-cases

Co-authored-by: Ezequiel Bellver <ebellver@itba.edu.ar>
Co-authored-by: Juan Barmasch <jbarmasch@itba.edu.ar>
This commit is contained in:
Santiago Lo Coco 2022-04-14 15:18:38 -03:00
parent 020c18ab62
commit ead30415e4
15 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,11 @@
function f = x^2;
function g = { x - 2: x < 3,
x^3: x >= 5
};
fun h = x/(x-2);
evaluate f in 3; // 9
g(5); // 125
evaluate g in 4; // Error
g(2); // 0
h(2); // Error

View File

@ -0,0 +1,2 @@
fun f = 1/x;
fun g = f(3) + f'(3)*(x-3) + f''(3)/2 * (x-3)^2 + f'''(3) / 6 * (x-3)^3 + f''''(3) / 24 * (x-3)^4;

View File

View File

View File

@ -0,0 +1,3 @@
if ("Hola" + g == 2) {
print("Funciona");
}

View File

View File

@ -0,0 +1,6 @@
if (f(0) == 1) {
if (g(2) == 4) {
print("Hola");
}
}
}

View File

@ -0,0 +1,3 @@
eval f in 5;
int f 3 ~ 5;

View File

View File

View File

View File

View File

View File

View File