# Generated Code

The following is c_ida code generated by the CellML API from this CellML file. (Back to language selection)

The raw code is available.

```/*
There are a total of 6 entries in the algebraic variable array.
There are a total of 4 entries in each of the rate and state variable arrays.
There are a total of 17 entries in the constant variable array.
*/
/*
* VOI is time in component temporalExistence (second).
* CONSTANTS is alphaTF in component Device_TFgenerator (uM_per_second).
* CONSTANTS is JTF in component Device_TFgenerator (uM_per_second).
* STATES is TFS in component BioEnv_TFSAssociation (uM).
* ALGEBRAIC is Jgain_TF in component BioEnv_TFSAssociation_interface (uM_per_second).
* CONSTANTS is Jgain_TFS in component BioEnv_TFSAssociation_interface (uM_per_second).
* ALGEBRAIC is JTF in component Device_PhzMSgenerator (uM_per_second).
* STATES is TF in component BioEnv_TFSAssociation (uM).
* CONSTANTS is s in component BioEnv_TFSAssociation (uM).
* CONSTANTS is betaTFS in component BioEnv_TFSAssociation (per_uM_per_second).
* CONSTANTS is kd in component BioEnv_TFSAssociation (per_second).
* CONSTANTS is deltaTFS in component BioEnv_TFSAssociation (per_second).
* CONSTANTS is deltaTF in component BioEnv_TFSAssociation (per_second).
* ALGEBRAIC is Jassociation in component BioEnv_TFSAssociation (uM_per_second).
* CONSTANTS is gammaPhzMS in component Device_PhzMSgenerator (uM).
* CONSTANTS is betaPhzMS in component Device_PhzMSgenerator (uM_per_second).
* ALGEBRAIC is JPhzMS in component Device_PhzMSgenerator (uM_per_second).
* CONSTANTS is gammaTF in component Device_PhzMSgenerator (uM).
* CONSTANTS is betaTF in component Device_PhzMSgenerator (uM_per_second).
* CONSTANTS is feedbackOn in component Device_PhzMSgenerator (dimensionless).
* ALGEBRAIC is Jgain_PhzMS in component BioEnv_PhzMStoPYO_interface (uM_per_second).
* CONSTANTS is Jgain_PYO in component BioEnv_PhzMStoPYO_interface (uM_per_second).
* STATES is PhzMS in component BioEnv_PhzMStoPYO (uM).
* STATES is PYO in component BioEnv_PhzMStoPYO (uM).
* CONSTANTS is deltaPhzMS in component BioEnv_PhzMStoPYO (per_second).
* CONSTANTS is alphaPYO in component BioEnv_PhzMStoPYO (per_second).
* CONSTANTS is deltaPYO in component BioEnv_PhzMStoPYO (per_second).
* ALGEBRAIC is JPYOformation in component BioEnv_PhzMStoPYO (uM_per_second).
* RATES is d/dt TF in component BioEnv_TFSAssociation (uM).
* RATES is d/dt TFS in component BioEnv_TFSAssociation (uM).
* RATES is d/dt PhzMS in component BioEnv_PhzMStoPYO (uM).
* RATES is d/dt PYO in component BioEnv_PhzMStoPYO (uM).
* There are a total of 0 condition variables.
*/
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS = 0.05;
STATES = 0;
STATES = 8.6207;
CONSTANTS = 5;
CONSTANTS = 1e6;
CONSTANTS = 4e6;
CONSTANTS = 3.851e-4;
CONSTANTS = 5.8e-3;
CONSTANTS = 5;
CONSTANTS = 0.1;
CONSTANTS = 4;
CONSTANTS = 0.07;
CONSTANTS = 1;
STATES = 0;
STATES = 0;
CONSTANTS = 8.0225e-6;
CONSTANTS = 1.3;
CONSTANTS = 5.8e-1;
CONSTANTS = CONSTANTS;
CONSTANTS = 0.00000;
CONSTANTS = 0.00000;
RATES = 0.1001;
RATES = 0.1001;
RATES = 0.1001;
RATES = 0.1001;
}
void
computeResiduals(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
resid = RATES - (- ALGEBRAIC+ALGEBRAIC) -  CONSTANTS*STATES;
resid = RATES - (ALGEBRAIC -  CONSTANTS*STATES)+CONSTANTS;
resid = RATES - ALGEBRAIC -  CONSTANTS*STATES;
resid = RATES - (CONSTANTS -  CONSTANTS*STATES)+ALGEBRAIC;
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeEssentialVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC =  CONSTANTS*CONSTANTS*STATES -  CONSTANTS*STATES;
ALGEBRAIC = ( CONSTANTS*STATES)/(CONSTANTS+STATES);
ALGEBRAIC = ALGEBRAIC;
ALGEBRAIC =  CONSTANTS*STATES;
ALGEBRAIC = (CONSTANTS != 0.00000 ? ( CONSTANTS*STATES)/(CONSTANTS+STATES) : 0.00000);
ALGEBRAIC = CONSTANTS+ALGEBRAIC;
}
void
getStateInformation(double* SI)
{
SI = 1.0;
SI = 1.0;
SI = 1.0;
SI = 1.0;
}
void
computeRoots(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
}
```
Source
Derived from workspace Gilbert, Heiner, Rosser, Fulton, Gu, Trybilo, 2007 at changeset 86b9d68f693f.
Collaboration
To begin collaborating on this work, please use your git client and issue this command:
{"ft_lang_label":"__label__en","ft_lang_prob":0.5194887,"math_prob":0.86299497,"size":4606,"snap":"2022-40-2023-06","text_gpt3_token_len":1623,"char_repetition_ratio":0.2548892,"word_repetition_ratio":0.13489209,"special_character_ratio":0.3156752,"punctuation_ratio":0.16801076,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99662393,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-28T22:29:21Z\",\"WARC-Record-ID\":\"<urn:uuid:5a944254-ad81-49f6-97f7-acc945306fd5>\",\"Content-Length\":\"24666\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8163e8a2-d2c2-47ef-a720-7d72efb69d06>\",\"WARC-Concurrent-To\":\"<urn:uuid:73197dc8-a0ae-460f-b5f3-0ba336054c78>\",\"WARC-IP-Address\":\"54.186.195.229\",\"WARC-Target-URI\":\"https://models.cellml.org/exposure/4501d24032cdec3f88ebe3f1a3e7f86a/gilbert_heiner_rosser_fulton_gu_trybilo_2007.cellml/@@cellml_codegen/C_IDA\",\"WARC-Payload-Digest\":\"sha1:YCTS2I6SENXVCLBLCNGTPULWIVJ67HB5\",\"WARC-Block-Digest\":\"sha1:SBN5TGFPFQZHYAZZ7GJQOP36L4TQPPFQ\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499695.59_warc_CC-MAIN-20230128220716-20230129010716-00355.warc.gz\"}"}