Differences From Artifact [57afb07876]:

To Artifact [2920b23040]:


1
2
3
4
5


6
7
8
9
10
11
12
#ifndef SQUARELAW_HH
#define SQUARELAW_HH

#include <cmath
#include "sign.hh"



inline double squarelaw(const double gain,
			const causality_t causality, const int port,
			const double input, const causality_t in_causality, const int in_port)
  /*
   * implements P = R Q^2
   * direction of flow is retained





>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef SQUARELAW_HH
#define SQUARELAW_HH

#include <cmath
#include "sign.hh"

#include "causality.hh"

inline double squarelaw(const double gain,
			const causality_t causality, const int port,
			const double input, const causality_t in_causality, const int in_port)
  /*
   * implements P = R Q^2
   * direction of flow is retained

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]