Date: Oct 15, 2013 2:14 PM
Author: Nasser Abbasi
Subject: Re: complex results using ODE45
On 10/15/2013 12:53 PM, Jeffrey wrote:
> I have the two m files given below. "a" and "T" are returned as complex with
> Why are values becoming complex?
> Please help.
> %this is in file alpha.m
> function dadT = alpha(T,a)
> b = 20
> l= 50.1
> ner = -36108.73
> dadT = (k/b)*(exp(ner/T)) *((1-a)^n
You have missing ")" above btw. Last line.
But besides this, which I assume a cut/paste issue only,
look at the expression itself.
What happens for (1-a)^n, and "a" happens to be
larger than one?
-0.2754 - 0.3104i