<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#330000">
<div class="moz-cite-prefix">Hi<br>
<br>
can you rpovide the full code that makes the bug ?<br>
<br>
in your example, for instance, t_z is not defined<br>
<br>
On 18/01/2013 05:11, AntonSeab wrote:<br>
</div>
<blockquote cite="mid:1358482300090-4025701.post@n3.nabble.com"
type="cite">
<pre wrap="">Hi,
I'm finding the following behaviour puzzling. When running the following
code that has one typing error 'lambda(t-t_z)' instead of 'lambda*(t-t_z)':
lambda = -0.9;
function exch=e(t,t_z)
exch = exp(lambda(t-t_z));
endfunction
e(4.999,3)
we get unexpectedly:
-->e(4.999,3)
ans =
0.4065697
This problem happens for other values t < 5. But for e(5.000,3), or other
values t > 5, we get as expected an error message:
-->e(5.000,3)
!--error 21
Invalid index.
at line 2 of function e called by :
e(5.000,3)
at line 7 of exec file called by :
exec('C:\Users\Anton\AppData\Local\Temp\SCI_TMP_5144_\LOAD_INTO_SCILAB-6477721663385113459.sce',
1)
while executing a callback
--
View this message in context: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/Puzzling-behaviour-ignoring-Invalid-index-error-tp4025701.html">http://mailinglists.scilab.org/Puzzling-behaviour-ignoring-Invalid-index-error-tp4025701.html</a>
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>