3b1b / manim

Animation engine for explanatory math videos
MIT License
61.82k stars 5.75k forks source link

complex functions acting strange #498

Open tjf801 opened 5 years ago

tjf801 commented 5 years ago

When I try to run a complex transformation, it runs fine, unless the function has a pole. I would like if someone could tell me what I could do to fix this. Thanks in advance.

Code: Capture

Middle: Capture

Last frame: Capture

Rousan99 commented 5 years ago

Can you show me how you get complex Transformation of the whole coordinate plane for any Function?

tjf801 commented 4 years ago

I'm A little late but you change the lambda function in CONFIG to whatever you want.

Rousan99 commented 4 years ago

But I don't understand why you use self.apply_complex_function(self.function) Why not self.apply_complex_function(zeta)?

giladsofer commented 4 years ago

Hi, were you able to solve this problem? I'm having the same problem myself right not, wondering if there's some way to fix it. Thank you

tjf801 commented 4 years ago

sadly no. I wish though lol

giladsofer commented 4 years ago

Right now I'm trying to check the [discontinuity fix code](https://github.com/3b1b/manim/pull/832), but I'm having some trouble understanding how to use it.

yinjann commented 4 years ago

After several days I managed to solve the problem with the current version of manim

1169

1170

1171

ur_k

giladsofer commented 4 years ago

After several days I managed to solve the problem with the current version of manim

1169

1170

1171

ur_k

Could you please post the code you used for this specific animation? Just to see how your method is applied in context? Thank you

Rousan99 commented 4 years ago

After several days I managed to solve the problem with the current version of manim

1169

1170

1171

ur_k

This works fine for the zeta Transformation of complete plane but it doesn't work for the transformation of half plane. It is showing something like this: IMG_20200716_005955

yinjann commented 4 years ago

Check my code #1169

class TestZetaOnHalfPlane(ZetaTransformationScene): CONFIG = { "anchor_density" : 15, } def construct(self): self.add_transformable_plane() prueba = self.get_dense_grid() self.plane.submobjects = [prueba] self.apply_zeta_function() texto = TextMobject("yinjann") texto.scale(0.8) texto.to_corner(DOWN + RIGHT) self.play(Write(texto)) self.wait(3)

TestZetaOnHalfPlane

giladsofer commented 4 years ago

Check my code #1169

class TestZetaOnHalfPlane(ZetaTransformationScene): CONFIG = { "anchor_density" : 15, } def construct(self): self.add_transformable_plane() prueba = self.get_dense_grid() self.plane.submobjects = [prueba] self.apply_zeta_function() texto = TextMobject("yinjann") texto.scale(0.8) texto.to_corner(DOWN + RIGHT) self.play(Write(texto)) self.wait(3)

TestZetaOnHalfPlane

Not completely related, but - how were you able to define your function on only half of the plane? I want to make animations of functions acting on the upper half plane