Turn on suggestions

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

Showing results for

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

Showing results for

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

Mar 22, 2021
08:16 AM

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

Mar 22, 2021
08:16 AM

Vector or for loop?

Help a Mathcad-beginner out!

I have programmed a design-model for bending of one single cross-section for a floor slab. I want to optimize this calculation-model to be able to calculate for several cross-sectional dimensions. My first idea was to vectorize the different values, but it wasn't as easy as i thought because of several dimension-errors.

What is the best solution to be able to compute this for all different combinations of cross-sectional dimensions (hw,bw,hf)?

Regards,

Lisa (Mathcad prime 6)

Labels:

11 REPLIES 11

Mar 22, 2021
11:08 AM

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

Mar 22, 2021
11:08 AM

Your sheet contains a lot of data and information, so it's not clear (to me) what operations you are talking about.

At first glance, I think you cannot use vectorisation, so you need to program. But it depends heavily on the type of operations you need to perform and how many variables are into play.

Success!

Luc

Mar 22, 2021
10:45 PM

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

Mar 22, 2021
10:45 PM

Instead of V, you can use the function you want to optimize. Then find the maximum or minimum you want.

- Tags:
- Prime 7.0

Mar 23, 2021
08:43 AM

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

Mar 23, 2021
08:43 AM

Hi,

Thank you for the help.

This seems to be the solution i searched for. But, i get an error as below. Whats the problem?

Mar 23, 2021
09:28 AM

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

Mar 23, 2021
09:28 AM

Prime7 file attached.

- Tags:
- Prime_7.0

Mar 23, 2021
09:37 AM

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

Mar 23, 2021
09:37 AM

Hi,

Thank you for the help, but is it possible for you to send a printscreen? Im using Prime 6, so i can´t open the file.

thanks,

Lisa

Mar 23, 2021
06:55 PM

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

Mar 23, 2021
06:55 PM

Your On may be O ctrl+- n, but it should be O [ n, therefore n is index of vector O.

Mar 23, 2021
10:40 AM

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

Mar 23, 2021
10:40 AM

don't vectorize here

Mar 23, 2021
01:30 AM

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

Mar 23, 2021
01:30 AM

I've made a start, but this is a long, complicated sheet.

See if the attached Prime 6 file sheds any light. (I got a far as the second moment of inertia.

Mar 23, 2021
09:53 AM

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

Mar 23, 2021
10:06 AM

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

Mar 23, 2021
10:06 AM

Hi,

Thank you so much for the help and the effort!

Mar 24, 2021
10:27 AM

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

Mar 24, 2021
10:27 AM

It took some ingenuity, but the attached file (I believe) works thru your sheet and gets it all functioning correctly.

It's in Prime 6.0, and I think it would run in Express (I disabled the solve blocks and programs.