Learn R Programming

ecd (version 0.9.2.4)

solve.ecd: Solve the elliptic curve \(y(x)\)

Description

Solve the elliptic curve \(y(x)\) by constructing a cubic polynomial from ecd object. Then solve it and take the smallest real root.

Usage

# S3 method for ecd
solve(a, b, ...)

# S4 method for ecd solve(a, b, ...)

Arguments

a

An object of ecd class

b

A vector of \(x\) values

...

Not used. Only here to match the generic signature.

Value

A vector of roots for \(y(x)\)

Examples

Run this code
# NOT RUN {
d <- ecd()
x <- seq(-100,100,by=0.1)
y <- solve(d,x)

# }

Run the code above in your browser using DataLab