[prev in list] [next in list] [prev in thread] [next in thread]
List: scilab-users
Subject: Re: [Scilab-users] The numderivative function
From: Paul Bignier <Paul.Bignier () esi-group ! com>
Date: 2017-11-20 9:58:21
Message-ID: DB5PR05MB119055BCBB4977E10D02B992C2220 () DB5PR05MB1190 ! eurprd05 ! prod ! outlook ! com
[Download RAW message or body]
Hello Hermes,
If you're using Scilab 6.0.0 the function numderivative is in the \
differential_equations module so you should use:
exec(SCI+"\modules\differential_equations\macros\numderivative.sci", -1);
If you want your script to be compatible with both versions you can add:
v = getversion("scilab");
if v(1)<6 then
exec(SCI+"\modules\optimization\macros\numderivative.sci", -1);
else
exec(SCI+"\modules\differential_equations\macros\numderivative.sci", -1);
end
Best regards,
Paul
Paul BIGNIER
Development engineer
-----------------------------------------------------------
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com
________________________________
From: users <users-bounces@lists.scilab.org> on behalf of Hermes \
<herozigle@gmail.com>
Sent: Monday, November 20, 2017 10:50 AM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] The numderivative function
Hi,
When I execute the command:
exec(SCI+"/modules/optimization/macros/numderivative.sci",-1);
I get the following Scilab alert:
exec('C:\Draghilev''sMethod_4.sce', -1)
at line 14 of executed file C:\Draghilev'sMethod_4.sce
at line -15 of executed file C:\Draghilev'sMethod_4C.sce
exec: Cannot open file
C:\PROGRA~1\SCILAB~1.0\modules\optimization\macros\numderivative.sci.
the command is inserted in the script before calling the fumciont ode.
it is right?
Gracias
--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} \
--></style> </head>
<body dir="ltr">
<div id="divtagdefaultwrapper" \
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" \
dir="ltr"> <p><br>
</p>
<p>Hello Hermes,</p>
<p><br>
</p>
<p>If you're using Scilab 6.0.0 the function numderivative is in the \
differential_equations module so you should use:</p> <p><span style="font-size: 11pt; \
font-family: Arial,Helvetica,sans-serif;"> </span> <font size="2"><span \
style="font-size:10pt;"><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;">exec(</span><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;">SCI+"\</span><span style="font-size: 11pt; \
font-family: Arial,Helvetica,sans-serif;">modules\</span><span style="font-size: \
11pt; font-family: Arial,Helvetica,sans-serif;">differential_equations</span><span \
style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;">\macros\numderivative.sci</span><span style="font-size: \
11pt; font-family: Arial,Helvetica,sans-serif;">"</span><span style="font-size: \
11pt; font-family: Arial,Helvetica,sans-serif;">,
-1</span><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;">);</span></span></font></p> <p><font size="2"><span \
style="font-size:10pt;"><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;"><br> </span></span></font></p>
<p>If you want your script to be compatible with both versions you can add:</p>
<p><span style="font-size: 11pt; font-family: Arial,Helvetica,sans-serif;"> \
</span> <span style="font-size: 11pt; font-family: Arial,Helvetica,sans-serif;">v = \
getversion("scilab");</span></p> <p><span style="font-size: 11pt; \
font-family: Arial,Helvetica,sans-serif;"> if v(1)<6 then</span><br> </p>
<p><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;"> </span> <font size="2"><span \
style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;">exec(SCI+"\modules\optimization\macros\numderivative.sci", \
-1);</span></font></p> <p><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;"> else</span><br> </p>
<p><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;"> </span> <font size="2"><span \
style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;">exec(SCI+"\modules\differential_equations\macros\numderivative.sci", \
-1);</span></font><br> </p>
<p><span style="font-size: 11pt; font-family: Arial,Helvetica,sans-serif;"> \
end</span></p> <p><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;"><br> </span></p>
<p><span style="font-size: 11pt; font-family: Arial,Helvetica,sans-serif;">Best \
regards,</span></p> <p><span style="font-size: 11pt; font-family: \
Arial,Helvetica,sans-serif;">Paul</span><br> </p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); \
font-family: Calibri,Arial,Helvetica,sans-serif,"EmojiFont","Apple \
Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI \
Symbol","Android Emoji",EmojiSymbols;"> <p></p>
<div><span style="color:rgb(117,123,128)">Paul BIGNIER</span><br>
<span style="color:rgb(117,123,128)">Development engineer</span><br>
<span style="color:rgb(117,123,128)">-----------------------------------------------------------</span><br>
<span style="color:rgb(117,123,128)">ESI Group - Scilab</span><br>
<span style="color:rgb(117,123,128)">99 rue des Solets - 94513 Rungis, \
France</span><br> <span style="color:rgb(117,123,128)">Phone: \
+33.1.41.73.58.77</span><br> <a href="https://scilab.io" class="OWAAutoLink" \
id="LPNoLP">https://scilab.io</a></div> <a href="https://esi-group.com" \
class="OWAAutoLink" id="LPNoLP">https://esi-group.com</a><br> <p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, \
sans-serif" color="#000000"><b>From:</b> users <users-bounces@lists.scilab.org> \
on behalf of Hermes <herozigle@gmail.com><br> <b>Sent:</b> Monday, November 20, \
2017 10:50 AM<br> <b>To:</b> users@lists.scilab.org<br>
<b>Subject:</b> Re: [Scilab-users] The numderivative function</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi,<br>
When I execute the command:<br>
exec(SCI+"/modules/optimization/macros/numderivative.sci",-1);<br>
<br>
I get the following Scilab alert:<br>
<br>
exec('C:\Draghilev''sMethod_4.sce', -1)<br>
at line 14 of executed file C:\Draghilev'sMethod_4.sce<br>
at line -15 of executed file C:\Draghilev'sMethod_4C.sce<br>
<br>
exec: Cannot open file<br>
C:\PROGRA~1\SCILAB~1.0\modules\optimization\macros\numderivative.sci.<br>
<br>
the command is inserted in the script before calling the fumciont ode.<br>
it is right?<br>
Gracias<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a><br>
_______________________________________________<br>
users mailing list<br>
users@lists.scilab.org<br>
<a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
--===============0322591950083714116==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic