This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math' as math; | |
// Temperatures should be in Kelvin | |
// pK, pNa, and pCl refer to the permeability. (e.g. If the channels for Na are closed, Na permeability is 0 (zero)) | |
// Everything In or Out is in mM | |
// Membrane potential (voltage) is returned as mV | |
double ghkCalculator(double temperature, | |
double pK, double pNa, double pCl, | |
double kIn, double kOut, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math' as math; | |
// Temperature should be in Kelvin | |
// Valence is just the valence. -1 for Cl- or +1 for Na+ | |
// xOut and xIn are in mM | |
// Voltage returns as mV | |
double nernsCalculator(double temperature, double valence, double xOut, double xIn) { | |
double voltage; | |
const double faradayConstant = 96485.0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#AND | |
<b:if cond='data:blog.pageType == "index"'> | |
<b:if cond='data:blog.searchQuery'> | |
<!--search_page AND index_page--> | |
</b:if> | |
</b:if> | |
#OR |