Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

numlib::phi

Euler phi function

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Syntax

numlib::phi(n)

Description

numlib::phi(n) calculates the Euler φ function of the argument n, i.e. the number of numbers smaller than |n| which are relatively prime to n. Cf. Example 1.

numlib::phi returns an error if the argument is a number but not an integer unequal to zero.

numlib::phi returns the function call with evaluated arguments if the argument is not a number. Cf. Example 2.

Examples

Example 1

numlib::phi works on integers unequal zero:

numlib::phi(-7), numlib::phi(10)

Example 2

numlib::phi is returned as a function call with evaluated argument:

x := a: numlib::phi(x)

Parameters

n

Integer not equal to zero

Return Values

numlib::phi returns a positive integer, if the argument evaluates to an integer unequal zero. If the argument cannot be evaluate to a number, the function call with evaluated arguments is returned .

Overloaded By

n

See Also

MuPAD Functions

Was this topic helpful?