Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.7K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Simplfy trigonometric expression with conditions

Posted 4 years ago

I would like to write a trig expression free of fractions. I looked at Assumptions, but I'm not sure it will give the output I want.

Attachments:
POSTED BY: Jonathan Bell
2 Replies
Posted 4 years ago

Thank you, Hans!

Your response has helped me greatly reduce the amount of code I used and can be applied to a huge variety of trig expressions.

POSTED BY: Jonathan Bell
Posted 4 years ago

The expression in the notebook: $\large{\frac{\cos (x) \csc ^2(x)-\cos (x)}{\cos (x) \csc (x)+\cos (x)}}$

You could use TrigFactor followed by FullSimplify

expr = (Cos[x] Csc[x]^2 - Cos[x])/(Cos[x] Csc[x] + Cos[x]);

expr // TrigFactor // FullSimplify
(* Out: -1 + Csc[x] *)

Or just TrigReduce

In[23]:= TrigReduce[expr]
Out[23]= -1 + Csc[x]
POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard