Skip to content

Commit 7d0126c

Browse files
authored
Fix typos in IFS/julia and IFS/c (#816)
* Fix typo in IFS.jl implementation * Fix typo in output file
1 parent 0c005d3 commit 7d0126c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contents/IFS/code/c/IFS.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main() {
3636

3737
chaos_game(shape_points, 3, out_points, 1000);
3838

39-
FILE *fp = fopen("out.dat", "w+");
39+
FILE *fp = fopen("sierpinksi.dat", "w+");
4040

4141
for (int i = 0; i < 1000; ++i) {
4242
fprintf(fp, "%f\t%f\n", out_points[i].x, out_points[i].y);

contents/IFS/code/julia/IFS.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ shape_points = [[0.0, 0.0],
2626
[0.5, sqrt(0.75)],
2727
[1.0, 0.0]]
2828
output_points = chaos_game(10000, shape_points)
29-
writedlm("out.dat", output_points)
29+
writedlm("sierpinski.dat", output_points)

0 commit comments

Comments
 (0)