фикс rust.rs и добавил speedtest
This commit is contained in:
4
main.rs
4
main.rs
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user