【发布时间】:2012-12-03 00:36:54
【问题描述】:
我有两个 sn-ps 代码,我希望它们的行为相同,但它们没有:
position <- function(t) {
coordinates <- c(cosh(t), sinh(t))
return(coordinates[1])
}
和
position <- function(t) {
coordinates <- c(cosh(t), sinh(t))
return(cosh(t))
}
我使用函数position 来绘制曲线。对于第一个 sn-p,没有绘制曲线。使用第二个 sn-p 绘制曲线。
这两个sn-ps在功能上有什么区别,为什么?
【问题讨论】:
标签: r