Get Help

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
- :
- How to change fraction on this matrices

- 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

Highlighted

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

05-12-2020
01:38 AM

05-12-2020
01:38 AM

I don't want to display the result as fraction.

I also changed the default to decimal but it doesn't affect.

When i click it there is no result format that could be change.

Someone have idea? (file attached below)

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

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

05-13-2020
02:51 AM

05-13-2020
02:51 AM

You have to be aware that using the "float" modifier in symbolic evaluations affects not only the display of the result but the precision of the whole calculation. Therefore "float" should be used with great care (or better omitted).

As Luc already wrote you can follow the symbolic evaluation by a numeric one to get float results. To be able to use those results for further calculations you have to redefine kl as shown in the picture below:

I would do the calculation without any use of the symbolic engine. Simply define two ranges from 0 to 7 and use numeric calculation:

Prime 6 worksheet attached

2 REPLIES 2

Highlighted
##

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

05-12-2020
02:22 AM

05-12-2020
02:22 AM

Re: How to change fraction on this matrices

You are using symbolic evaluation (you use an arrow '->') , instead of numeric evaluation (with an equals '='). The numerical formats ONLY apply to numerical evaluation results. You can append an equals to your symbolic result to get numeric floating point results. Or you can evaluate kl numerically right away by typing kl=.

You can also force the symbolic evaluator to produce floating point results by defining at least one of the input values to a floating number. Just add '.0' to the end of one of the integers and see what happens. You will not be immediately happy with the result. The floating point results of the symbolic evaluation can be limited by using the 'float' keyword, but beware! This actually truncates the result to the numer of decimals chosen.

Success!

Luc

Highlighted

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

05-13-2020
02:51 AM

05-13-2020
02:51 AM

You have to be aware that using the "float" modifier in symbolic evaluations affects not only the display of the result but the precision of the whole calculation. Therefore "float" should be used with great care (or better omitted).

As Luc already wrote you can follow the symbolic evaluation by a numeric one to get float results. To be able to use those results for further calculations you have to redefine kl as shown in the picture below:

I would do the calculation without any use of the symbolic engine. Simply define two ranges from 0 to 7 and use numeric calculation:

Prime 6 worksheet attached