cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

PLOT ERROR

ssato
15-Moonstone

PLOT ERROR

I have a quetion.

I attatched the file.

 

I do not understand the error on last plot of file.

I think "n" is no problem.

 

Best Rgs

ACCEPTED SOLUTION

Accepted Solutions
ssato
15-Moonstone
(To:Werner_E)

Everyone, I understood well.......

View solution in original post

17 REPLIES 17
Werner_E
25-Diamond I
(To:ssato)


I do not understand the error on last plot of file.

I think "n" is no problem.



I agree and as I don't see any rational reason for this error I would call it a strange Prime bug.

Prime seems not to like the fact, that only every fourth value is non-zero? Not sure what exactly causes that bug.

But I can confirm that it should work and it also does work OK in Mathcad 15

B3.png

I found two possible workarounds to do it in Prime (not satisfactory but at least you get your plots):

1) change the factor 2 of the cosine to something close to 2

2) change the step width of your range n to 1,1.5 .. 50

B1.png

 

B2.png

Interesting!  In Prime 3.0:

Capture.PNG

Going backwards?

Fred, your function v differs from the original function. The 2 is only a factor of the cosine.

Sorry, needed more coffee!

Still:

Capture.PNG

Capture1.PNG

Yeah! Lack of coffee really can have bad side effects 😉

But nonetheless we see that your Prime 3.0 plot is quite happy with that expression.

So the bug seems to be newly introduced in Prime 4.0 (guess it works still OK in P31, too).

Maybe the only left-over of the plot enhancements we were promised that Prime 4 will include.

Werner_E
25-Diamond I
(To:Werner_E)

Here is another workaround using a different, but equivalent function:

B3.png

Werner_E
25-Diamond I
(To:Werner_E)

Here are two other workarounds using the round function

B1.png

 

B2.png

 

I also noticed, that if we change the range from n:=1,2...50 to n:=1,2...7 Prime has no problem. But as soon as we go up to 8 or more - error. Thats crazy.

DJF
16-Pearl
16-Pearl
(To:Werner_E)

Don't we just need n to be a vector (not a range)(add the = sign) and vectorize the equation?  

 

2018-04-25_10-08-10.jpg

Fred_Kohlhepp
23-Emerald I
(To:DJF)

There are two primary uses for range variables:

  1. As indices for vectors, and
  2. As plotting independent variables.

If making n a vector fixes this problem in Prime 4, then it's still a bug, and an aggravating one.

Werner_E
25-Diamond I
(To:DJF)

Sure, this is a valid workaround, too. Given that we don't need n as range later.
Point for me is that it should work as initially done and due to a, obviously freshly (as Fred showed) introduced, bug it doesn't.

 

I might add a third use to Freds list - ranges are also needed in programs for for-loops.

ssato
15-Moonstone
(To:ssato)

Thank you. everyone.

I will attach another file.
If "a" is an odd number in the last graph, an error will occur only with graph creation.
If "a" is an even number, no error occurs.

In the end, is this a bug in Prim 4.0?

If you are a bug, where should I contact?

Werner_E
25-Diamond I
(To:ssato)

It sure IS a bug and obviously a new one as Fred head shown that in Prime 3.0 it works OK

 

PTC is not very interested in bug reports.

In fact you have to pay for the privilege(!) to send a bug report - only if you are under maintenance you may open a support ticket an report that bug.

 

LucMeekes
23-Emerald III
(To:Werner_E)

And then it may take a while to get fixed...

 

Success!
Luc


@LucMeekes wrote:

And then it may take a while to get fixed...


My stopwatch doesn't carry intervals long enough!

 

Anybody have a "stop calendar"?  😉

LucMeekes
23-Emerald III
(To:Fred_Kohlhepp)

As a matter of fact, I have a small clock that I can set for a (one) date and time in the future. If it reaches that point in time it will sound the alarm; it was initially set for 2000-01-01 00:00 and would show how many days until the set time. I don't have one that counts up, but they're not too difficult to make on a web site.

Come to think of it:

Would be fun to have a down counter to the predicted date of https://community.ptc.com/t5/PTC-Mathcad-Questions/Mathcad-Prime-5-0-some-new-updates/m-p/489877#M174257 as a reply to that post.Smiley Happy

 

Luc


@Fred_Kohlhepp wrote:

@LucMeekes wrote:

And then it may take a while to get fixed...


My stopwatch doesn't carry intervals long enough!

 

Anybody have a "stop calendar"?  😉


How's a calendar called which covers more than just one year?

ssato
15-Moonstone
(To:Werner_E)

Everyone, I understood well.......

Announcements

Top Tags