×
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

Multiplying a vector with the Tangent of a vector
2

Multiplying a vector with the Tangent of a vector

Multiplying a vector with the Tangent of a vector

(OP)
Hi Guys,
I have a vector and are trying to multiply it with the Tan of another vector and cannot get it to work correctly. The answer I get is the first value in one vector multiplied with the Tan of the first value in the second vector repeated in the answer vector rather than different values for each line of the vector.
I have tried using the vectorise function as well as using a range variable applied to each variable by using the [ button after the variable name and inserting the variable used to define the range variable. This also did not work as I was unable to apply the range variable to the tan function with out geting the error message this value must be a vector. Any help would be appreciated.
Thanks
Kevin

RE: Multiplying a vector with the Tangent of a vector

I think the problem is that unless set otherwise array origin is 0, and your range variable is from 1 upwards... Go to Tools > Worksheet Options and set Array Origin to 1, I think it will solve your problem. HTH

RE: Multiplying a vector with the Tangent of a vector

(OP)
Hi WolfHR, I have my origin set to 1 as I find it much less confusing.
Thanks

RE: Multiplying a vector with the Tangent of a vector

You misunderstand. Mathcad automatically assumes 0 as the ORIGIN, unless ORIGIN:1 is explicitly stated in the sheet. This that EVERY vector in your sheet starts at 0, regardless of what you attempted to do to X.

Once you fix that, the L.tet.vert=1.47kN for every value, since that's what your sheet makes it.

http://files.engineering.com/getfile.aspx?folder=e...




TTFN
FAQ731-376: Eng-Tips.com Forum Policies

RE: Multiplying a vector with the Tangent of a vector

(OP)
Hi IRstuff,
I set my origin in work sheet options to 1 for all of my calculations. Unfortunately I picked a different template when I cut the calcs out of my main document to uploaded and did not adjust the origin. OOPS.
You have, as you pointed out, solved my problem. I had looked at the 2 vectors multiplied together with random numbers in them and expected to get 8 different values for L.tet.vert. When I noticed that I had 1.47kN for every line of the vector I assumed that it had only calculated the first line and repeated it for the rest as if I needed to use the vectorise function. 2nd OOPS.
I had also overlooked the fact that I had previously divided by tan ang and then multiplied by tan ang which will clearly give me the original answer. All very obvious now. Ha Ha
Thanks for you help.
Regards
Kevin

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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close