The equation for force of gravity is F = GMm / r² where
- G is the gravitational constant
- M is the mass of the planet
- m is the mass of the object being weighed
- r is the radius of the planet / distance between the centers of mass of two objects
The equation shows that gravity scales linearly with mass, and scales inversely with the square of distance. The article says K2-18 b is 8.6 times Earth's mass, and 2.6 times Earth's radius. So the weight of a 100 kg mass would be:
F = 100 × 8.6 / (2.6)²
which works out to a weight of about 127 kg, or 1.27 times heavier.
I agree - YAML is not suitable for complex cases that people use it in, like ~~Terraform~~ and Home Assistant. My pet peeve is a YAML config in a situation that really calls for more abstraction, like functions and variables. I'd like to see more use of the class of configuration languages that support that stuff, like Dhall, Cue, and Nickel.
There is another gotcha which is that YAML has more room for ambiguity than, say, JSON. YAML has a lot of ways to say
true
andfalse
, and it's implicit quoting is a bit complex. So some values that you expect to be strings might be interpreted as something els.