Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

ccCreateCurve

ccCreateCurve(
t_x
t_y
l_interval
) 
=> o_curve / nil

Description

(Virtuoso Photonics Option) Creates a ccCurve object using the specified parametric functions and interval.

The function will return an error if you try to create a zero length curve.

Arguments

t_x

Mathematical expression determining the X-coordinate of a parametric function.

Supported operations are: +, -, :, *, ^ (power), sin, cos, tan, sinh, cosh, tanh, atan, exp, log, sqrt, cfresnel, sfresnel, pow.

t_y

Mathematical expression determining the Y-coordinate of a parametric function.

Supported operations are: +, -, :, *, ^ (power), sin, cos, tan, sinh, cosh, tanh, atan, exp, log, sqrt, cfresnel, sfresnel, pow.

l_interval

list(n_begin:n_end)

An interval for the input variable determined by its start n_begin and end n_end.

Value Returned

o_curve

ID of the resulting ccCurve.

nil

An error occurred.

Examples

ccCreateCurve("t" "1" 0:1)
=> cc@0x269c83e0
ccCreateCurve("sin(t)" "s+t" 0:1)
=> *Error*  (CC-200053): Inconsistent variable name in string expression 's+t': s, t
ccCreateCurve("cos(t)" "sin(t)" -3.14:3.14)
=> cc@0x269c83f0

Related Topics

Curvy Core Mathematical Object Creation Functions


Return to top
 ⠀
X