Obrigado, Phys Whiz! Eureka! Entro com largura e comprimento; saio com área. Entro com o raio; saio com Superfície e Volume! E também a função que cria um vetor v(i) é muito esclarecedora!
hi there i m facing problem in putting variables in function. //Theoretical air Required// function TA=TheroticalAirrequired(C,H,O,S) TA=[11.6*C +{34.8*(H-(O/8))}+4.35*S]/100; endfunction TheroticalAirrequired(36,2.6,7.3,0.6) Undefined variable: TheroticalAirrequired
As you have defined the sphere() function results as Sur,Vol (from left to right), why does Scilab return them in reverse order? (ie. vol, then sur, in the output)
+Savio Fernandes yeah i guess you could define a function such as this: deff('[a,b]=f(x)','a=x'); and then you could simply call it by: f(5) and you would get the answer that is 5. Note: This would only work if you have defined the value for the first output variable. If I make the definition as : deff('[a,b]=f(x)','b=x'); and now if you call it by: f(3) then you would get an error
+Savio Fernandes Also, if you define a function as : deff('[a,b]=f(x)','a=x'); and then call it by: [a,b]=f(7) then also you would get an error. Note: if you are curious then you should probably check these videos on functions: 1. ruclips.net/video/O5h8nhDeJwU/видео.html (for defining function using deff) 2. ruclips.net/video/vliMutqXKF8/видео.html (this video is for variable no. of input arguments however you could apply the same logic for output variables)
+Victor Melo first of all you need to define a function as shown in the video above. Then execute it. Once executed you can call it from the console. Let's say the function is sum(x,y). To call it from the console you need to type 'sum(2,4)' where 2&4 are the values for the arguments x & y. Do you get it???
I want to write a program that right after I put the values on input will show me the values of my function. That's a exercise of my College. Thank you for the answer!
okay. So as far as I understand, what you want is that let's say you need to make a program that calculates the are of a rectangle. And I guess you want the output to look like the following: Enter breadth: 5 Enter Length: 6 Area is : 30 If you want something like that then you shoud just write a normal program without a function. You can use the 'input' function of scilab to ask for the values from user and then use the 'disp' function of Scilab to display the result. I hope that's what you wanted. And I'm sorry if this is not the answer you're looking for.
thanks for making such simple video on scilab . keep making more on scilab.
Very good! Your videos on scilab are great. Continue to make them!
Thanks! :)
its really helpful and simple way of teaching...thanks alot...may god bless u...
Thanks for good lesson, it's very helpful!
Glad you liked it! :)
Perfect! Thanks for sharing!
Life Saver! Thank you!
I love this Scilab videos!!! Thank you so much for sharing! Regards from the Republic of Panamá.
Obrigado, Phys Whiz! Eureka! Entro com largura e comprimento; saio com área. Entro com o raio; saio com Superfície e Volume! E também a função que cria um vetor v(i) é muito esclarecedora!
A highly useful lecture for me! Thank you sir
Can I use scilab in visual studio with c#.
do you know to find significant figures by scilab?
hi there
i m facing problem in putting variables in function.
//Theoretical air Required//
function TA=TheroticalAirrequired(C,H,O,S)
TA=[11.6*C +{34.8*(H-(O/8))}+4.35*S]/100;
endfunction
TheroticalAirrequired(36,2.6,7.3,0.6)
Undefined variable: TheroticalAirrequired
Helpful for students like me
great work. Appreciations
amazing lecture for me
Thank you. Very helpful for beginners like me.
You're welcome. Happy to help.
would you tell me please. how can I find roots of function which had been taken with function "derivat"?
Thanks bro..
As you have defined the sphere() function results as Sur,Vol (from left to right), why does Scilab return them in reverse order? (ie. vol, then sur, in the output)
Probably just a matter of convention. Disclaimer: I haven't used Scilab in ages, so that could have changed now.
Thanks a lot
You have nice collection of game Manas!! :D
Is there any way where I declare one output variable in the square bracket but not defining the other one and the getting the result?
+Savio Fernandes yeah i guess you could define a function such as this:
deff('[a,b]=f(x)','a=x');
and then you could simply call it by:
f(5)
and you would get the answer that is 5.
Note: This would only work if you have defined the value for the first output variable.
If I make the definition as :
deff('[a,b]=f(x)','b=x');
and now if you call it by:
f(3) then you would get an error
+Savio Fernandes Also, if you define a function as :
deff('[a,b]=f(x)','a=x');
and then call it by:
[a,b]=f(7) then also you would get an error.
Note: if you are curious then you should probably check these videos on functions:
1. ruclips.net/video/O5h8nhDeJwU/видео.html (for defining function using deff)
2. ruclips.net/video/vliMutqXKF8/видео.html (this video is for variable no. of input arguments however you could apply the same logic for output variables)
Thank you Sir, it will be of great use to me.
how can i Write a script to display the Pascal’s Triangle
Thank you sir
Can you send me program for solution of second order differential equation harmonic oscillator?
Nice and clear thanks!
+WmTyndale appreciate it.
how to clear D....if we are getting D in answer???????????
Its fine.
how can i show for the user the result of the funciona?
+Victor Melo first of all you need to define a function as shown in the video above.
Then execute it. Once executed you can call it from the console.
Let's say the function is sum(x,y). To call it from the console you need to type 'sum(2,4)' where 2&4 are the values for the arguments x & y. Do you get it???
I want to write a program that right after I put the values on input will show me the values of my function. That's a exercise of my College. Thank you for the answer!
okay. So as far as I understand, what you want is that let's say you need to make a program that calculates the are of a rectangle.
And I guess you want the output to look like the following:
Enter breadth: 5
Enter Length: 6
Area is : 30
If you want something like that then you shoud just write a normal program without a function. You can use the 'input' function of scilab to ask for the values from user and then use the 'disp' function of Scilab to display the result.
I hope that's what you wanted. And I'm sorry if this is not the answer you're looking for.
+Physics Tutorials i know that's useless but it's in my test, anyway thank you!
Thank You
😊✌
Thanks for your video. By the way, I wanna say you also play win 11, yes? hahaha
What's win 11?
Phys Whiz it's a soccor game produced by Konami.
@@YS-fh4mpDo you mean Winning 11
Phys Whiz yes😄
Sir viva question