Invalid expression. When calling...

2 views (last 30 days)
I have a code that says
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
when i am trying to type cos^2(x/2). Also, i have defined x as pi/6.

Accepted Answer

Walter Roberson
Walter Roberson on 9 Jan 2020
cos(x/2)^2

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!