change to __set_attr__

This commit is contained in:
2025-09-19 00:31:04 +01:00
parent 50ff9fbefc
commit 70ba81bebc
6 changed files with 46 additions and 8 deletions

10
tests/intergral.ar Normal file
View File

@@ -0,0 +1,10 @@
let f(x) = sin(x)
let intergral_aprox(n, a, b) = do
let h = (b-a)/n
let output = 0
for (i from 1 to n+1) do
output += h*f(a+i*h)
return output
term.log(intergral_aprox(1000, 0,1))