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
- :
- Re: Problem with 'substitute' in Mathcad15

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

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

06-09-2019
10:53 AM

06-09-2019
10:53 AM

Re: Problem with 'substitute' in Mathcad15

I will try to do as you advise.

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

06-09-2019
11:03 AM

06-09-2019
11:03 AM

Re: Problem with 'substitute' in Mathcad15

I can now get 'substitute' to appear by using the symbolic keyword menu, but now 'i' is an undefined variable. See teh attached file.

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

06-09-2019
11:05 AM

06-09-2019
11:05 AM

Re: Problem with 'substitute' in Mathcad15

The 'vector' arrow was added by Mathcad, not me. I quite understand that omega is not a vector.

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

06-09-2019
11:08 AM

06-09-2019
11:08 AM

Re: Problem with 'substitute' in Mathcad15

Yes, I discovered that one has to use the menu. I wish the Help was a bit more forthcoming on this subject, instead of showing very simple examples which few would need help with.

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

06-09-2019
11:25 AM

06-09-2019
11:25 AM

Re: Problem with 'substitute' in Mathcad15

Highlighted

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

06-09-2019
11:35 AM

06-09-2019
11:35 AM

Not sure what you are looking for at the end of the day, but wouldn't Terry's approach be all you need? Without any symbolic "substitute".

Or is your goal to apply some further symbolic manipulations on F after the substitution?

P.S.: I would suggest to use a literal index for your constants omega.1, etc. instead of a vector index. The way you defined those constants you had defined a 5 element vector omega (first element being 0 as Mathcads first index is by default 0, not 1). I guess you did not intend to define a vector omega, right?

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

06-09-2019
11:45 AM

06-09-2019
11:45 AM

Re: Problem with 'substitute' in Mathcad15

Thank you. Do you mean that the subscript for omega-1 should be '.1', and for omega-n should be '.n'? Is this syntax explained anywhere?

How did you decide about the need for 'Independent variable range' and how to define it?

I think this is getting impracticably complicated, but I see it produces what looks like the correct magnitude response.

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

06-09-2019
11:52 AM

06-09-2019
11:52 AM

Re: Problem with 'substitute' in Mathcad15

That looks a lot simpler. BIG hidden error using the wrong keys to get the subscripts. That's what comes of using Mathcad only infrequently. When I've used it intensively in the past, I was defining vectors very often.

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

06-09-2019
01:10 PM

06-09-2019
01:10 PM

Re: Problem with 'substitute' in Mathcad15

That's correct, *i* is generally an undefined variable in Mathcad.

In order to get i, the unit of imaginary numbers, you have to type 1i.

But if you need 2*pi*i, you can also type 2i*p[Ctl-G]. The important part is that i is immediately preceded by a number.

Success!

Luc

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

06-09-2019
03:04 PM

06-09-2019
03:04 PM

Re: Problem with 'substitute' in Mathcad15

In the form I used to solve your problem, I cannot use a vector as an independent variable of a function and use constants with the same name as the independent variable. I can define constants as elements of a vector that has a name different from the independent variable. The constant pulsation, for example 1 / (RC), I define it as: omega.1: = 1 / (R C). I have never used vectors as independent variables.

In recent years I have published here, in this community, some files related to analog and digital filters, for example this:https://community.ptc.com/t5/PTC-Mathcad/4-HIGH-PASS-I-order-DIGITAL-FILTERS-EQUIVALENT-TO-LINEAR-CL...

but there are others. In these files the criteria for choosing sampling frequencies are missing. Gap completed in new versions.

Top Tags