## 12 Badges

14 years, 280 days

## Typo caused the discrepancy...

@Carl Love The polynomial in the question is x^3+x^2+2*x+1, but you used x^3+x^2+x+1.

## 2-d mode...

@Carl Love I typically always work in 2-d mode, hence, I always use y'(x), p''(t), etc. :-)

## Something to say......

@mehdi jafari I've tried the command with a trigonometric function in Maple 16, 17, and 18. It works fine in Maple 16, but fails in 17 and 18. So it appears to be a bug introduced in the newer versions of Maple. It would be nice to hear from a developer. :)

This is what I tested:

Student[Calculus1]:-Tangent(sin(3*x),x=0,output=plot,gridlines=true,caption="")

## Interesting......

@mehdi jafari But yet, this works fine.

Student[Calculus1]:-Tangent(exp(-x^2),x=0,output=plot,gridlines=true,caption="")

I wonder why. Any ideas?

## Yes, filled=true does nothing...

@Preben Alsholm Removing filled=true changes nothing. I do like the approach of using trace and multiple plots.

## Good, but......

@Carl Love Any idea why for (about) Pi < theta < 5*Pi/4 and 7*Pi/4 < theta < 2*Pi there are regions shown that aren't part of the bounded region?

## Ok...

@Markiyan Hirnyk I apologize if my questions bore you. I did a search and the first few pages of results were not helpful because my search did not include the string "sum difference," or anything closely related. If you are indeed, bored by my queries, please ignore them. I do not think you need to be rude or demeaning because someone asks a question that you deem "unoriginal." Clearly, you have more experience with Maple, and I'm sure you're proud of that. That, however, does not give you the right to treat others with less experience with such disrespect. From what I understand MaplePrimes is designed to provide a forum where ALL users of Maple (and other products) can share and learn.

## Sufficient, however......

@Markiyan Hirnyk This solution is sufficient. I can confirm that it, indeed, works. I don't know if it is appropriate to pose another problem that it is closely related to this one, but here goes:

If I change the problem to 2*sin(2*x+Pi/4), and the desired form is sqrt(2)*sin(2*x)+sqrt(2)*cos(2*x), expand(,trig) no longer works for me. How might this one be tackled? Clearly, one may just replace "x" with "2x," but is this the only way?

## Simple...

@Carl Love I knew it had to be something simple. Your explanation is very good!

## Indeed...

@Carl Love Yes, I realized that after I posted the question.

## @Markiyan Hirnyk This works too, th...

@Markiyan Hirnyk This works too, thanks!

## @Carl Love This is just what I need...

@Carl Love This is just what I need. Thanks!

## Exactly...

@nm Hence my question. My point is, that answer is not correct. Why is Maple not giving the correct answer?

## Be wary of RealDomain...

@spradlig Despite it's convenience, be wary of RealDomain. See http://www.mapleprimes.com/questions/131296-Discrepancy-With-Limit

## Be wary of RealDomain...

@spradlig Despite it's convenience, be wary of RealDomain. See http://www.mapleprimes.com/questions/131296-Discrepancy-With-Limit

 2 3 4 5 6 7 Page 4 of 7
﻿