Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.3K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Simplify doesn't work

Posted 10 years ago

This snippet of code works in one program but the Simplify fails when I cut and pasted it into another program.

Jac := Simplify[JacArray];
JacTrans := Transpose[Jac];
Met := Simplify[JacTrans.Jac];

JacArray is a Jacobian matrix and Met is the corresponding Metric. The value of Met when it fails in my test case is {cos[\[Theta]]^2 + sin[\[Theta]]^2, 0, 0, 0}, {0, r^2 (cos[\[Theta]]^2 + sin[\[Theta]]^2), 0, 0}

It doesnt recognize that cos[\[Theta]]^2 + sin[\[Theta]]^2 equals 1. FullSimplify doesnt help.

The main difference in the programs is that in the successful case I set Coordinates and query the system to get the Jacobian Matrix and in the unsuccessful case I put up a dialog that lets the user enter the Jacobian Matrix.

POSTED BY: James Strunk
2 Replies
Posted 10 years ago

I found the problem. In the program where I entered the Jacobian Matrix manually, I was typing sin[\[Theta]] instead of Sin[\[Theta]].

POSTED BY: James Strunk
In[1]:= FullSimplify[Cos[\[Theta]]^2 + Sin[\[Theta]]^2]

Out[1]= 1
POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard