summaryrefslogtreecommitdiffstats
path: root/šola/ana2/fja.scad
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--šola/ana2/fja.scad13
1 files changed, 13 insertions, 0 deletions
diff --git a/šola/ana2/fja.scad b/šola/ana2/fja.scad
new file mode 100644
index 0000000..4d18a17
--- /dev/null
+++ b/šola/ana2/fja.scad
@@ -0,0 +1,13 @@
+echo(version=version());
+function sinh(x) = (exp(1)-exp(-x))/2;
+function f(x, y, z) = sinh(z)*sinh(y)-sin(x);
+epsilon = 0.01;
+rob = 1;
+korak = 0.1;
+particle = 0.1;
+for (x = [-rob : korak : rob])
+ for (y = [-rob : korak : rob])
+ for (z = [-rob : korak : rob])
+ if (f(x, y, z) < epsilon)
+ translate([x, y, z])
+ cube(particle); \ No newline at end of file