Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

import numpy as np
inp = input()
u0,kappa,ita,nu,S,n,K = map(float,inp)
num_sims = S
t_init = 0.0
t_end = 10.0
N = n*10
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# DiffEq tools
using DiffEqBayes, OrdinaryDiffEq, ParameterizedFunctions, RecursiveArrayTools
# clone from github.com/tpapp
using DynamicHMC, MCMCDiagnostics, DiffWrappers, ContinuousTransformations
using Parameters, Distributions, Optim
f1 = @ode_def_nohes LotkaVolterraTest1 begin
dx = a*x - b*x*y