Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


It is desirable to assign a stability and comfort rating to each of your ships. This rating, based on the rounded value of GM, is available in TeLiTab format:0

Code Block
languagenone
3 "GM_rounded" "Stab" "Comf"
"1" 0.0 1 1
"2" 0.1 1 2
"3" 0.2 1 4
"4" 0.3 2 6
"5" 0.4 5 8
"6" 0.5 6 9
"7" 0.6 7 8
"8" 0.7 8 6
"9" 0.8 9 4 
"10" 0.9 9 2 
"11" 1.0 9 1

 

Your stability overview also contains values for GM_rounded, so these two TeLiTabs should somehow be combined.

...

You may want to evaluate the syntax of this function, the description can be found here.

Note that our rating TeLiTab should be included in the dataslot Data slot of the relation, as described in tutorial 3. Make sure the syntax is valid, the data slot should contain:

Code Block
TEXTITEM1=|0
3 "GM_rounded" "Stab" "Comf"
"1" 0.0 1 1
"2" 0.1 1 2
"3" 0.2 1 4
"4" 0.3 2 6
"5" 0.4 5 8
"6" 0.5 6 9
"7" 0.6 7 8
"8" 0.7 8 6
"9" 0.8 9 4 
"10" 0.9 9 2 
"11" 1.0 9 1 |

If you run a calculation now with Stability_check# as top goal (and select Data as dataset), you will obtain a solution in which Stability_check# using object Ships, augmented with: 

  and . 

  Run a solution for Stability_check# using Data in the dataset. Inspect the TeliTab.

...