5#include "../framework/module.h"
6#include "../framework/state_map.h"
7#include "../framework/constants.h"
22 state_map
const& input_quantities,
23 state_map* output_quantities)
27 x_ip{get_ip(input_quantities,
"x")},
30 x_op{get_op(output_quantities,
"x")}
36 static std::string
get_name() {
return "golden_ratio_hyperbola"; }
46 void do_operation()
const override;
63void golden_ratio_hyperbola::do_operation()
const
65 update(x_op, 1 + 1 / *x_ip);
79 state_map
const& input_quantities,
80 state_map* output_quantities)
84 x_ip{get_ip(input_quantities,
"x")},
85 y_ip{get_ip(input_quantities,
"y")},
88 x_op{get_op(output_quantities,
"x")},
89 y_op{get_op(output_quantities,
"y")}
95 static std::string
get_name() {
return "hyperbola_2d"; }
107 void do_operation()
const override;
126void hyperbola_2d::do_operation()
const
128 update(x_op, 1 + 1 / (*x_ip + *y_ip));
129 update(y_op, 1 + 1 / (2 * *x_ip - *y_ip));
Represents a simple hyperbola defined by f(x) = 1 + 1 / x. Intended to be used as a simple test case ...
static string_vector get_outputs()
static string_vector get_inputs()
static std::string get_name()
golden_ratio_hyperbola(state_map const &input_quantities, state_map *output_quantities)
Represents two 2D hyperbolas defined by f(x,y) = 1 + 1 / (x + y) and g(x,y) = 1 + 1 / (2x - y)....
hyperbola_2d(state_map const &input_quantities, state_map *output_quantities)
static string_vector get_outputs()
static string_vector get_inputs()
static std::string get_name()
This is the standard BioCro module library; it includes the essential modules used in typical BioCro ...