Warning! Will Robinson...
Wait the compiler executes the RLC1 program but there are 15 warnings. Let's not ignore them and try to improve our code. Warning #1 warning: method `Z` should have a snake case name --> examples\rlc1.rs:16:8 | 16 | fn Z(&self) -> f64 { | ^ help: convert the identifier to snake case (notice the capitalization): ` | = note: `#[warn(non_snake_case)]` on by default The compiler is complaining about the use of a capital letter (Z) as a variable name and suggests converting it to snake case. How about res_z? The change must be made on two lines: (1) In the fn definition and (2) in the function call in main(). Clear the terminal (CTRL-SHFT-P Termina:Clear) and run the program. Now there are 14 warnings.