🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

linspace

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linspace

An implementation of MATLAB's linspace

1.0.2
latest
Version published
Maintainers
1
Created

linspace

An implementation of MATLAB's linspace function.

install

npm install linspace

require

var linspace = require('linspace');

use

linspace(from, to, length)

Acts like linspace from matlab:

> linspace(1,5,15)
[ 1,
  1.2857142857142856,
  1.5714285714285712,
  1.8571428571428568,
  2.1428571428571423,
  2.428571428571428,
  2.7142857142857135,
  2.999999999999999,
  3.2857142857142847,
  3.5714285714285703,
  3.857142857142856,
  4.1428571428571415,
  4.428571428571427,
  4.714285714285713,
  4.999999999999998 ]

license

MIT/X11

FAQs

Package last updated on 23 Mar 2022

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