### Newton Fractal but different

• 15 Replies
• 794 Views

0 Members and 1 Guest are viewing this topic.

#### chrizbee

• Fractal Freshman
• Posts: 6

#### Newton Fractal but different

« on: July 10, 2019, 04:48:58 PM »
Hey there!

As I've seen some great software out there rendering newton fractals, I've still been missing the ability to drag and drop roots with my mouse.
So I've decided to write my own

https://github.com/chrizbee/NewtonFractal

Linux and Mac users have to git clone, qmake, make.

I hope you enjoy playing with this little program as much as I do!
chrizbee

• 3f
• Posts: 1371

#### Re: Newton Fractal but different

« Reply #1 on: July 10, 2019, 05:39:31 PM »
here's mine, https://code.mathr.co.uk/fractaloids/blob_plain/3401e9ceabbf076f8301d4c7e71187f52ae36bfb:/webgl/index.html not quite the same, but works in a web browser using OpenGL

• Fractal Furball
• Posts: 248

#### Re: Newton Fractal but different

« Reply #2 on: July 10, 2019, 08:58:11 PM »

• Posts: 64

#### Re: Newton Fractal but different

« Reply #3 on: July 11, 2019, 02:04:16 PM »
Hello,

very nice software!

Quote
inline void func(complex z, complex &f, complex &df, const QVector<Root> &roots)
{
// Calculate f and derivative with given roots
quint8 rootCount = roots.length();
if (rootCount < 2) return;

// TODO: algorithm documentation
complex r = (z - roots[0].value());
complex l = (z - roots[1].value());
for (quint8 i = 1; i < rootCount - 1; ++i) {
l = (z - roots[i + 1].value()) * (l + r);
r *= (z - roots.value());
}
df = l + r;
f = r * (z - roots[rootCount - 1].value());
}

Do you have an extension for a second derivative?

• Posts: 64

#### Re: Newton Fractal but different

« Reply #4 on: July 12, 2019, 09:05:55 AM »
If you want to experiment with more types, have a look at this (https://en.wikibooks.org/wiki/Fractals/fractalzoomer)
I have compiled a list with some methods. Some of them will require a second derivative.
You can also add continuous iteration count as an option.

#### gerson

• Fractal Furball
• Posts: 291

#### Re: Newton Fractal but different

« Reply #5 on: July 12, 2019, 06:03:04 PM »
liked it too.
Suggestions: save/load parameter and render to disk (to save big images)

#### chrizbee

• Fractal Freshman
• Posts: 6

#### Re: Newton Fractal but different

« Reply #6 on: July 22, 2019, 01:06:51 PM »
@superheal
I did not implement that (yet). I am planning to do some more terms of Schroeder's method:

@gerson
You actually can save parameters / current settings. And it is possible to export rendered fractals, too!
Just press F1 to open settings.

#### blob

• Fractal Fanatic
• Posts: 25

#### Re: Newton Fractal but different

« Reply #7 on: July 22, 2019, 02:41:05 PM »
Hello, looking good, any chance for a Win32 build?

#### chrizbee

• Fractal Freshman
• Posts: 6

#### Re: Newton Fractal but different

« Reply #8 on: July 22, 2019, 10:46:26 PM »
Hello, looking good, any chance for a Win32 build?
Will do when I've time. If you have Qt installed you can actually build it yourself.

#### chrizbee

• Fractal Freshman
• Posts: 6

#### Re: Newton Fractal but different

« Reply #9 on: July 26, 2019, 09:01:43 AM »
Hello, looking good, any chance for a Win32 build?

I did. See https://github.com/chrizbee/NewtonFractal/releases.
You can also render on your gpu now. Have fun!

#### blob

• Fractal Fanatic
• Posts: 25

#### Re: Newton Fractal but different

« Reply #10 on: July 26, 2019, 01:56:26 PM »
Thanks.

#### gerson

• Fractal Furball
• Posts: 291

#### Re: Newton Fractal but different

« Reply #11 on: July 27, 2019, 12:05:18 AM »
Thanks for new release.

• Posts: 64

#### Re: Newton Fractal but different

« Reply #12 on: July 29, 2019, 01:13:51 PM »
I tried the new build, and switching between cpu and gpu I get a different image (colorwise). The palette appears offseted compared to the original.

#### chrizbee

• Fractal Freshman
• Posts: 6

#### Re: Newton Fractal but different

« Reply #13 on: August 14, 2019, 06:35:05 PM »
I tried the new build, and switching between cpu and gpu I get a different image (colorwise). The palette appears offseted compared to the original.

Yup, I tried to port QColor::darker() from Qt to GLSL but there seems to be a slight offset when trying to get brighter colors.
But as there is not much of a difference I ignored it currently

Just post a screenshot here if you see a huge difference.

#### gerson

• Fractal Furball
• Posts: 291

#### Re: Newton Fractal but different

« Reply #14 on: August 29, 2019, 05:12:36 PM »
@chrizbee About render to disk option is because at now it saves only screen size images. If I would save an image at 2000x2000 for example it dont save or do?
Other suggestion is to use right mouse button to on/off fix the F3 value and all orbit (F2), so it could be saved on image. That means, when right clic is pushed F3 position is fixed and to let it run again push right clic again. See image attatched. Maybe when this is "on" a footnote could be saved on image with some F1 information too.
« Last Edit: August 29, 2019, 05:28:51 PM by gerson »

### Similar Topics

###### Newton-Raphson Fractal attempt in Xaos

Started by Know That Fractal! on Fractal Image Gallery

0 Replies
250 Views
December 22, 2017, 01:40:55 AM
by Know That Fractal!
###### Newton's Garden

Started by gannjondal on Fractal Image Gallery

4 Replies
406 Views
April 17, 2018, 11:22:45 PM
by spain2points
###### Revisiting the 3D Newton

Started by gannjondal on Fractal Mathematics And New Theories

26 Replies
2311 Views
October 01, 2018, 10:24:43 PM
by FractalDave
###### Mandelbrot/Newton - Has it already been done?

Started by mrrudewords on Share a fractal

2 Replies
455 Views
February 09, 2019, 09:35:17 PM
by mrrudewords
###### Newton (gannjondal)

Started by Sabine62 on Fractal Image Gallery

0 Replies
157 Views
August 15, 2018, 04:28:09 PM
by Sabine62