New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mandelbrot-points

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mandelbrot-points

Get info at point level for the Mandelbrot set (any position, any scale)

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

Mandelbrot points

Get info at point level for the Mandelbrot set (any position, any scale).

Install

npm i mandelbrot-points

Use

const {getPoints} = require('mandelbrot-points');

const points = getPoints(
  -2,    // Min value on x axis to get info for
   2,    // Max value on x axis to get info for
  -1,    // Min value on y axis to get info for
   1,    // Max value on y axis to get info for
   0.01, // Step (related to scale): distance between points on same axis. 
   15,   // Max acceptable value (limit used to determine if function diverges or not)
   20    // Max num iterations per point
);

It returns an array of objects with the following structure:

{ x, y, iters }

Where (x, y) is the point location and iters is the number of iterations executed for the point before the function "diverged". If the function does not diverge iters will be equal to the max number of iterations passed as parameter.

Licence

GPL-3.0

Keywords

FAQs

Package last updated on 26 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc