Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking Values

Status
Not open for further replies.

GalileoG

Structural
Feb 17, 2007
467
Hello all.

Let's say I specify the value of beta to be 15 degrees

Further below, I respecify it to be 20 degrees

However, even further below, I'd like beta to be what it was specified the first time...I want to link this value to first beta that I specified. Is there a way to do this without having to input it again? Thanks!
 
Replies continue below

Recommended for you

You can define the first as beta1 and the second as beta2. Then use an if condition to specify beta as a function of a condition vlaue. For example:

beta1=15
beta2=20
c=1
beta:=if(c=1,beta1,beta2)
.
.
.
c=2
beta:=if(c=1,beta1,beta2)
 
Clansman,
Your thread title is a tiny step away from "Help". There a a lot of people in eng-tips.com who don't open threads without a descriptive name. You might get more traffic (and increased chance of an answer) if you red flag your post and ask management to change the title to something that is descriptive.

David
 
another option, depending on why you have two values, is to use the 'style'. I had a case recently, also with beta, wher I had a forward calculated value and a back calculated initial value.

I discriminated between then by swiching the style of one (and renamed the style to something nicer than User2) to bold.

This also allows me to use the live symbolic substitute to solve the inverse problem for my system of equations. Took me a while to realise I needed two variables, apparently named the same, but functionally different in use.

It is a good trick.

I recommend that you update your template and create useful styles in the sheet (e.g. for vectors, for matrices, for range variable (loop indexes) etc. or what ever distinctions you'd like.

Philip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor