mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 13:01:00 +00:00
added central input sampling fro integrals
This commit is contained in:
parent
881b2dd9cb
commit
aa98e32ed3
1 changed files with 5 additions and 0 deletions
|
@ -245,6 +245,8 @@ class GraphScene(Scene):
|
|||
sample_input = x
|
||||
elif input_sample_type == "right":
|
||||
sample_input = x + dx
|
||||
elif input_sample_type == "center":
|
||||
sample_input = x + 0.5 * dx
|
||||
else:
|
||||
raise Exception("Invalid input sample type")
|
||||
graph_point = self.input_to_graph_point(sample_input, graph)
|
||||
|
@ -421,6 +423,9 @@ class GraphScene(Scene):
|
|||
|
||||
return group
|
||||
|
||||
def get_animation_integral_bounds_change(self):
|
||||
pass
|
||||
|
||||
def animate_secant_slope_group_change(
|
||||
self, secant_slope_group,
|
||||
target_dx=None,
|
||||
|
|
Loading…
Add table
Reference in a new issue