as.cyclotomic {cyclotomic}R Documentation

Coercion to a 'cyclotomic' object

Description

Coercion to a 'cyclotomic' object

Usage

## S4 method for signature 'character'
as.cyclotomic(x)

## S4 method for signature 'cyclotomic'
as.cyclotomic(x)

## S4 method for signature 'numeric'
as.cyclotomic(x)

## S4 method for signature 'bigz'
as.cyclotomic(x)

## S4 method for signature 'bigq'
as.cyclotomic(x)

Arguments

x

a cyclotomic object or an object yielding a quoted integer or a quoted fraction after an application of as.character

Value

A cyclotomic object.

Examples

as.cyclotomic(2)
as.cyclotomic("1/3")

[Package cyclotomic version 1.3.0 Index]