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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Jacob not showing expected result - 01 - Possible BugRep

StuartBruff
23-Emerald III

Jacob not showing expected result - 01 - Possible BugRep

Whilst playing around with a Newton-Raphson solver for a simultaneous set of functions, I noted a disparity between the Mathcad 15 and Mathcad Prime 7 results for the Jacobian of one set of functions.  To eliminate the possibility of other parts of the worksheet contaminating the environment, I copied the function to a blank worksheet.   Unfortunately, I get the same results.   

 

Why is the derivative d/dξ for just cos(x₀) yet isn't when multiplied by x₀??

 

2022 01 11 a.png

 

Mathcad 15 returns the result I expect.

 

2022 01 11 b.png

  1. Does this happen in Mathcad Prime 6 under the legacy symbolic engine?
  2. Is there a valid reason why this MP7 behaviour occurs?
  3. If so, should it?
  4. If not, is it a bug?

 

Stuart

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:StuartBruff)

Reason for not working when I simply evaluated the regions after switching to the legacy symbolic was that I also must evaluate the definition of G(x) from anew. Not sure why.

Here are some other observations - and yes, I'd call i a bug.

"New" symbolic:

Werner_E_0-1641919537910.png

 

Legacy symbolic

Werner_E_1-1641919617967.png

 

View solution in original post

5 REPLIES 5
Werner_E
25-Diamond I
(To:StuartBruff)

Guess you ran into Primes infamous autolabeling bug.

Check the labels of all xi and set them manually to "variable".

 

EDIT: No, autolabeling seems not to be the cause here even though I experienced strange effects in P6 when I retyped your expressions, then copied them, switches to the legacy engine, selected the symbolically evaluated regions and pressed F9. Can't explain the error message in the first one

Werner_E_0-1641898599163.png

When I copy the expressions AFTER having switched to the legacy engine, I get

Werner_E_1-1641898759514.png

 

 

 

StuartBruff
23-Emerald III
(To:Werner_E)


@Werner_E wrote:

Guess you ran into Primes infamous autolabeling bug.

Check the labels of all xi and set them manually to "variable".

 

EDIT: No, autolabeling seems not to be the cause


Yes, I thought of that when I first hit the problem (https://community.ptc.com/t5/PTC-Mathcad/Newton-Raphson-method/m-p/771992/highlight/true#M199247). However, it was way past my bedtime and I thought sleep deprivation was stopping me from seeing the obvious.  Maybe it wasn't ...

 


EDIT: No, autolabeling seems not to be the cause here even though I experienced strange effects in P6 when I retyped your expressions, then copied them, switches to the legacy engine, selected the symbolically evaluated regions and pressed F9. Can't explain the error message in the first one

Werner_E_0-1641898599163.png

When I copy the expressions AFTER having switched to the legacy engine, I get

Werner_E_1-1641898759514.png


 

60tnc1

 

Stuart

Werner_E
25-Diamond I
(To:StuartBruff)

Reason for not working when I simply evaluated the regions after switching to the legacy symbolic was that I also must evaluate the definition of G(x) from anew. Not sure why.

Here are some other observations - and yes, I'd call i a bug.

"New" symbolic:

Werner_E_0-1641919537910.png

 

Legacy symbolic

Werner_E_1-1641919617967.png

 

StuartBruff
23-Emerald III
(To:Werner_E)


@Werner_E wrote:

Reason for not working when I simply evaluated the regions after switching to the legacy symbolic was that I also must evaluate the definition of G(x) from anew. Not sure why.

Here are some other observations - and yes, I'd call i a bug.

"New" symbolic:


 

Good stuff, Werner.  Let us hope some kindly PTC/Subscription individual makes it known to the Symbolic team.

 

Stuart

I decided to be kind and I let them know by linking to this thread.

I manage the Creo and PTC Mathcad YouTube channels for PTC, as well as all PTC Mathcad marketing in general.
Announcements

Top Tags