GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • » Octave core
  • » by package
  • » alphabetical

This view

  • Original page
  • New address

GeezerVison is showing octave.sourceforge.io — Function Reference: factor

Octave-Forge - Extra packages for GNU Octave
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code

Navigation

Operators and Keywords

Function List:

  • » Octave core
  • » by package
  • » alphabetical

C++ API

: pf = factor (q)
: [pf, n] = factor (q)

Return the prime factorization of q.

The prime factorization is defined as prod (pf) == q where every element of pf is a prime number. If q == 1, return 1.

With two output arguments, return the unique prime factors pf and their multiplicities. That is, prod (pf .^ n) == q.

Implementation Note: The input q must be less than flintmax (9.0072e+15) in order to factor correctly.

See also: gcd, lcm, isprime, primes.

Package: octave

SourceForge.net Logo
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.