Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Elementary Functions > Trigonometry > cosm

cosm

matrix cosine function

Syntax

t = cosm(x)

Arguments

x

a real or complex square matrix.

Description

cosm(x) is the matrix cosine of the x matrix. t=0.5*(expm(%i*x)+expm(-%i*x)).

Examples

A=[1,2;3,4]
cosm(A)-0.5*(expm(%i*A)+expm(-%i*A))

See Also

  • cos — cosine function
  • expm — square matrix exponential
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:34 CEST 2016