Skip to content

Commit 07c79ac

Browse files
committed
updates the automatic series approximation calculator
1 parent 0171602 commit 07c79ac

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

output.png

-420 KB
Loading

output2.png

8.98 MB
Loading

src/bin/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn main() {
6161
center_im,
6262
0.01,
6363
false,
64-
16
64+
0
6565
);
6666

6767
let time = Instant::now();

src/renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl FractalRenderer {
4646
ComplexArbitrary::parse("(".to_owned() + center_real + "," + center_imag + ")").expect("Location is not valid!"));
4747

4848
let auto_approximation = if approximation_order == 0 {
49-
let auto = (((image_width * image_height) as f64).log(1e6).powi(2) * 21.0f64) as usize;
49+
let auto = (((image_width * image_height) as f64).log(1e6).powf(6.619) * 16.0f64) as usize;
5050
min(max(auto, 3), 64)
5151
} else {
5252
approximation_order

0 commit comments

Comments
 (0)