Created
September 1, 2024 22:00
-
-
Save uwezi/9589da836d8eda4d3575be6e4903e984 to your computer and use it in GitHub Desktop.
[lambda plot] comparing functions and lambda functions. #manim #plot #axes #lambda #function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from manim import * | |
class plotter(Scene): | |
def construct(self): | |
def func(x): | |
return 2*np.sin(x) | |
ax = Axes() | |
pl1 = ax.plot(func) | |
pl2 = ax.plot( | |
lambda x: 2*np.cos(x) | |
) | |
self.add(ax,pl1,pl2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment