×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Showing the underlying equations3

## 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?

### RE: Showing the underlying equations

2
Why don't you just use Insert->Area and hide it in there?

### RE: Showing the underlying equations

(OP)
@Occupant: The challenge has not been to keep the calculations hidden, but to get the end result displayed correctly :)

@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

#### Quote:

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?
Not that I know of.  You might try fooling around with bitmap images and different control objects.

### RE: Showing the underlying equations

Have to add: the only fly in the ointment with my approach is that you have to use refresh every time you change n.

### RE: Showing the underlying equations

(OP)
@Occupant: Can you post the mathcad version of that last one?

Lars

### RE: Showing the underlying equations

(OP)
@Occupant: Thanks a lot for your help so far, but I am seriously baffled by this. I try to replicate your calculation, but instead of symbolics, all variables are exchanged for numbers, is there any hidden preference or keyword I can't see in this?

### RE: Showing the underlying equations

The key is to not define the independent variables before the dependent variable is defined.  Variables that are defined (like n) are evaluated and not shown in the symbolic result.

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

### RE: Showing the underlying equations

(OP)
Thanks a lot everybody! It worked out pretty neat!

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

Lars

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!