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

Oct 02, 2021
04:40 AM

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

Oct 02, 2021
04:40 AM

IF & AND statements logic

Having a problem getting the following to work, I think it's really just logic, as trying to use to determine which one equation from 4 should be being used!

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Oct 02, 2021
05:40 AM

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

Oct 02, 2021
05:40 AM

If you don't define and function, and(M, N) is a graphics function. Therefore use "and" operator that I show the second line and the if function operate.

4 REPLIES 4

Oct 02, 2021
05:40 AM

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

Oct 02, 2021
05:40 AM

Oct 02, 2021
06:23 AM

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

Oct 02, 2021
06:23 AM

@ttokoro many thanks, don't fully appreciate what you have explained, but understand it's application 🙂

Oct 02, 2021
06:53 AM

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

Oct 02, 2021
06:53 AM

@SA_9950729 wrote:

Having a problem getting the following to work, I think it's really just logic, as trying to use to determine which one equation from 4 should be being used!

ttokoro's way is the correct way to address the problem; that is, using the boolean operator ∧ from the Math ribbon's Operator tab, in the Comparsion goup.

An alternative (having done all the hard work in writing and functions!) and one that I use for other booleans, is to define function's and, or, xor, etc to use as seems fit.

I've often found it necessary, not just convenient, to use these functions when I need to pass one or the other as an argument to a function.

You can't do that with an operator.

The attached worksheet was created in Mathcad Express 7, but the concept should work in almost any version of Mathcad.

Stuart

Oct 02, 2021
08:59 AM

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

Oct 02, 2021
08:59 AM

thanks for your feedback & input, appreciated..