|
|
|
@ -40,13 +40,9 @@ fn main() {
|
|
|
|
|
let c = vec![1, 2, 4, 5]; |
|
|
|
|
|
|
|
|
|
println!("{:?}", nbr_function(a)); |
|
|
|
|
// output : (0, 1.0, inf) |
|
|
|
|
println!("{:?}", str_function(b)); |
|
|
|
|
// output : ("1 2 4 5 6", "2.718281828459045 7.38905609893065 54.598150033144236 148.4131591025766 403.4287934927351") |
|
|
|
|
println!("{:?}", vec_function(c)); |
|
|
|
|
// output : ([1, 2, 4, 5], [0.0, 0.6931471805599453, 1.3862943611198906, 1.6094379124341003]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
And its output: |
|
|
|
|