LarsBlesvik
Petroleum
- Oct 12, 2011
- 5
Hi all,
When working with code checks there are often multiple formulas given a set of variables. For instance DnV (Norwegian certification agency) gives a resulting sling force with one padeye as:
RSF:=1.4*F
Whereas with 2 to 4 padeyes it would be:
RSF:=1.2*SKL*PL*F/cos(v)
There is no problem in writing an if statement to choose the correct value, but when presenting a report on this I would like to be able to write the if statement off the printed area, and still get the symbolic result presented, something like this:
n:=4
(hidden)
RSF:=if(n=1,1.4*F,1.2*SKL*PL*F/cos(v))
(hidden end)
RSF=1.2*SKL*PL*F/cos(v)=Numerical value
This would make it possible for me to generate a less "cluttered" report to present.
Any ideas?
When working with code checks there are often multiple formulas given a set of variables. For instance DnV (Norwegian certification agency) gives a resulting sling force with one padeye as:
RSF:=1.4*F
Whereas with 2 to 4 padeyes it would be:
RSF:=1.2*SKL*PL*F/cos(v)
There is no problem in writing an if statement to choose the correct value, but when presenting a report on this I would like to be able to write the if statement off the printed area, and still get the symbolic result presented, something like this:
n:=4
(hidden)
RSF:=if(n=1,1.4*F,1.2*SKL*PL*F/cos(v))
(hidden end)
RSF=1.2*SKL*PL*F/cos(v)=Numerical value
This would make it possible for me to generate a less "cluttered" report to present.
Any ideas?