Message Boards Message Boards

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

Norm produces unexpected result

Posted 3 years ago

I get the following result in Mathematica.

Norm[{(Sin[t] + t*Cos[t]), 2 t}]


Sqrt[4 Abs[t]^2 + Abs[t Cos[t] + Sin[t]]^2]

I don't understand the term Abs[t Cost[t]

When I calculate the Norm by hand I get:

Sqrt[4 t^2 + t Sin[2t] + t^2 (Cos[t])^2 +(Sin[t])^2]
POSTED BY: jules.aronson
2 Replies

It is a consequence of

In[10]:= Norm[{a, b}]

Out[10]= Sqrt[Abs[a]^2 + Abs[b]^2]

where a is Sin[t] + t*Cos[t] and b is 2 t.

You may get a result closer to the expected one by specifying assumptions, for example

In[11]:= Simplify[Norm[{(Sin[t] + t*Cos[t]), 2 t}], Element[t, Reals]]

Out[11]= Sqrt[4 t^2 + (t Cos[t] + Sin[t])^2]

In[12]:= Expand /@ %

Out[12]= Sqrt[4 t^2 + t^2 Cos[t]^2 + 2 t Cos[t] Sin[t] + Sin[t]^2]
POSTED BY: Ilian Gachevski

Thank you, your explanation was very helpful.

POSTED BY: jules.aronson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract