Difference between revisions of "Scilab/C2/Scripts-and-Functions/Khasi"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "{| border = 1 |'''Time''' |'''Narration''' |- | 00:01 | Ngi pdiangsngewbha ia phi sha ka Spoken tutorial halor ka '''Scripts and Functions''' bad ka Scilab. |- | 00:06 | To ng...")
 
 
Line 109: Line 109:
 
|-
 
|-
 
| 04:47
 
| 04:47
| Shisien ba ka function la dep load, lah ban khot ia ka kum kiwei ki Scilab function da kaba pass ia ki specific arguments sha ka function.
+
| Shisien ba ka function lah dep load, lah ban khot ia ka kum kiwei ki Scilab function da kaba pass ia ki specific arguments sha ka function.
 
|-
 
|-
 
| 04:56
 
| 04:56
Line 229: Line 229:
 
|-
 
|-
 
| 11:23
 
| 11:23
| Ki files ba don ka '''.sce''' file extension kidei ki script files kiba don ia ki Scilab commands kiba phi pyndap ha ka por ka Scilab session ba long interactive.
+
| Ki files ba don ka '''.sce''' file extension kidei ki script files kiba don ia ki Scilab commands kiba phi pyndap ha ka por ba ka Scilab session ba long interactive.
 
|-
 
|-
 
| 11:35
 
| 11:35

Latest revision as of 20:51, 15 September 2017

Time Narration
00:01 Ngi pdiangsngewbha ia phi sha ka Spoken tutorial halor ka Scripts and Functions bad ka Scilab.
00:06 To ngin sdang da ka lamphrang ba lyngkot sha ki file formatsha Scilab.
00:12 Haba shibun tylli ki commands ki dei ban shah execute, ka lah ban long kaba biang ban thoh ia kine ki statements ha ka file da ka Scilab editor.
00:21 Kine la khot kum ki SCRIPT files.
00:24 Ban execute ia ki commands ba la thoh ha kum kata ka script file, ka exec function lah ban pyndonkam bud da ka kyrteng jong ka script file.
00:34 Kine ki file kham bunsien ki don ia ka extension .sce lane .sci, katkum ka content jong ka.
00:42 Ki files ba don ia ka .sci extension ki kynthup ia ka Scilab function bad lane ki user defined functions.
00:51 Da kaba execute ia kine ki files ka load ia ki functions sha ka Scilab environment (tangba kam execute ia ki), katba
01:00 Ki files ba don ia ka .sce extension ki lah ban kynthup ia ka Scilab function bad User defined functions.
01:08 Sngewbha kynmaw ba ka rukom ban jer kyrteng ia ka extension kum .sce bad .sci kim dei ki kyndon tangba ka rukom ba la bud da ka scilab community.
01:21 To ngin plie ia ka Scilab console window ha ka computer.
01:27 Check ha ka directory ba phi treikam mynta da kaba type ia ka command pwd ha ka command prompt.
01:35 Leit sha ka Task bar jong ka scilab console window bad nion ha ka Editor opshon ban plie ia ka scilab editor.
01:49 Nga la dep type lypa ia ki commands ha ka file bad save ia ka kum helloworld.sce, kumta ngan plie ia kata ka file da kaba pyndonkam ia ka Open a file shortcut icon.
02:03 Jied helloworld.sce file bad nion ha Open.
02:10 Phi lah ban type ia ki commands ha ka file ba thymmai bad save ia kane ka file sha ka directory ba phi treikam mynta kum helloworld.sce lyngba ka File menu.
02:20 Leit sha u Execute button ha ka scilab editor menu bar bad jied Load into Scilab opshon.
02:29 Kane kan sa load ia ka file sha ka scilab console.
02:34 Hadien ba la dep load ia ka file ha ka console ka script ka pynmih ia ka output kumba phi iohi.
02:43 Ka don ia baroh artylli ki commands bad ka resulting output na ka bynta ki commands.
02:49 Mynta change ia u value jong u a sha 1.
02:55 Ha ka editor , leit sha ka File menu bad nion ha Save
03:02 Ngi lah ruh ban execute ia ka script na ka scilab interpreter da kaba pyndonkam ia ka exec command bad ai ia ka path sha ka script file kum:
03:12 exec into brackets into double quotes helloworld.sce, kata kadei ka file name, bad nion Enter.
03:31 Ka script file ka pynmih ia ka output kaba iasyriem da kaba pyndonkam ia ka exec function.
03:37 To ngin iakren mynta shaphang ki functions.
03:39 Ka function definition ka sdang da ka keyword function bad ka kut da ka keyword endfunction.
03:46 Nga la dep save lypa ia ka function file ha function.sci,, da kaba pyndonkam ia ka scilab editor.
03:57 Ngan plie ia ka file.
04:03 Kumba phi iohi, ka function la define hangne.
04:08 Ha kine, degrees kadei ka output parameter bad radians kadei ka input parameter.
04:21 Sha ka function ba kyrteng radians2degrees.
04:26 Ngan load ia kane ka function ha Scilab, da kaba pyndonkam ia ka Execute menu option.
04:40 Ka function mynta lah load ha ka scilab console.
04:44 Lah ruh ban load ia ka da kaba pyndonkam ia ka exec command.
04:47 Shisien ba ka function lah dep load, lah ban khot ia ka kum kiwei ki Scilab function da kaba pass ia ki specific arguments sha ka function.
04:56 Buh ia ka jingkynmaw jong u percent sign (%) bad kynmaw ia ka daw jong ka jingpyndonkam ia u.
05:02 Mynta to ngin wad ia ki values na ka bynta radians2degrees jong  %pi/2 bad radians2degrees jong (%pi/4).
05:17 percent pi/2 bad radians2degrees percent pi by 4 (%pi/4).
05:28 Mynta ngin ia peit ia ka function kaba palat ban ia kawei ka input bad output arguments.
05:33 Kane ka function kan shim ia ki polar coordinates kum input argument bad pynphai rectangular coordinates kum output arguments.
05:44 Ngan plie ia ka file kaba nga la dep type lypa.
05:51 Hangne phin iohi x bad y kidei ki output parameters bad r bad theta kidei ki input parameters sha ka function polar2rect.
06:06 Ngan load ia kane ka function ha scilab da kaba pyndonkam ia ka exec option.
06:21 Shisien ba ka function la dep load, ngi donkam ban call ia ka function. Kane ka function ka donkam artylli ki input arguments bad artylli ki output arguments.
06:31 Kumta, r = 2,
06:37 theta = 45;
06:44 Bad mynta ngin call ia u x1 comma y1, output parameters, is equal to kyrteng jong ka function polar2rect into bracket r comma theta bad nion Enter.
07:25 Phin iohi ia u value jong x1 bad y1.
07:29 Kawei na ki features ba sngewkhring jong ka Scilab kadei, phi lah ban define bun tylli ki number jong ki functions ha kawei ka .sci file.
07:38 Ha ka por ba phi leh ia kane ,sngewbha kynmaw ba kumba ka long hi baroh ki variables ba la define ha ka function kidei local , scope jong kine ki variables ba pyndonkam ha ki katno katne ki function ki kut da ka endfunction keyword jong ka function definition.
07:55 Ka jingmyntoi jong kane ka feature kadei , ngi lah ban pyndonkam ia ki juh ki kyrteng jong ki variables ha kiwei pat ki function.
08:05 Kine ki variables kin nym iakhleh lang lada ngim pyndonkam ia ka global option.
08:10 Ban tip khambun shaphang ki global variables, type help global.
08:18 Sngewbha kynmaw ba lada uno uno u variable u donkam ban "watched" lane peit hapoh jong ka function te ka disp ka donkam.
08:26 Hapoh jong ka function file, phi lah ban check na ka bynta ialade ka jingktah jong ka jingbuh ia u semicolon ( ; ) ha kaba kut jong ka statement.
08:34 Kumjuh ruh check ia kane na ka bynta ki disp statements.
08:38 Inline Functions: Functions kidei ki segments jong u code uba la don ia ki input bad output ba la define bha bad kumjuh ruh ki local variables.
08:46 Ka rukom kaba suk tam ban define ia ka function kadei da kaba pyndonkam ia ka command `deff.
08:53 Scilab ka ailad ia ka jingshna jong ki in-line functions bad ki long kiba iarap bha haba ka body jong ka function ka lyngkot.
09:02 Kane lah ban leh da ka jingiarap jong ka function deff().
09:07 Ka shim artylli ki string parameters.
09:10 U string ba nyngkong u define ia ka interface sha ka function bad u string ba ar u define ia ki statements jong ka function.
09:19 Ka deff command ka define ia ka function ha ka Scilab bad kumjuh ruh ka load ruh ia ka.
09:26 Kam donkam ban load ia ka function ba la define da kaba pyndonkam ia ka deff command lyngba ka menu opshon.
09:34 To ngin peit ia ka nuksa ban batai ia kane ka concept.
09:41 Ngan plie ia ka file inline.sci ha kaba nga la dep thoh ia ka inline function.
09:51 Ngan resize ia ka editor window.
09:57 Kumba la batai hashwa, u string banyngkong u define ia ka function declaration bad u string ba ar u define ia ki statements jong ka function.
10:13 Ngin load ia kane ka function ha Scilab editor bad pyndonkam ia ka ban wad ia ki values jong degrees2radians jong 90 bad degrees2radians jong 45.
10:54 Ka function kadei ban call, ym tang ia kiwei ki functions ba hapoh jong ka, bad kumjuh ruh itself.
11:00 Kane ka dei ka recursive calling jong ka function.
11:03 Kane ka long kaba donkam, kum ka nuksa, haba thoh ia ka function ban calculate ia u factorial jong u integer.
11:10 To ngin pyniar ia kane ka jingbatai halor ki file formats ha Scilab:
11:14 Kumba la batai hashwa, Scilab ka pyndonkam ar tylli ki jait jong ki file formats, kita kidei .sce file format bad ka .sci file formats.
11:23 Ki files ba don ka .sce file extension kidei ki script files kiba don ia ki Scilab commands kiba phi pyndap ha ka por ba ka Scilab session ba long interactive.
11:35 Ki lah ban don ia ki comment lines ba pyndonkam ha kaban document ia ka function bad ki lah ruh ban pyndonkam ia ka command exec ban execute ia ka script.
11:52 Ki files ba don ia ka .sci file extension ki dei ki function files ba sdang da ka function statement.
12:00 Kawei ka .sci file ka lah ban don ia bun tylli ki function definitions kiba halade ki don ia bun tylli ki Scilab statements, kiba leh ia ki operations ha ki function arguments lane ha ki input variables, hadien ba la dep evaluate ia ki.
12:20 Da kane ngi la poi sha kaba kut jong kane ka spoken tutorial halor ka Scripts and Functions ha Scilab.
12:25 Don shibun kiwei pat ki functions ha Scilab kiba ngin sa iapeit ha kiwei ki spoken tutorials.
12:31 Iai peit ia ki Scilab links.
12:33 Kane ka spoken tutorial : la shna da ka Free and Open Source Software in Science and Engineering Education (FOSSEE).
12:40 Kham bun ki jingtip halor ka FOSSEE project lah ban ioh na http://fossee.in or http://scilab.in
12:50 Bad la kyrshan da ka National Mission on Eduction lyngba ka ICT, MHRD, Sorkar India.
12:56 Na ka bynta khambun ki jingtip , sngewbha leit sha: http://spoken-tutorial.org/NMEICT-Intro.
13:06 Nga i Meboreen na Shillong , nga pynkut ia kane.
13:10 Khublei shibun ia ka jingsnohkti lang jong phi.

Contributors and Content Editors

Meboreen Mary