cas_rot_matrix2d: CAS 2d rotation matrix

View source: R/yacas.R

cas_rot_matrix2dR Documentation

CAS 2d rotation matrix

Description

Calculates a 2D rotation matrix with a given angle x

Usage

cas_rot_matrix2d(x)

Arguments

x

vector of an angel in radiant

Details

The calculation is done by Ryacas (yacas) and uses symbolic math. The package Ryacas and the software YACAS http://www.yacas.org/ needs to be installed.

Value

Returns rotation matrix for given angle

Author(s)

Florian Wagner florian.wagner@wagnius.ch

Examples

library(Ryacas)
cas_rot_matrix2d(c(pi))
rot_matrix <- cas_rot_matrix2d(c(-pi)|>ysym())
rot_matrix

wagnius-GmbH/slvwagner documentation built on Jan. 19, 2025, 7:10 a.m.