Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

lcm (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: basic

Requires: MathScript RT Module

Syntax

c = lcm(a, b)

Description

Computes the pairwise least common multiple of the input elements.

Examples

Inputs

Name Description
a Specifies a scalar or matrix. All elements of a must be positive integers.
b Specifies a scalar or matrix. All elements of b must be positive integers.

Outputs

Name Description
c Returns the pairwise least common multiple of the elements in a and b. c is a matrix of the same size as the larger of a and b.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = 234
B = 98
C = lcm(A, B)

Related Topics

gcd


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit