#!/usr/local/bin/Rscript
args <- commandArgs(TRUE)
t1=as.numeric(args[1])
t2=as.numeric(args[2])
library(kmc)
x <- c(1, 1.5, 2, 3, 4.2, 5, 6.1, 5.3, 4.5, 0.9, 2.1, 4.3)
d <- c(1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1)
f_1 <- function(x) {x - t1}
f_2 <- function(x) {x^2-t2}
g <- list(f1=f_1,f2=f_2);
re0 <- kmc.solve(x, d, g)
ZZ <- plotkmc2D(re0,range0 = c(0.1, .4, 30))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.