MAGNITUDE Function
TOC
Collapse the table of content
Expand the table of content

MAGNITUDE Function

Office 2013 and later

Last modified: March 09, 2015

Applies to: Office 2013 | Visio 2013

In this article
Syntax
Remarks
Example

Returns the magnitude of the vector whose rise is A and whose run is B, multiplied by the respective constants constantA and constantB.

MAGNITUDE(constantA,A,constantB,B)

Parameters

Name

Required/Optional

Data Type

Description

constantA

Required

Number

The constant by which to multiply the rise.

A

Required

Number

The rise.

constantB

Required

Number

The constant by which to multiply the run.

B

Required

Number

The run.

MAGNITUDE is calculated according to the following formula:

SQRT((constantA * A)^2 + (constantB * B)^2)

MAGNITUDE(1, 3, 1, 4)

Returns 5.

Show:
© 2016 Microsoft