фикс rust.rs и добавил speedtest

This commit is contained in:
Viner Abubakirov
2025-09-15 12:30:20 +05:00
parent 8eccad2523
commit 956acf18d1
2 changed files with 102 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ impl Div<Complex> for f64 {
#[derive(Debug)]
struct Args {
size: u8,
size: u32,
depth: u8,
g2: Complex,
g3: Complex,
@@ -192,7 +192,7 @@ fn main() {
println!("{}", fractal(args.size, args.depth, args.g2, args.g3));
}
fn fractal(size: u8, depth: u8, g2: Complex, g3: Complex) -> String {
fn fractal(size: u32, depth: u8, g2: Complex, g3: Complex) -> String {
let xi: f64 = -2.0;
let yi: f64 = -2.0;
let xf: f64 = 2.0;