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
- :
- cannot sum

Options

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

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

Showing results for

08-28-2014
10:10 AM

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

08-28-2014
10:10 AM

cannot sum

Hi guys,

I want to calculate spectral moments of a wave spectrum (of ocean waves). This involves the use of the transcendental equation to obtain the wave number k by iteration. I have calculated k for a limited set of wave frequencies, see sheet. However, I would now like to sum these wave numbers, but I am unable to do this. Can anybody help?

I am new to Mathcad so maby Im just being stupid here.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

08-28-2014
10:49 AM

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

3 REPLIES 3

08-28-2014
10:49 AM

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

08-28-2014
10:52 AM

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

08-28-2014
10:52 AM

I forgot to add that if you are working through a spectral analysis you might be better making wave frequency a function of the wave number and so on. I have been working on exactly the same stuff recently

08-28-2014
11:03 AM

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

08-28-2014
11:03 AM

I see no attempt to calculate a sum in the sheet you attached.

I ssume you'd like to sum up the four results and you already tried the sum symbol and it failed, right?

The reason for this is that you had defined omega as range variable and not as vector. so the result f(omega) is NOT a vector, even if it looks like a vector.

The solution to your problem is to define omega as a vector and use the vectorization operator from the operators menu.

As you simply have just four values of omega I created the vecor manually using stack in the attached sheet. If you need to create a larger vector with equally spaced values you will find a lot of small routines here in the forum posts which will do that for you.