6.1. General calculations¶
Explanations about the process of getting results
Aquí coloco mis ideas sobre como hacer cálculos
Ejemplo1:
cube c: .size 20 30 40 cm .material iron
c.rotate .axis c.tnw c.bse .speed 45 deg/s
c.speed 45 km/s
print c.momentum
print c.energy
print c.kinetic?
print.L?
print c.tnw
time.advance 30s
print c .tnw ## has changed, obviously
Example 2:
cube c: .size 30 60 90 cm .material wood
cube d: .as c .material iron
c.speed: 45 km/s # this defaults to x axis,
d.speed: -45 km/s
time.advance 50s # there is a crash in this time
c.kinetic?
d.kinetic? # operator ? is like print!
Como distingo entre 2d y 3d??? un prefijo????