Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Using a solve block with a vector equation

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-02-2019
07:14 PM

04-02-2019
07:14 PM

Hi,

I get a "No Solution is found" from the find() in this solve block in Mathcad prime. Can someone please tell me where I'm going wrong? (code attached)

I have noticed that if i put the initial guess in for 'h' as the answer then the solve works but this defeats the object somewhat.

Thanks in advance!

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-03-2019
03:28 AM

5 REPLIES 5

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-02-2019
11:32 PM

04-02-2019
11:32 PM

Re: Using a solve block with a vector equation

Hi,

It helps to plot the function to see what is happening and why it cannot solve.

First write a function of "h" to plot.

Then plot the function foo.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-03-2019
02:19 AM

04-03-2019
02:19 AM

Re: Using a solve block with a vector equation

There are three good rules when working with a block Solve.

1. Before solving the equation in vector form - solve it in scalar form

2. Before Solving Inequality (>=, <= etc) - Solve Equality (=)

3. If you have one equation, not several, then use not a block Solve, but a function root

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-03-2019
03:28 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-03-2019
03:34 AM

04-03-2019
03:34 AM

Re: Using a solve block with a vector equation

Yes, the "root" approach is a much better option. I hadn't used this before. Thank you for sending the example. It's exactly what I'm looking for.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-03-2019
04:08 AM

04-03-2019
04:08 AM

Re: Using a solve block with a vector equation

The solve block works exactly the way you had set it up but you can't simply use v1 etc. in your constraint because these are already vectors with h=1 and not dependent on h anymore.

You have to define v1 and v2 as functions dependent on h (I prefer to do this outside of the solve block)

If you want to know the h for exactly 60 degree you may use the symbolic solve

and of course you could also use the root command

Top Tags