## Showing the underlying equations

## Showing the underlying equations

(OP)

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?

## RE: Showing the underlying equations

## RE: Showing the underlying equations

## RE: Showing the underlying equations

@jghrist: thanks for a nice looking suggestion, it looks like a good way of doing it, but it still isn't able to display the solution formatted as an equation, is there any way of doing that?

## RE: Showing the underlying equations

## RE: Showing the underlying equations

## RE: Showing the underlying equations

## RE: Showing the underlying equations

Lars

## RE: Showing the underlying equations

## RE: Showing the underlying equations

## RE: Showing the underlying equations

Notice that in Occupant's attachment, v, SKL, PL, and F are defined after the (hidden) RSF formula.

## RE: Showing the underlying equations

Just a quick extra question: Anybody know WB script to change textbox colour and appearance?

Lars

## RE: Showing the underlying equations

fine, if not be more specific.