This PR adds support for scientific literals for `Rat` in `grind`. `grind` does not yet add support for this kind of literal in arbitrary fields. closes #10489
10 lines
565 B
Text
10 lines
565 B
Text
example : (2 / 3 : Rat) ≤ (0.67 : Rat) := by grind
|
|
example : (1.2 : Rat) ≤ (1.21 : Rat) := by grind
|
|
example : (2 / 3 : Rat) ≤ (67 / 100 : Rat) := by grind
|
|
example : (2 / 3 : Rat) ≤ (67 * 10 ^ (-2) : Rat) := by grind
|
|
example : (2 / 3 : Rat) ≤ (67 / 10 ^ 2 : Rat) := by grind
|
|
example : (2 / 3 : Rat) ≤ (67 / 10 ^ (2:Int) : Rat) := by grind
|
|
example : (1.2345 : Rat) ≤ (1.2346 : Rat) := by grind
|
|
example : (1.2345 : Rat) ≤ (1.234501 : Rat) := by grind
|
|
example : (2.3 : Rat) ≤ (4.5 : Rat) := by grind
|
|
example : (2.3 : Rat) ≤ (5/2 : Rat) := by grind
|