Hi,
I am aware that Function Table works when one gives e.g. an array of voltage and an array of variable value.
I want to know what is the linear fit equation behind that ? Basically I don't want to use such Function Table thing, instead just define a function inside the mod file. How I can do that ?
Thanks.
Equation behind Function Table
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Equation behind Function Table
Example:
Code: Select all
FUNCTION myfunc(z) {
myfunc = cosh(z)
}
-
- Posts: 41
- Joined: Sun Aug 08, 2010 11:09 am
Re: Equation behind Function Table
thank you Ted, yeah , FUNCTION works.
A deeper question:
when a FUNCTION_TABLE is provided, e.g. FUNCTION_TABLE var (v(mV)), if the values of voltage v in the provided table range only from -30 to 50, then what happens to NEURON evaluation when the voltage is below -30 ? Does it take the value for -30 at all other voltage values ?
A deeper question:
when a FUNCTION_TABLE is provided, e.g. FUNCTION_TABLE var (v(mV)), if the values of voltage v in the provided table range only from -30 to 50, then what happens to NEURON evaluation when the voltage is below -30 ? Does it take the value for -30 at all other voltage values ?
-
- Posts: 41
- Joined: Sun Aug 08, 2010 11:09 am
Re: Equation behind Function Table
When the value is out of the TABLE range, it evaluates the nearest point.
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Equation behind Function Table
Yes, sometimes the quickest and easiest way to answer a question is to run a test.