Problem 1450. Calculate compression ratio of engine
Calculate compression ratio of engine given compression volume of cylinder(Vc), piston stroke(s) and valve diameter(d)
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
Tim
on 23 Apr 2013
Argument d is the cylinder diameter, not the valve diameter.
Chintan
on 23 Apr 2013
Thanks for the correction
Benjamin Rahimian
on 4 May 2021
because floating point numbers can not be represented exactly in binary form 2 is for example not equal to 2.0000. This is not considered for the test suite.
Ricardo
on 10 Nov 2022
Don't use "pi" value from Matlab. It's better the 3.1416 value
John Johnson
on 11 Mar 2023
In the test suite, are the test variables supposed to be without semi-colons?
Solution Comments
Show commentsProblem Recent Solvers167
Suggested Problems
-
2239 Solvers
-
Back to basics 8 - Matrix Diagonals
917 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
1738 Solvers
-
298 Solvers
-
Area of an equilateral triangle
6030 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!