-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
double negative sign error #4094
Comments
I think it is becoming +2PI (-PI*(-2) = 2PI) as both the start and the end of the X-axis. The error is probably occuring because the start and end points become the same causing the length variable of the X-axis to be 0. Thus somehow causing a division by 0 error. I read the comment and it said that the range is supposed to go from -PI/2 to +PI/2, for that the appropriate line of code should probably be this.
This seems to be working on my system with the current codebase. Please tell me if I have misunderstood your issue. |
I guess @CobaltIII is right here, your comment seems to indicate that you intend an I have no idea what you mean by "double negative sign error" though... For questions like this I recommend that you join the Discord server, rather than opening an issue on Github which is meant to reveal possible bugs in the Manim code base rather then misunderstandings. from manim import *
class sin(Scene):
def construct(self):
axes = Axes(
x_range=[-PI/2, PI/2], # x轴从 -π/2 到 π/2
y_range=[-1.5, 1.5], # y轴从 -1.5 到 1.5
axis_config={"color": WHITE},
).add_coordinates()
graph = axes.plot(lambda x: np.cos(x), color=BLUE)
self.play(Create(axes), Create(graph))
self.wait() sin.mp4 |
Description of bug / unexpected behavior
it report a mistake
Expected behavior
i want to two nagetive sign become a positive sign
but it report mistake!!
How to reproduce the issue
Code for reproducing the problem
Additional media files
Images/GIFs
Logs
Terminal output
System specifications
System Details
python/py/python3 --version
):pip list
):LaTeX details
Additional comments
The text was updated successfully, but these errors were encountered: