From 95d955507c58e1f0f0f80b30f9c670920c5e8deb Mon Sep 17 00:00:00 2001 From: stormofice <58337328+stormofice@users.noreply.github.com> Date: Fri, 14 May 2021 01:32:45 +0200 Subject: [PATCH 1/2] Fix typo in IFS.jl implementation --- contents/IFS/code/julia/IFS.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contents/IFS/code/julia/IFS.jl b/contents/IFS/code/julia/IFS.jl index 4b0fea801..338a8016f 100644 --- a/contents/IFS/code/julia/IFS.jl +++ b/contents/IFS/code/julia/IFS.jl @@ -26,4 +26,4 @@ shape_points = [[0.0, 0.0], [0.5, sqrt(0.75)], [1.0, 0.0]] output_points = chaos_game(10000, shape_points) -writedlm("out.dat", output_points) +writedlm("sierpinski.dat", output_points) From 8002512086333ac38e08b234a88aa64a974d55fe Mon Sep 17 00:00:00 2001 From: stormofice <58337328+stormofice@users.noreply.github.com> Date: Fri, 14 May 2021 01:48:49 +0200 Subject: [PATCH 2/2] Fix typo in output file --- contents/IFS/code/c/IFS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contents/IFS/code/c/IFS.c b/contents/IFS/code/c/IFS.c index 7d79d9043..2ba8cbdd2 100644 --- a/contents/IFS/code/c/IFS.c +++ b/contents/IFS/code/c/IFS.c @@ -36,7 +36,7 @@ int main() { chaos_game(shape_points, 3, out_points, 1000); - FILE *fp = fopen("out.dat", "w+"); + FILE *fp = fopen("sierpinksi.dat", "w+"); for (int i = 0; i < 1000; ++i) { fprintf(fp, "%f\t%f\n", out_points[i].x, out_points[i].y);