18

i don't remember where exactly, i found in internet this image: beautiful curve

i tried to replicate the formula with python and i tried this:

b = 0.9
y = 2*b + sqrt(x*x) + sqrt((x+b)*(3*b-x))
y1 = 2*b + sqrt(x*x) - sqrt((x+b)*(3*b-x))
plot(x,y, x, y1)

where sqrt is the square root!

but my curve is not very similar to the picture.. mayebe i'm not able to read it because of it is handwritten. some help?

t.b.
  • 76,508
  • 10
  • 263
  • 338
nkint
  • 1,773
  • 1
  • 16
  • 26
  • 3
    I'm fairly certain that it's not $\sqrt{x^2}$... the root and the exponent are probably different so as to give the desired "cusp". – The Chaz 2.0 Oct 18 '11 at 14:11
  • 3
    The first radical appears to not be a square root, but an $n$th root, which is pretty hard to make out. It'd be silly to use $\sqrt{x^2}$, which is $|x|$, since there's probably a nice function for that in Python. Try experimenting with some other roots, maybe $x^{2/3}$ – mathmath8128 Oct 18 '11 at 14:12
  • 1
    [A related thread.](http://math.stackexchange.com/questions/12098) – J. M. ain't a mathematician Oct 18 '11 at 14:16
  • Perhaps you found the image here: http://www.mathematische-basteleien.de/heart.htm (That's what came up when I used Google image search.) – PersonX Oct 18 '11 at 15:42
  • This reminds me of the famous batman equation (http://math.stackexchange.com/questions/54506/is-this-batman-equation-for-real) @ J.M., how can you link your text in comment mode? –  Oct 18 '11 at 16:22
  • [Parametric Heart](http://www.wolframalpha.com/input/?i=parametric%20plot%20%28%20abs%28tan%28t%29%29%5E%281/%28abs%28tan%28t%29%29%29%29%20cos%28t%29,%20abs%28tan%28t%29%29%5E%281/%28abs%28tan%28t%29%29%29%29%20sin%28t%29%20%29,%20%20t%20=%200%20to%20pi) thanks to Dwight Boddorf (MAA's American Mathematical Monthly Volume 115 Number 2 (February 2008) page 113) – Bill Cook Oct 18 '11 at 19:31
  • 1
    @Jeroen "[your text](the http address)" with the [ ] ( ) included – Dr. belisarius Oct 18 '11 at 21:20
  • What python library are you using? – asmeurer Sep 11 '12 at 18:33
  • @asmeuere: numpy – nkint Sep 12 '12 at 15:35

2 Answers2

33

I did it in Maple...

heart

Vary b to change the picture.

GEdgar
  • 104,283
  • 7
  • 103
  • 245
  • ok thanks it is perfect! and can i ask you also some little comment about the kind and analysis of this formula? – nkint Oct 31 '11 at 09:25
1

$\sqrt{x^2}$ is the same thing as $|x|$, the absolute value of $x$, whose graph has a sharp corner. When I plot exactly the first equation you wrote above, what I get is quite similar to the part of the graph above the two left and right vertical tangents. But it doesn't have a vertical tangent at the cusp in the middle, although it does have a sharp corner there.

Michael Hardy
  • 1
  • 31
  • 294
  • 591