How to limit in equal to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to limit in equal to
Hello, I have a question. As you can see in attached picture, i want to create function if IL1 equal to IL2, but I want the equal to function to only consider 4 number of decimal places (ie: 0.6193). Is it possible? I use Mathcad Prime. Thank you
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Math formatting only affects the way it is displayed it still is operating at full accuracy.
The trick is to use the round feature then compare if equal.
It is possible to do this to whole vector at once
Cheers
Terry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try this: click on IL1/IL2 and then click on Math Formatting tab, and change to the Decimal, and then increase/decrease to the 4 decimal numbers:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Math formatting only affects the way it is displayed it still is operating at full accuracy.
The trick is to use the round feature then compare if equal.
It is possible to do this to whole vector at once
Cheers
Terry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you verry much terry, It works.
Thank you Cornel for your advice!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I guess a more common way would be to ask, if the absolute value of the difference is smaller than 10^-5 (or whatever)
You can apply this to the full vectors but you must apply vectorization, as otherwise the absolute value is interpreted as length of the difference vector.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you Werner.
