×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

# Contact US

Log In

#### Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
To Your Posts
• Keyword Search
• One-Click Access To Your
Favorite Forums
• Automated Signatures
On Your Posts
• 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.

Students Click Here

# Showing the underlying equations3

 Forum Search FAQs Links MVPs

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

### Reply To This Thread

#### Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login

#### Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a partâ€™s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

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!

Already a member? Close this window and log in.