-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Сатин Н.А. #2
base: master
Are you sure you want to change the base?
Сатин Н.А. #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хорошее решение. И за слайдер для итераций залипательный =)
function start() { | ||
let inputParams = getUserInput(); | ||
setCords(centerCoords.x - scale, centerCoords.x + scale, centerCoords.y - scale, centerCoords.y + scale); | ||
drawDractal(inputParams); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Очепятка!
const nextX = 2 / 3 * point.x + (x - y) / (3 * (x + y) * (x + y)); | ||
const nextY = 2 / 3 * point.y * (1 - point.x /((x + y) * (x + y))); | ||
const nextPoint = { x: nextX, y: nextY }; | ||
return getNewtoonAttractor(nextPoint, n - 1, iterationAmount + 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Конечно, большой глубины рекурсии тут не будет, но я бы циклом сделал.
https://sangreen74.github.io/fg03-algebraicfractals/