Dataset Viewer
Auto-converted to Parquet
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
214
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
6
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
21 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
141k
586M
star_events_count
int64
0
30.4k
fork_events_count
int64
0
9.67k
gha_license_id
stringclasses
8 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
50 values
src_encoding
stringclasses
23 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
5
10.4M
extension
stringclasses
29 values
filename
stringlengths
2
96
content
stringlengths
5
10.4M
621d17edc8c2dfd7fc6971ce40509a846c0a31fc
449d555969bfd7befe906877abab098c6e63a0e8
/2528/CH9/EX9.10/Ex9_10.sce
8619211e50f489ca117dcb2548f890b49a272029
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
362
sce
Ex9_10.sce
// Chapter 9 // determine Output frequency // Page.No-336 // Example9_10 //Figure 9.40 // Given clear;clc; R=10000; //in Ohm printf("\n Value of Assumed resistance is = %.0f Ohm\n",R); // Result Tout=100*10^-6; C=Tout/(1.1*R); printf("\n Value of Capacitance is = %.11f F\n",C); // Result printf("\n The nearst value would be 10nF");
374520e5c7fd88ee1d2ce6ba9e491c5d5a1e82d3
449d555969bfd7befe906877abab098c6e63a0e8
/1529/CH4/EX4.3/4_03.sce
7bafa411aaa8a9e66bc365663607575ddf05c298
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
299
sce
4_03.sce
//Chapter 4, Problem 3 clc; emf=25; //e.m.f V=24; //Voltage I=10; //Current in ampere r=(emf-V)/I; //Calculating internal resistance in ohm printf("Internal resistance of the battery = %f ohm",r);
124fc70b55b191e978e13eb2ac2266aa885a7b68
449d555969bfd7befe906877abab098c6e63a0e8
/3856/CH22/EX22.1/Ex22_1.sce
aac3a010d103ed8fb917599f5499ee524a5e508d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
586
sce
Ex22_1.sce
//Calculate the molar mass of Catalase //Eaxmple 22.1 clc; clear; R=8.314; //Gas constant in J K^-1 mol^-1 T=20+273; //Temperature in K D=4.1*10^-11; //Diffusion coefcient of Catalase (horse liver) in m^2 s^-1 rho=0.998; //Density of water in g ml^-1 s=11.3*10^-13; //Sedimentation coeffcient in s vbar=0.715; //Partial specific volume in ml g^-1 mew=(s*R*T*1000)/((D)*(1-(vbar*rho))); //Molar mass of Catalase in g mol^-1 (1 J=1 kg m^2 s^-2)(The answer vary due to round off error ) printf("Molar mass of Catalase = %.2f*10^5 g mol^-1",mew*10^-5);
08d5ce4a6a332500c4a9cfb0c08b85f424f33aad
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/tweet/bow/bow.3_11.tst
11e1a80c9879706edb542b036ce8d886f0c67684
[]
no_license
mandar15/NLP_Project
3142cda82d49ba0ea30b580c46bdd0e0348fe3ec
1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2
refs/heads/master
2020-05-20T13:36:05.842000
2013-07-31T06:53:59
2013-07-31T06:53:59
6,534,406
0
1
null
null
null
null
UTF-8
Scilab
false
false
33,974
tst
bow.3_11.tst
3 15:0.07692307692307693 17:0.3333333333333333 23:0.2222222222222222 37:0.3333333333333333 82:0.16666666666666666 95:1.0 96:0.16666666666666666 97:0.4 114:0.125 115:1.0 116:2.0 128:0.25 145:1.0 171:0.5 272:1.0 350:0.08333333333333333 531:0.3333333333333333 561:0.5 622:1.0 641:1.0 809:1.0 892:1.0 938:1.0 1168:1.0 1430:1.0 1618:1.0 1742:1.0 1947:0.5 1959:1.0 1992:1.0 2297:1.0 2550:1.0 2721:1.0 3667:1.0 4220:1.0 4227:1.0 3 5:1.0 23:0.3333333333333333 42:1.0 96:0.16666666666666666 97:0.8 100:0.25 105:0.3333333333333333 143:0.3333333333333333 147:0.5 165:0.08333333333333333 171:0.5 177:0.5 219:0.25 368:1.0 373:0.1 622:2.0 644:0.5 897:1.0 1058:1.0 1163:1.0 1618:1.0 1742:1.0 1780:0.5 1867:1.0 1869:1.0 1947:0.5 2188:1.0 2194:1.0 2550:1.0 2886:1.0 2942:1.0 3121:1.0 3183:1.0 3667:1.0 8256:1.0 3 1:0.08333333333333333 4:1.0 5:1.0 6:0.045454545454545456 23:0.1111111111111111 34:0.09090909090909091 37:0.3333333333333333 40:1.0 42:1.0 116:1.0 146:1.0 147:0.5 150:0.02564102564102564 258:1.0 373:0.1 399:0.5 441:0.3333333333333333 517:1.0 667:1.0 1109:1.0 1377:0.5 1438:1.0 1644:0.3333333333333333 2573:1.0 5019:1.0 3 6:0.2727272727272727 15:0.15384615384615385 17:0.3333333333333333 34:0.18181818181818182 42:0.5 56:0.3333333333333333 63:0.3333333333333333 73:1.0 75:0.5 82:0.16666666666666666 105:0.3333333333333333 114:0.125 145:1.0 190:0.5 215:0.16666666666666666 219:0.25 249:0.5 350:0.08333333333333333 477:1.0 534:0.2 1154:1.0 1568:0.5 1993:1.0 2276:0.5 2515:1.0 2599:1.0 2970:1.0 2987:1.0 4003:1.0 4112:2.0 5019:1.0 5058:1.0 7887:1.0 3 5:1.0 23:0.2222222222222222 42:0.5 97:0.4 116:2.0 157:1.0 275:0.5 311:1.0 312:1.0 373:0.1 397:0.5 423:0.3333333333333333 1657:2.0 1698:1.0 1740:1.0 2547:1.0 3000:0.5 3391:1.0 4451:1.0 7014:1.0 3 6:0.045454545454545456 17:0.3333333333333333 23:0.1111111111111111 34:0.09090909090909091 42:0.5 56:0.3333333333333333 97:0.2 114:0.375 143:0.3333333333333333 146:1.0 165:0.08333333333333333 169:1.0 190:0.5 191:0.2 215:0.16666666666666666 219:0.25 261:0.05 409:1.0 644:0.5 1132:1.0 1176:1.0 1319:1.0 1492:1.0 1867:1.0 1993:1.0 2187:1.0 2974:1.0 3171:1.0 5081:1.0 3 5:1.0 6:0.09090909090909091 15:0.07692307692307693 34:0.18181818181818182 37:0.3333333333333333 56:0.3333333333333333 94:0.2222222222222222 96:0.16666666666666666 97:0.4 107:0.5 116:1.0 128:0.25 157:1.0 165:0.08333333333333333 167:1.0 190:1.0 191:0.4 235:1.0 461:1.0 561:0.5 1064:1.0 2524:1.0 3375:1.0 4146:1.0 5627:1.0 5764:1.0 3 4:1.0 6:0.18181818181818182 15:0.23076923076923078 34:0.09090909090909091 37:0.6666666666666666 42:0.5 63:0.3333333333333333 75:0.75 82:0.16666666666666666 98:0.5 150:0.02564102564102564 158:1.0 165:0.08333333333333333 185:0.3333333333333333 189:1.0 191:0.2 206:0.5 281:1.0 295:1.0 311:1.0 319:0.07142857142857142 340:1.0 367:0.5 443:0.3333333333333333 660:1.0 693:1.0 1030:1.0 1033:1.0 1298:1.0 1424:1.0 1719:1.0 2017:1.0 2462:1.0 3605:1.0 4006:1.0 4102:1.0 5095:1.0 3 6:0.045454545454545456 17:0.3333333333333333 34:0.09090909090909091 37:0.3333333333333333 94:0.1111111111111111 95:1.0 96:0.16666666666666666 114:0.25 139:1.0 150:0.07692307692307693 165:0.08333333333333333 206:0.5 238:0.125 295:1.0 320:1.0 409:1.0 443:0.3333333333333333 654:0.14285714285714285 982:1.0 1424:1.0 1947:0.5 2033:1.0 2211:1.0 2320:2.0 3855:1.0 6637:1.0 3 1:0.08333333333333333 34:0.09090909090909091 35:1.0 36:1.0 42:0.5 44:1.0 63:0.3333333333333333 89:1.0 177:0.5 197:0.5 215:0.16666666666666666 311:1.0 314:1.0 417:1.0 496:1.0 654:0.14285714285714285 800:1.0 1671:1.0 2688:1.0 4185:1.0 4370:2.0 3 1:0.08333333333333333 4:1.0 6:0.13636363636363635 23:0.1111111111111111 33:1.0 34:0.09090909090909091 35:1.0 36:1.0 42:0.5 56:0.3333333333333333 146:1.0 181:0.2 307:1.0 550:1.0 647:0.3333333333333333 1266:1.0 1616:1.0 1671:1.0 2231:1.0 2444:1.0 2462:1.0 2609:1.0 5801:1.0 6370:1.0 7351:1.0 7387:1.0 3 6:0.045454545454545456 17:0.3333333333333333 34:0.2727272727272727 37:0.6666666666666666 42:1.0 56:0.3333333333333333 63:0.3333333333333333 96:0.16666666666666666 107:0.5 146:1.0 150:0.02564102564102564 191:0.4 201:0.5 206:0.5 219:0.25 231:1.0 388:1.0 424:1.0 443:0.3333333333333333 461:1.0 473:0.5 563:1.0 728:1.0 892:1.0 1139:0.5 1147:1.0 1161:0.5 1267:1.0 1404:1.0 1422:1.0 1438:1.0 1538:1.0 2041:1.0 2331:1.0 2376:1.0 2409:1.0 2695:1.0 3567:1.0 3661:1.0 5559:1.0 6315:1.0 8588:1.0 3 6:0.045454545454545456 14:0.07142857142857142 15:0.15384615384615385 56:0.3333333333333333 63:0.3333333333333333 82:0.16666666666666666 97:0.2 100:0.25 191:0.2 219:0.25 261:0.05 287:1.0 320:1.0 373:0.1 399:0.5 477:1.0 507:1.0 728:1.0 817:1.0 872:1.0 1399:1.0 1693:1.0 1790:1.0 2695:1.0 3128:1.0 3216:1.0 3255:1.0 3659:1.0 3661:1.0 7335:1.0 7681:1.0 3 1:0.08333333333333333 5:1.0 6:0.09090909090909091 17:0.6666666666666666 23:0.1111111111111111 33:1.0 34:0.09090909090909091 35:1.0 36:1.0 37:0.3333333333333333 115:1.0 140:0.5 191:0.2 204:1.0 416:0.25 417:1.0 443:0.3333333333333333 473:0.25 646:1.0 1126:1.0 1181:1.0 2557:1.0 2801:1.0 3515:1.0 3870:1.0 4049:1.0 4651:1.0 3 6:0.045454545454545456 17:0.3333333333333333 34:0.09090909090909091 37:0.3333333333333333 96:0.16666666666666666 106:1.0 128:0.25 201:0.5 223:2.0 327:0.16666666666666666 441:0.3333333333333333 442:1.0 443:0.3333333333333333 531:0.6666666666666666 561:0.5 654:0.14285714285714285 689:1.0 850:1.0 1075:1.0 1217:1.0 1275:1.0 1426:1.0 1428:1.0 1438:1.0 1936:1.0 2294:1.0 3686:1.0 3981:1.0 4109:1.0 4341:1.0 4532:1.0 4911:1.0 6370:1.0 6579:1.0 8812:1.0 3 5:2.0 34:0.09090909090909091 51:0.5 56:0.3333333333333333 63:0.3333333333333333 88:1.0 94:0.1111111111111111 98:0.5 102:0.5 107:0.5 127:1.0 167:1.0 173:1.0 185:0.3333333333333333 191:0.4 215:0.16666666666666666 222:0.5 223:1.0 226:0.5 353:1.0 373:0.1 438:0.16666666666666666 480:1.0 482:1.0 598:1.0 646:1.0 689:1.0 737:1.0 829:1.0 1693:1.0 1716:1.0 1867:1.0 3175:1.0 3770:0.5 3828:1.0 4497:1.0 5334:1.0 5770:1.0 3 5:1.0 6:0.09090909090909091 17:0.3333333333333333 34:0.09090909090909091 42:0.5 56:0.3333333333333333 82:0.16666666666666666 96:0.16666666666666666 97:0.2 102:0.5 108:0.3333333333333333 129:1.0 150:0.02564102564102564 165:0.08333333333333333 191:0.2 210:1.0 339:1.0 350:0.08333333333333333 454:1.0 488:2.0 561:0.5 595:1.0 597:1.0 689:1.0 816:0.5 1295:0.3333333333333333 1404:1.0 1669:1.0 1867:1.0 1885:1.0 2123:1.0 2538:1.0 3197:1.0 3593:1.0 3671:1.0 3686:1.0 4497:1.0 5770:1.0 7305:1.0 3 6:0.09090909090909091 94:0.1111111111111111 147:1.0 311:1.0 425:1.0 511:0.5 1127:1.0 1571:1.0 2856:1.0 3259:1.0 3 6:0.045454545454545456 16:0.16666666666666666 56:0.3333333333333333 60:1.0 82:0.16666666666666666 97:0.2 128:0.25 150:0.02564102564102564 155:0.08333333333333333 163:1.0 226:0.25 281:1.0 327:0.16666666666666666 336:0.5 399:0.5 473:0.25 1904:1.0 2055:1.0 2607:1.0 2721:1.0 2973:1.0 3663:1.0 4237:1.0 4246:1.0 4404:1.0 3 1:0.08333333333333333 5:2.0 6:0.09090909090909091 34:0.09090909090909091 42:0.5 45:1.0 75:0.25 89:1.0 120:1.0 150:0.05128205128205128 275:0.5 327:0.16666666666666666 353:1.0 367:0.5 441:0.3333333333333333 448:1.0 929:1.0 1127:1.0 1241:0.5 1382:0.5 1671:2.0 2015:0.25 2158:1.0 2313:1.0 2370:1.0 2530:1.0 2770:1.0 3392:1.0 3817:2.0 4051:1.0 4523:1.0 3 5:3.0 6:0.045454545454545456 14:0.07142857142857142 51:0.25 56:0.3333333333333333 73:1.0 94:0.1111111111111111 114:0.125 135:0.3333333333333333 138:0.14285714285714285 146:1.0 147:0.5 150:0.02564102564102564 169:1.0 185:0.3333333333333333 275:0.5 359:0.3333333333333333 367:0.5 379:1.0 427:0.5 483:1.0 531:0.3333333333333333 536:1.0 549:0.5 583:2.0 609:1.0 661:1.0 747:0.5 846:1.0 897:1.0 1035:1.0 1295:0.3333333333333333 1397:1.0 1412:1.0 1426:1.0 1671:1.0 2082:1.0 2721:1.0 2789:1.0 2819:1.0 3794:1.0 4054:1.0 4261:1.0 4463:1.0 4465:1.0 4480:1.0 4635:1.0 3 1:0.08333333333333333 5:4.0 15:0.3076923076923077 34:0.09090909090909091 37:0.3333333333333333 42:1.0 56:0.3333333333333333 73:1.0 82:0.5 123:1.0 128:0.25 180:1.0 191:0.2 261:0.05 286:1.0 287:1.0 350:0.08333333333333333 373:0.1 405:1.0 411:1.0 461:1.0 473:0.5 477:1.0 483:1.0 878:1.0 1095:1.0 1753:1.0 1910:1.0 2078:1.0 2295:0.5 2313:1.0 2941:1.0 2980:1.0 4723:1.0 5070:1.0 5382:1.0 7778:1.0 3 5:1.0 6:0.045454545454545456 15:0.3076923076923077 17:0.3333333333333333 23:0.1111111111111111 35:1.0 42:3.5 53:1.0 82:0.3333333333333333 96:0.16666666666666666 97:0.2 135:0.3333333333333333 155:0.08333333333333333 181:0.2 249:0.5 251:0.5 270:1.0 272:0.5 289:1.0 441:0.3333333333333333 443:0.3333333333333333 534:0.6 560:1.0 561:0.5 577:1.0 615:1.0 644:0.5 717:0.5 735:1.0 1035:1.0 1160:1.0 1445:0.5 1473:1.0 1474:1.0 1538:1.0 1655:1.0 1719:1.0 1868:1.0 1992:1.0 2263:0.3333333333333333 2582:1.0 2751:1.0 2752:1.0 2776:1.0 2821:1.0 3096:1.0 3144:1.0 3146:1.0 3628:2.0 3832:1.0 5378:0.5 5669:1.0 7097:1.0 8548:1.0 9088:1.0 3 5:3.0 6:0.045454545454545456 15:0.07692307692307693 23:0.2222222222222222 34:0.2727272727272727 56:0.3333333333333333 63:0.3333333333333333 64:0.3333333333333333 71:1.0 73:1.0 82:0.16666666666666666 96:0.16666666666666666 97:0.2 116:1.0 143:0.3333333333333333 147:0.5 169:1.0 176:0.5 185:0.3333333333333333 191:0.4 201:0.5 245:0.5 281:1.0 319:0.07142857142857142 410:1.0 443:0.3333333333333333 499:1.0 587:1.0 613:1.0 644:0.5 763:1.0 840:1.0 1102:1.0 1219:0.5 1690:1.0 1710:0.5 1910:1.0 2015:0.25 2045:1.0 2721:1.0 3064:1.0 3552:1.0 3584:1.0 3636:1.0 4306:1.0 5260:1.0 6212:1.0 7101:1.0 3 5:1.0 6:0.13636363636363635 14:0.07142857142857142 23:0.1111111111111111 97:0.2 165:0.08333333333333333 169:1.0 191:0.2 220:1.0 241:1.0 328:1.0 397:0.5 424:1.0 473:0.25 533:0.25 1275:1.0 1700:1.0 2018:1.0 2235:1.0 3639:1.0 3840:1.0 3842:1.0 4385:1.0 5529:1.0 8056:1.0 3 5:2.0 6:0.22727272727272727 15:0.15384615384615385 17:0.3333333333333333 23:0.1111111111111111 34:0.18181818181818182 42:0.5 45:1.0 82:0.16666666666666666 89:1.0 96:0.16666666666666666 97:0.4 140:1.0 150:0.02564102564102564 327:0.16666666666666666 339:1.0 410:1.0 430:1.0 443:0.3333333333333333 473:0.25 623:1.0 927:1.0 1397:1.0 1399:1.0 1655:1.0 2716:1.0 2992:1.0 5748:1.0 6389:1.0 8204:1.0 3 5:1.0 23:0.1111111111111111 42:1.0 89:1.0 97:0.2 135:0.3333333333333333 143:0.3333333333333333 147:1.0 150:0.07692307692307693 155:0.08333333333333333 165:0.08333333333333333 215:0.16666666666666666 327:0.16666666666666666 350:0.08333333333333333 359:0.3333333333333333 367:0.5 379:1.0 473:0.25 583:1.0 717:0.5 747:0.5 857:1.0 879:1.0 1180:1.0 1436:1.0 1637:1.0 2518:1.0 2672:1.0 4492:1.0 8769:1.0 3 1:0.25 5:1.0 23:0.2222222222222222 34:0.09090909090909091 36:1.0 96:0.16666666666666666 97:0.6 150:0.05128205128205128 215:0.16666666666666666 409:1.0 423:0.3333333333333333 617:1.0 695:1.0 941:1.0 1293:1.0 1295:0.3333333333333333 1568:0.5 2183:1.0 3123:1.0 3405:1.0 3543:1.0 3 1:0.16666666666666666 4:2.0 6:0.045454545454545456 17:0.6666666666666666 33:1.0 56:0.6666666666666666 75:0.25 81:1.0 97:0.2 105:0.3333333333333333 114:0.375 169:1.0 180:1.0 190:0.5 223:1.0 289:1.0 300:1.0 327:0.16666666666666666 399:0.5 473:0.5 482:1.0 491:1.0 511:0.5 587:1.0 615:1.0 790:1.0 1123:0.5 1154:1.0 1241:0.5 1275:1.0 1389:0.5 1959:2.0 2178:1.0 3437:1.0 3947:1.0 6816:1.0 3 1:0.08333333333333333 5:1.0 15:0.07692307692307693 17:0.3333333333333333 23:0.1111111111111111 34:0.09090909090909091 35:1.0 36:1.0 37:0.3333333333333333 42:0.5 60:1.0 73:1.0 82:0.3333333333333333 190:0.5 215:0.16666666666666666 228:0.5 235:1.0 340:1.0 423:0.3333333333333333 496:1.0 664:1.0 714:0.5 769:1.0 1423:0.5 1538:1.0 1655:1.0 8497:1.0 3 15:0.07692307692307693 25:0.5 42:1.0 56:0.3333333333333333 95:1.0 145:1.0 223:1.0 319:0.07142857142857142 443:0.3333333333333333 531:0.3333333333333333 534:0.2 566:1.0 595:1.0 618:1.0 622:1.0 623:1.0 671:0.5 795:1.0 1295:0.3333333333333333 1407:1.0 1853:1.0 1998:0.5 2532:1.0 4616:1.0 4877:1.0 7305:1.0 3 1:0.08333333333333333 5:1.0 6:0.045454545454545456 15:0.15384615384615385 16:0.16666666666666666 34:0.09090909090909091 56:0.3333333333333333 82:0.16666666666666666 88:1.0 114:0.125 123:1.0 138:0.14285714285714285 243:1.0 261:0.05 275:0.5 386:0.5 511:0.5 857:1.0 1009:1.0 1032:2.0 1155:1.0 1244:1.0 1295:0.3333333333333333 1433:1.0 1998:0.5 2353:1.0 2609:1.0 3800:1.0 4540:1.0 5449:1.0 3 1:0.08333333333333333 5:2.0 6:0.045454545454545456 11:1.0 42:0.5 51:0.25 56:0.3333333333333333 128:0.5 146:1.0 147:0.5 150:0.02564102564102564 155:0.08333333333333333 181:0.4 185:0.3333333333333333 226:0.5 284:1.0 327:0.16666666666666666 350:0.08333333333333333 409:1.0 443:0.3333333333333333 473:0.25 588:1.0 714:0.5 1105:1.0 1109:1.0 1202:1.0 1225:1.0 1349:1.0 1538:1.0 1655:1.0 1768:1.0 1939:1.0 2059:1.0 2409:1.0 2553:1.0 2910:1.0 2930:1.0 3085:1.0 5640:1.0 3 37:0.3333333333333333 56:0.3333333333333333 97:0.4 147:1.0 235:1.0 261:0.05 266:0.5 272:0.5 287:1.0 340:1.0 375:0.5 785:1.0 1109:2.0 2716:1.0 3270:1.0 3976:1.0 3 6:0.045454545454545456 15:0.15384615384615385 17:0.6666666666666666 37:0.6666666666666666 42:0.5 73:1.0 114:0.125 147:0.5 169:1.0 206:0.5 261:0.05 295:1.0 542:0.5 615:1.0 911:1.0 1109:1.0 1354:0.5 1448:1.0 1538:1.0 1572:1.0 1655:1.0 1826:1.0 2378:0.3333333333333333 2524:1.0 3539:1.0 5645:1.0 7407:1.0 8307:1.0 3 4:1.0 5:1.0 15:0.15384615384615385 23:0.1111111111111111 42:1.0 73:1.0 97:0.4 150:0.05128205128205128 164:1.0 169:1.0 171:1.0 190:0.5 204:1.0 215:0.16666666666666666 226:0.25 261:0.05 484:1.0 681:0.25 785:1.0 794:1.0 911:1.0 1126:1.0 1261:1.0 1785:1.0 1947:0.5 2723:1.0 3332:1.0 3473:1.0 4782:1.0 8588:1.0 8744:1.0 3 4:1.0 5:1.0 6:0.13636363636363635 34:0.09090909090909091 42:1.0 56:0.3333333333333333 63:0.3333333333333333 82:0.16666666666666666 95:1.0 105:0.3333333333333333 107:0.5 135:0.3333333333333333 192:1.0 261:0.05 327:0.16666666666666666 376:1.0 473:0.5 488:1.0 531:0.6666666666666666 534:0.6 542:0.5 561:1.0 785:1.0 1241:0.5 1261:1.0 1780:0.5 2614:1.0 3790:1.0 3838:1.0 4182:1.0 6589:1.0 3 6:0.09090909090909091 34:0.09090909090909091 42:0.5 69:0.5 114:0.125 117:0.05 143:0.3333333333333333 146:1.0 147:0.5 165:0.08333333333333333 170:1.0 253:1.0 261:0.05 279:1.0 336:0.5 350:0.08333333333333333 484:1.0 587:1.0 892:1.0 908:1.0 1351:1.0 1382:0.5 1487:1.0 2221:1.0 2263:0.3333333333333333 5030:1.0 5659:1.0 3 1:0.08333333333333333 5:1.0 15:0.15384615384615385 30:0.5 37:0.6666666666666666 64:0.3333333333333333 69:0.5 88:1.0 116:1.0 128:0.25 146:1.0 147:0.5 165:0.08333333333333333 228:0.5 284:1.0 299:1.0 350:0.08333333333333333 373:0.2 452:1.0 484:1.0 488:1.0 561:0.5 587:1.0 747:0.5 1003:1.0 1091:1.0 1326:1.0 1327:1.0 1885:1.0 1936:1.0 2243:1.0 2403:1.0 2626:1.0 3584:1.0 3 1:0.08333333333333333 6:0.045454545454545456 23:0.1111111111111111 34:0.09090909090909091 42:0.5 49:1.0 56:0.3333333333333333 82:0.5 96:0.16666666666666666 106:3.0 139:1.0 145:1.0 146:1.0 162:1.0 165:0.16666666666666666 169:1.0 188:1.0 189:1.0 328:1.0 353:1.0 393:0.2 443:0.3333333333333333 488:1.0 524:1.0 618:1.0 644:0.5 671:0.5 892:1.0 1075:1.0 1103:0.5 1241:0.5 1275:1.0 1681:1.0 1780:0.5 1885:1.0 1923:1.0 2591:0.3333333333333333 2807:1.0 4462:1.0 5812:1.0 3 5:1.0 6:0.045454545454545456 14:0.07142857142857142 34:0.09090909090909091 42:0.5 82:0.3333333333333333 96:0.16666666666666666 102:0.5 201:0.5 204:1.0 223:1.0 373:0.1 441:0.3333333333333333 461:1.0 1003:1.0 1220:1.0 1278:1.0 1572:1.0 1596:1.0 2068:1.0 2441:1.0 2591:0.3333333333333333 4965:1.0 6516:1.0 3 4:1.0 14:0.07142857142857142 69:0.5 82:0.16666666666666666 138:0.14285714285714285 169:1.0 170:1.0 204:1.0 206:0.5 219:0.25 255:1.0 367:0.5 756:1.0 1936:1.0 2539:1.0 7753:1.0 3 6:0.045454545454545456 14:0.07142857142857142 15:0.07692307692307693 37:0.3333333333333333 49:1.0 97:0.2 105:0.3333333333333333 138:0.14285714285714285 177:0.5 215:0.16666666666666666 224:1.0 424:1.0 443:0.3333333333333333 542:0.5 858:1.0 930:1.0 2474:1.0 2591:0.3333333333333333 3 5:1.0 6:0.045454545454545456 14:0.07142857142857142 42:0.5 82:0.16666666666666666 146:1.0 228:0.5 505:1.0 573:1.0 1091:1.0 1199:1.0 1538:1.0 1847:1.0 3605:1.0 3 5:2.0 6:0.045454545454545456 69:0.5 95:1.0 106:1.0 114:0.125 135:0.3333333333333333 147:0.5 261:0.05 336:0.5 353:1.0 534:0.2 955:1.0 1057:1.0 1087:1.0 1104:1.0 1430:1.0 2030:1.0 3550:1.0 3584:1.0 3849:1.0 7279:1.0 3 15:0.07692307692307693 17:0.3333333333333333 23:0.1111111111111111 42:0.5 82:0.3333333333333333 97:0.2 108:0.3333333333333333 134:1.0 139:1.0 154:1.0 155:0.25 201:0.5 215:0.5 272:0.5 338:1.0 359:0.3333333333333333 440:0.5 482:1.0 560:1.0 1040:1.0 1219:0.5 1241:0.5 3 6:0.13636363636363635 15:0.07692307692307693 17:0.3333333333333333 63:0.3333333333333333 73:1.0 105:0.6666666666666666 108:0.3333333333333333 167:1.0 215:0.16666666666666666 253:1.0 295:1.0 305:1.0 328:1.0 359:0.3333333333333333 407:0.5 441:0.3333333333333333 461:1.0 522:1.0 615:1.0 958:1.0 959:1.0 960:1.0 1045:1.0 1275:1.0 1423:0.5 1445:0.5 1464:1.0 1569:0.3333333333333333 1621:1.0 1671:1.0 2175:0.5 2282:1.0 3013:1.0 3535:1.0 4774:1.0 5934:1.0 6536:1.0 3 5:2.0 6:0.045454545454545456 26:1.0 34:0.09090909090909091 37:0.3333333333333333 42:1.0 56:0.3333333333333333 63:0.3333333333333333 64:0.3333333333333333 69:0.5 108:0.3333333333333333 146:1.0 150:0.05128205128205128 169:1.0 181:0.2 215:0.16666666666666666 359:1.0 443:0.3333333333333333 558:1.0 681:0.25 696:1.0 768:0.5 1006:1.0 1215:1.0 1521:1.0 1651:0.5 1923:1.0 1929:1.0 1939:1.0 2683:0.3333333333333333 2770:1.0 2942:1.0 3151:1.0 3379:1.0 4076:1.0 4104:1.0 8516:1.0 3 34:0.09090909090909091 37:0.3333333333333333 42:1.0 54:0.5 56:0.3333333333333333 63:0.3333333333333333 64:0.6666666666666666 75:0.25 82:0.16666666666666666 108:0.3333333333333333 150:0.05128205128205128 169:1.0 181:0.2 201:0.5 250:1.0 251:0.5 350:0.08333333333333333 359:0.6666666666666666 373:0.1 399:0.5 443:0.3333333333333333 447:0.5 511:0.5 681:0.25 768:0.5 795:1.0 1058:1.0 1192:1.0 1332:1.0 1582:1.0 1923:1.0 1929:1.0 2016:1.0 2770:1.0 2942:1.0 4076:1.0 4242:1.0 8516:1.0 3 34:0.09090909090909091 82:0.16666666666666666 97:0.2 143:0.3333333333333333 145:1.0 150:0.05128205128205128 238:0.125 328:1.0 329:0.5 367:0.5 370:0.5 664:1.0 1097:1.0 1296:1.0 1669:1.0 1929:1.0 2370:2.0 3663:1.0 6337:0.5 3 5:3.0 6:0.09090909090909091 15:0.15384615384615385 23:0.1111111111111111 34:0.09090909090909091 37:0.6666666666666666 42:0.5 44:1.0 56:0.3333333333333333 64:0.6666666666666666 97:0.2 106:2.0 147:0.5 226:0.25 253:1.0 350:0.08333333333333333 367:0.5 373:0.1 424:1.0 441:0.3333333333333333 449:1.0 473:0.5 488:2.0 545:0.3333333333333333 561:0.5 989:1.0 1143:1.0 1260:0.5 1263:1.0 1452:1.0 1511:1.0 1569:0.3333333333333333 1707:1.0 1867:1.0 2013:1.0 2248:1.0 2288:1.0 2485:1.0 3582:1.0 3745:1.0 6207:1.0 6612:1.0 3 5:2.0 6:0.045454545454545456 42:1.0 69:0.5 73:1.0 97:0.2 106:1.0 108:0.3333333333333333 146:1.0 165:0.08333333333333333 204:1.0 250:1.0 368:1.0 402:1.0 445:1.0 450:1.0 483:1.0 735:1.0 1066:1.0 1161:0.5 1266:1.0 1281:0.5 1386:1.0 1445:0.5 1651:0.5 1847:1.0 1867:2.0 2297:1.0 3121:1.0 3567:1.0 4335:1.0 3 1:0.08333333333333333 3:1.0 5:1.0 6:0.13636363636363635 15:0.07692307692307693 17:0.3333333333333333 34:0.09090909090909091 56:0.3333333333333333 69:0.5 82:0.16666666666666666 98:0.5 106:1.0 114:0.125 123:1.0 139:1.0 146:1.0 162:1.0 165:0.08333333333333333 226:0.25 353:1.0 388:1.0 587:1.0 641:1.0 717:0.5 1057:1.0 1109:1.0 1522:1.0 1743:0.5 2332:1.0 3098:1.0 3661:1.0 4262:1.0 4555:1.0 4853:1.0 4889:1.0 5620:1.0 3 1:0.08333333333333333 5:1.0 6:0.045454545454545456 15:0.23076923076923078 17:0.3333333333333333 23:0.1111111111111111 34:0.09090909090909091 54:0.5 56:0.3333333333333333 74:1.0 75:0.25 82:0.16666666666666666 105:0.3333333333333333 123:1.0 135:0.3333333333333333 147:0.5 169:1.0 219:0.25 238:0.125 260:1.0 326:1.0 394:1.0 418:1.0 460:0.5 509:1.0 553:1.0 566:1.0 573:1.0 695:1.0 1083:1.0 1109:1.0 1221:1.0 1317:1.0 1332:1.0 1333:1.0 1692:1.0 1716:1.0 1717:0.5 2564:1.0 2721:1.0 3330:1.0 4275:1.0 4669:1.0 4703:1.0 5093:1.0 6441:1.0 7884:1.0 3 17:0.3333333333333333 25:0.5 138:0.14285714285714285 284:1.0 1332:1.0 4274:1.0 4275:1.0 3 5:2.0 6:0.045454545454545456 42:1.0 82:0.16666666666666666 98:0.5 102:0.5 150:0.02564102564102564 169:1.0 175:1.0 177:0.5 228:0.5 350:0.08333333333333333 366:1.0 409:1.0 411:1.0 443:0.3333333333333333 648:1.0 768:0.5 1421:1.0 1434:1.0 1671:1.0 1719:1.0 1752:1.0 2694:1.0 3 5:1.0 6:0.045454545454545456 23:0.1111111111111111 37:0.3333333333333333 42:0.5 146:1.0 150:0.02564102564102564 165:0.08333333333333333 169:1.0 191:0.4 347:1.0 350:0.08333333333333333 393:0.2 473:0.5 484:1.0 534:0.2 609:1.0 716:1.0 776:1.0 908:1.0 2532:1.0 2614:1.0 2678:0.5 3663:1.0 4571:1.0 7252:1.0 7556:1.0 3 5:2.0 23:0.1111111111111111 42:1.0 49:1.0 56:0.3333333333333333 82:0.3333333333333333 94:0.2222222222222222 98:0.5 128:0.25 131:0.3333333333333333 165:0.08333333333333333 176:0.5 249:0.5 263:1.0 292:1.0 350:0.08333333333333333 366:1.0 367:0.5 373:0.1 411:1.0 441:0.3333333333333333 457:1.0 460:0.5 473:0.5 477:1.0 767:1.0 776:1.0 829:1.0 911:1.0 1580:1.0 1614:1.0 2054:1.0 2729:1.0 3030:1.0 4599:1.0 5389:1.0 6062:1.0 7496:1.0 9019:1.0 3 1:0.16666666666666666 15:0.07692307692307693 17:0.6666666666666666 34:0.18181818181818182 35:1.0 37:0.3333333333333333 56:0.3333333333333333 63:0.3333333333333333 71:1.0 96:0.3333333333333333 97:0.2 143:0.3333333333333333 150:0.05128205128205128 226:0.25 284:1.0 300:1.0 331:1.0 402:1.0 416:0.25 417:1.0 418:1.0 561:0.5 595:1.0 3241:1.0 3998:1.0 4238:1.0 4562:1.0 3 5:1.0 6:0.09090909090909091 17:0.3333333333333333 117:0.05 138:0.14285714285714285 146:1.0 595:1.0 1920:1.0 2138:1.0 2384:0.5 4425:1.0 4789:1.0 5055:1.0 3 6:0.09090909090909091 15:0.07692307692307693 17:0.3333333333333333 23:0.1111111111111111 30:0.5 34:0.18181818181818182 37:0.3333333333333333 42:1.0 82:0.16666666666666666 97:0.2 98:0.5 105:0.3333333333333333 135:0.3333333333333333 145:1.0 169:1.0 175:1.0 180:1.0 191:0.2 211:1.0 286:1.0 328:1.0 340:1.0 367:1.0 385:1.0 389:1.0 411:1.0 511:0.5 542:0.5 617:1.0 620:1.0 622:1.0 624:1.0 671:0.5 695:2.0 747:0.5 811:1.0 1123:0.5 1280:1.0 2158:1.0 2219:1.0 2534:1.0 2970:1.0 3072:1.0 3330:1.0 3331:1.0 3671:1.0 3742:1.0 8029:1.0 3 5:1.0 6:0.045454545454545456 14:0.07142857142857142 15:0.07692307692307693 16:0.16666666666666666 34:0.09090909090909091 44:1.0 56:0.3333333333333333 96:0.16666666666666666 275:0.5 320:1.0 587:1.0 595:1.0 681:0.25 866:1.0 1387:1.0 1403:1.0 2101:1.0 2478:0.3333333333333333 2504:1.0 3330:1.0 3353:0.5 3410:0.5 3653:0.5 4498:1.0 7305:1.0 3 5:1.0 6:0.045454545454545456 15:0.07692307692307693 25:0.5 42:0.5 54:0.5 56:0.3333333333333333 73:1.0 75:0.25 98:0.5 185:0.3333333333333333 245:0.5 320:1.0 367:0.5 399:0.5 423:0.3333333333333333 543:0.3333333333333333 717:0.5 813:1.0 866:1.0 999:1.0 1139:0.5 1373:0.5 1445:0.5 1675:1.0 1785:1.0 2688:1.0 3450:1.0 4376:1.0 4498:1.0 4612:1.0 6516:1.0 3 5:2.0 6:0.045454545454545456 14:0.07142857142857142 42:0.5 73:1.0 95:1.0 97:0.2 191:0.4 251:0.5 305:2.0 328:1.0 350:0.16666666666666666 353:1.0 494:1.0 506:1.0 531:0.3333333333333333 585:1.0 586:1.0 618:1.0 1017:1.0 1018:1.0 1066:1.0 1389:0.5 1496:1.0 1535:5.0 2786:1.0 4483:1.0 4893:1.0 5249:1.0 3 6:0.09090909090909091 31:1.0 35:1.0 36:1.0 91:1.0 92:1.0 150:0.02564102564102564 190:1.0 261:0.05 275:0.5 359:0.3333333333333333 496:1.0 785:1.0 911:1.0 1436:1.0 1810:1.0 2059:1.0 3031:1.0 5773:1.0 3 6:0.045454545454545456 14:0.07142857142857142 15:0.07692307692307693 56:0.3333333333333333 73:1.0 150:0.02564102564102564 261:0.05 263:1.0 359:0.3333333333333333 445:1.0 644:0.5 785:1.0 3870:1.0 7245:1.0 8504:1.0 8947:1.0 3 5:1.0 14:0.07142857142857142 34:0.09090909090909091 42:0.5 97:0.2 147:0.5 155:0.08333333333333333 158:1.0 201:0.5 219:0.25 220:1.0 261:0.05 367:0.5 373:0.1 375:0.5 441:0.3333333333333333 563:1.0 785:1.0 1241:0.5 1479:1.0 1564:1.0 1896:1.0 1941:1.0 2342:1.0 3 5:1.0 6:0.09090909090909091 34:0.09090909090909091 56:0.3333333333333333 73:1.0 82:0.3333333333333333 114:0.125 128:0.25 146:1.0 155:0.08333333333333333 216:1.0 308:1.0 473:0.25 648:1.0 1298:1.0 1430:1.0 1611:1.0 1654:1.0 3006:1.0 3267:1.0 5631:1.0 7106:1.0 7904:1.0 8444:1.0 8447:1.0 3 14:0.07142857142857142 37:0.3333333333333333 56:0.3333333333333333 319:0.07142857142857142 375:0.5 566:1.0 587:1.0 1432:0.5 1921:1.0 2330:2.0 2649:1.0 3 5:1.0 6:0.045454545454545456 7:0.5 15:0.07692307692307693 17:0.3333333333333333 34:0.09090909090909091 37:0.3333333333333333 64:0.3333333333333333 82:0.16666666666666666 97:0.2 128:0.25 135:0.3333333333333333 165:0.08333333333333333 181:0.2 220:1.0 223:1.0 275:0.5 300:1.0 347:1.0 373:0.1 440:0.5 441:0.3333333333333333 587:1.0 654:0.14285714285714285 1423:0.5 1471:1.0 1695:1.0 1779:1.0 2519:1.0 2675:1.0 2959:1.0 3391:1.0 5095:1.0 3 5:1.0 6:0.045454545454545456 14:0.07142857142857142 17:0.3333333333333333 45:2.0 56:0.3333333333333333 128:0.25 138:0.14285714285714285 240:1.0 319:0.07142857142857142 399:0.5 417:1.0 511:0.5 549:0.5 561:0.5 587:1.0 647:0.3333333333333333 4185:1.0 4237:1.0 3 1:0.08333333333333333 6:0.045454545454545456 42:1.0 56:0.3333333333333333 96:0.16666666666666666 97:0.2 98:0.5 101:1.0 135:0.3333333333333333 165:0.08333333333333333 191:0.2 223:1.0 319:0.07142857142857142 443:0.3333333333333333 671:0.5 717:0.5 1332:1.0 1333:1.0 1403:1.0 1564:1.0 1926:1.0 2686:1.0 3774:1.0 5770:1.0 7476:1.0 3 23:0.1111111111111111 34:0.18181818181818182 97:0.2 117:0.05 138:0.14285714285714285 165:0.08333333333333333 181:0.2 190:0.5 531:0.3333333333333333 1105:1.0 1155:1.0 1667:1.0 1740:1.0 2609:1.0 2610:1.0 2611:1.0 2776:1.0 4059:1.0 4707:1.0 3 6:0.09090909090909091 7:0.5 14:0.07142857142857142 15:0.07692307692307693 34:0.09090909090909091 42:0.5 56:0.3333333333333333 97:0.2 190:0.5 191:0.2 215:0.3333333333333333 275:0.5 384:1.0 711:1.0 1256:1.0 2688:1.0 3212:1.0 3353:0.5 4006:1.0 4707:1.0 6577:1.0 3 5:1.0 6:0.045454545454545456 15:0.07692307692307693 31:1.0 34:0.09090909090909091 42:2.5 101:1.0 105:0.3333333333333333 109:0.25 115:1.0 128:0.25 147:0.5 150:0.02564102564102564 180:1.0 194:1.0 204:1.0 206:0.5 215:0.16666666666666666 240:1.0 241:1.0 251:0.5 373:0.1 441:0.3333333333333333 473:1.0 511:0.5 564:1.0 1332:1.0 1569:0.3333333333333333 1670:0.5 1717:0.5 2297:1.0 2691:1.0 2941:1.0 4238:1.0 4241:1.0 4924:1.0 4980:1.0 3 5:1.0 6:0.13636363636363635 7:0.5 17:0.3333333333333333 31:1.0 42:0.5 56:0.3333333333333333 63:0.3333333333333333 75:0.25 82:0.16666666666666666 106:1.0 115:1.0 117:0.05 146:1.0 147:0.5 149:1.0 150:0.02564102564102564 176:0.5 207:1.0 232:1.0 281:1.0 300:1.0 350:0.08333333333333333 539:1.0 561:0.5 615:1.0 1161:0.5 1421:1.0 1423:0.5 1448:1.0 1719:1.0 2229:1.0 2559:0.3333333333333333 2803:1.0 3584:1.0 3800:1.0 4311:1.0 3 5:1.0 6:0.045454545454545456 10:1.0 11:1.0 12:1.0 15:0.07692307692307693 31:1.0 34:0.09090909090909091 42:1.0 64:0.6666666666666666 75:0.25 97:0.2 150:0.05128205128205128 201:0.5 235:1.0 261:0.05 319:0.07142857142857142 327:0.16666666666666666 380:0.3333333333333333 488:1.0 587:1.0 785:1.0 1003:1.0 1104:0.5 1281:0.5 1355:1.0 1440:1.0 1661:1.0 2064:0.5 3448:1.0 4370:1.0 4707:1.0 3 5:4.0 7:0.5 30:0.5 31:1.0 42:0.5 88:1.0 97:0.2 106:1.0 108:0.3333333333333333 131:0.3333333333333333 143:0.3333333333333333 146:2.0 147:0.5 191:0.2 454:1.0 473:0.25 878:1.0 1085:1.0 1268:1.0 1535:1.0 1661:1.0 1667:1.0 2515:1.0 2591:0.3333333333333333 3416:1.0 3556:2.0 4324:1.0 4406:1.0 5473:1.0 7052:0.5 3 6:0.18181818181818182 15:0.07692307692307693 23:0.1111111111111111 31:1.0 56:0.3333333333333333 75:0.25 82:0.5 97:0.2 106:1.0 143:0.3333333333333333 146:1.0 147:0.5 191:0.4 220:1.0 222:0.5 254:1.0 261:0.05 300:1.0 367:0.5 386:0.5 409:1.0 488:1.0 534:0.2 561:0.5 622:1.0 672:1.0 713:1.0 1332:1.0 1333:1.0 1426:1.0 1546:1.0 1865:1.0 1998:0.5 2317:1.0 2683:0.3333333333333333 3344:1.0 3870:1.0 4407:1.0 7561:1.0 3 5:2.0 6:0.09090909090909091 17:0.3333333333333333 29:1.0 31:1.0 42:1.0 82:0.16666666666666666 97:0.4 106:1.0 115:1.0 150:0.02564102564102564 165:0.08333333333333333 215:0.16666666666666666 238:0.125 254:0.5 273:0.3333333333333333 300:1.0 319:0.07142857142857142 339:1.0 373:0.1 410:1.0 488:1.0 541:1.0 870:1.0 1596:1.0 1667:1.0 2351:1.0 2378:0.3333333333333333 2694:1.0 3182:1.0 3231:1.0 3770:0.5 3884:1.0 5076:1.0 5136:1.0 5631:1.0 3 1:0.08333333333333333 6:0.045454545454545456 24:1.0 34:0.18181818181818182 42:0.5 56:0.3333333333333333 73:1.0 82:0.16666666666666666 97:0.2 114:0.125 146:1.0 181:0.2 221:1.0 223:1.0 225:1.0 226:0.25 251:0.5 261:0.05 272:0.5 300:1.0 320:1.0 399:0.5 405:1.0 406:1.0 543:0.3333333333333333 654:0.14285714285714285 995:0.25 1032:1.0 1410:1.0 1667:4.0 1910:1.0 1992:1.0 2876:1.0 2923:1.0 2966:1.0 3087:1.0 3106:1.0 6032:0.5 7205:0.5 3 5:1.0 6:0.045454545454545456 7:0.5 17:0.3333333333333333 23:0.1111111111111111 31:1.0 34:0.36363636363636365 54:0.5 56:0.6666666666666666 128:0.25 222:0.5 261:0.05 281:1.0 300:1.0 477:1.0 798:1.0 1177:1.0 1332:1.0 1333:1.0 1465:1.0 2113:1.0 2119:2.0 2609:1.0 2876:1.0 6032:0.5 6295:1.0 8097:1.0 3 5:2.0 6:0.13636363636363635 15:0.15384615384615385 17:0.3333333333333333 42:0.5 82:0.16666666666666666 146:1.0 147:0.5 190:1.0 191:0.2 204:1.0 290:1.0 441:0.3333333333333333 577:1.0 1123:0.5 1569:0.3333333333333333 1904:1.0 2462:1.0 2776:1.0 3208:1.0 3332:1.0 3892:1.0 4155:1.0 4236:1.0 4880:1.0 4980:1.0 5753:1.0 7811:1.0 3 5:1.0 6:0.13636363636363635 14:0.07142857142857142 34:0.09090909090909091 51:0.25 56:0.3333333333333333 145:1.0 201:0.5 204:1.0 255:1.0 367:0.5 1780:0.5 2538:1.0 3183:1.0 3416:1.0 3 5:1.0 6:0.09090909090909091 14:0.07142857142857142 15:0.07692307692307693 23:0.2222222222222222 56:0.3333333333333333 82:0.16666666666666666 106:2.0 146:1.0 147:1.0 155:0.08333333333333333 165:0.16666666666666666 241:1.0 278:1.0 457:1.0 908:1.0 1248:1.0 1298:1.0 1830:1.0 1923:1.0 1992:2.0 2721:1.0 2722:1.0 3910:1.0 4054:1.0 4490:1.0 7120:1.0 3 5:1.0 6:0.045454545454545456 14:0.07142857142857142 17:0.3333333333333333 97:0.4 114:0.125 138:0.14285714285714285 165:0.08333333333333333 232:1.0 275:0.5 290:1.0 491:1.0 647:0.3333333333333333 724:1.0 927:1.0 988:0.5 1481:1.0 1671:1.0 1888:1.0 2435:1.0 2547:1.0 2626:1.0 4344:1.0 4576:1.0 6535:1.0 6918:1.0 3 5:2.0 15:0.07692307692307693 25:0.5 34:0.18181818181818182 177:0.5 290:1.0 407:0.5 510:1.0 747:0.5 1064:1.0 1191:1.0 1332:1.0 1333:1.0 1578:1.0 1932:1.0 1994:1.0 2959:1.0 3101:0.5 3567:1.0 4567:1.0 3 1:0.08333333333333333 6:0.045454545454545456 15:0.23076923076923078 17:0.3333333333333333 30:0.5 34:0.18181818181818182 35:1.0 36:1.0 42:1.0 56:0.3333333333333333 96:0.16666666666666666 98:0.5 131:0.3333333333333333 155:0.08333333333333333 175:1.0 185:0.3333333333333333 188:1.0 302:1.0 320:1.0 368:1.0 393:0.2 443:0.3333333333333333 496:1.0 526:1.0 800:1.0 857:1.0 1120:1.0 1345:1.0 1349:1.0 1671:1.0 1672:1.0 1708:2.0 1709:2.0 2282:1.0 2828:1.0 4250:1.0 4324:1.0 5498:1.0 3 15:0.07692307692307693 30:0.5 34:0.09090909090909091 42:0.5 44:1.0 82:0.16666666666666666 97:0.2 261:0.05 281:1.0 373:0.1 743:1.0 1389:0.5 1992:1.0 2539:1.0 2721:1.0 4250:1.0 3 6:0.18181818181818182 14:0.07142857142857142 15:0.07692307692307693 17:0.3333333333333333 94:0.2222222222222222 97:0.4 149:1.0 169:1.0 171:1.0 204:1.0 226:0.25 331:1.0 531:0.3333333333333333 537:1.0 546:1.0 561:0.5 828:0.5 850:1.0 1154:1.0 1183:0.5 1672:1.0 1681:1.0 1780:0.5 2278:0.5 2468:1.0 2968:1.0 3260:1.0 4327:1.0 3 6:0.09090909090909091 34:0.18181818181818182 42:0.5 82:0.16666666666666666 150:0.02564102564102564 245:0.5 473:0.25 543:0.3333333333333333 918:1.0 919:1.0 1044:1.0 1256:1.0 1361:0.3333333333333333 1446:1.0 1569:0.3333333333333333 2041:1.0 2263:0.3333333333333333 3049:1.0 3410:0.5 3700:1.0 3 5:1.0 6:0.09090909090909091 14:0.07142857142857142 23:0.1111111111111111 26:1.0 42:1.0 54:0.5 97:0.4 101:1.0 191:0.2 219:0.25 226:0.25 238:0.125 255:1.0 272:0.5 329:0.5 371:1.0 441:0.3333333333333333 1426:1.0 1637:1.0 1992:1.0 2996:1.0 3823:1.0 7949:1.0 3 4:1.0 5:2.0 6:0.09090909090909091 17:0.3333333333333333 37:0.6666666666666666 56:0.3333333333333333 75:0.25 98:0.5 138:0.14285714285714285 143:0.3333333333333333 150:0.02564102564102564 246:1.0 307:1.0 327:0.16666666666666666 350:0.08333333333333333 394:1.0 896:1.0 981:1.0 1143:1.0 1166:2.0 1332:1.0 1333:1.0 1664:1.0 2478:0.3333333333333333 2500:1.0 2567:1.0 3672:1.0 4141:1.0 4979:1.0 6425:1.0 8100:1.0 3 5:1.0 56:0.3333333333333333 117:0.05 138:0.14285714285714285 215:0.16666666666666666 443:0.3333333333333333 461:1.0 1295:0.3333333333333333 1332:1.0 1333:1.0 2680:1.0 2927:1.0 3101:0.5 3241:1.0 3737:1.0 5027:1.0 3 1:0.08333333333333333 5:3.0 6:0.13636363636363635 15:0.07692307692307693 34:0.09090909090909091 42:0.5 44:1.0 56:0.3333333333333333 73:1.0 75:0.25 82:0.16666666666666666 97:0.2 98:0.5 132:1.0 165:0.08333333333333333 190:0.5 197:0.5 204:1.0 206:0.5 211:1.0 215:0.3333333333333333 367:0.5 399:0.5 412:1.0 478:1.0 563:1.0 1116:1.0 1160:1.0 1177:1.0 1222:1.0 1522:1.0 1596:1.0 1661:1.0 1693:1.0 2688:1.0 2843:1.0 3175:1.0 4177:1.0 4317:1.0 4523:1.0 3 1:0.08333333333333333 4:1.0 6:0.09090909090909091 16:0.16666666666666666 25:0.5 34:0.09090909090909091 56:0.3333333333333333 138:0.14285714285714285 164:1.0 386:0.5 654:0.14285714285714285 716:1.0 717:0.5 1222:1.0 2929:1.0 3 5:1.0 34:0.09090909090909091 42:0.5 56:0.3333333333333333 97:0.4 101:1.0 128:0.25 191:0.2 261:0.05 272:0.5 353:1.0 367:1.0 595:1.0 597:1.0 599:1.0 785:1.0 1241:0.5 1332:1.0 1333:1.0 1389:0.5 1410:1.0 2973:1.0 3832:1.0 4158:1.0 4497:1.0 8509:1.0 3 6:0.13636363636363635 15:0.07692307692307693 34:0.09090909090909091 42:1.5 56:0.3333333333333333 82:0.16666666666666666 169:1.0 201:0.5 245:0.5 350:0.08333333333333333 439:1.0 441:0.3333333333333333 496:1.0 511:0.5 693:1.0 843:1.0 892:1.0 927:1.0 1046:1.0 1116:1.0 1174:1.0 1307:1.0 1332:1.0 1333:1.0 1363:1.0 1569:0.3333333333333333 1719:1.0 2018:1.0 2188:1.0 3208:1.0 7892:1.0 8995:1.0 3 5:1.0 6:0.18181818181818182 17:1.0 34:0.09090909090909091 42:1.0 44:1.0 56:0.3333333333333333 82:0.5 114:0.125 138:0.14285714285714285 139:1.0 147:0.5 275:0.5 300:1.0 318:1.0 343:1.0 488:1.0 650:1.0 1028:1.0 1044:1.0 1104:1.0 2017:1.0 2141:1.0 2158:1.0 2161:1.0 2162:1.0 2182:1.0 3 14:0.07142857142857142 15:0.07692307692307693 34:0.09090909090909091 37:0.3333333333333333 73:1.0 165:0.08333333333333333 240:1.0 290:1.0 297:1.0 298:1.0 399:0.5 418:1.0 449:1.0 473:0.25 635:1.0 1332:1.0 1333:1.0 1596:1.0 1719:1.0 1883:1.0 1992:1.0 2071:1.0 2941:1.0 3031:3.0 3829:1.0 4221:1.0 4924:1.0 6819:1.0
50e3216ba3231995f95d72792f064fc361e27f88
449d555969bfd7befe906877abab098c6e63a0e8
/929/CH9/EX9.4/Example9_4.sce
d89a584b50e1446f5a703de50a0debee2ce32ad4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
660
sce
Example9_4.sce
//Example 9.4 clear; clc; VCC=5 VCCmax=VCC+((5/100)*VCC); VCCmin=VCC-((5/100)*VCC); IB=1*10^(-3); Vled=1.5; Iled=10*10^(-3); vN=2.5;//For Bottom Comparator vP=2.5;//For Top Comparator R1=10*10^3; Rsum=R1/(vN/VCCmax); R2=((vP/VCCmin)*(Rsum))-R1; R3=Rsum-R1-R2; VBE=0.7; R4=(VCC-VBE)/IB; R5=(VCC-vN)/IB; R6=(VCC-Vled)/Iled; printf("Designed Video Detector :"); printf("\nR1=%.2f kohms",R1*10^(-3)); printf("\nR2=%.2f kohms",R2*10^(-3)); printf("\nR3=%.f kohms",R3*10^(-3)); printf("\nR4=%.2f kohms",R4*10^(-3)); printf("\nR5=%.2f kohms",(R5*10^(-3))+0.2); printf("\nR6=%.2f ohms",R6-20);
fa6192602fed3d8f5c5efce6da0fe04c2887d3e3
3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc
/Pack/Área 1/M6/resolucao_jacobi_gauss_Q3.sce
7ba1b37970eafdaa2c95157c40800cf371e00ea9
[ "MIT" ]
permissive
JPedroSilveira/numerical-calculus-with-scilab
32e04e9b1234a0a82275f86aa2d6416198fa6c81
190bc816dfaa73ec2efe289c34baf21191944a53
refs/heads/master
2023-05-10T22:39:02.550000
2021-05-11T17:17:09
2021-05-11T17:17:09
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
167
sce
resolucao_jacobi_gauss_Q3.sce
//rode o código jacobi.sce ou gauss_seidel antes //essa aqui é a Q3 do questionário A = [ 6 1 ; -1 4 ] b = [ 1 ; 2] x1 = [2 ; 0] [x,dx] = jacobi(A,b,x1,10^(-3),4)
bfc5b23caecfd9a5179d46043b5da51bde01c509
c0c48c5a363ac2c0bf21e72833d72a99771dc6ce
/Simulation_Codes/lab07_18i190002/ex6.sce
d23dcbcf8ff3aef1edc53e5029a22744a1186acc
[]
no_license
shubham1166/Operarions_Research_Projects
3b6664b83d89b2a005b5194489bfd0d95cafe3d8
8f28eea93d9e4ff3d6a8e95160c3f9464ce2fc34
refs/heads/main
2023-03-14T02:48:42.359000
2021-03-03T05:51:28
2021-03-03T05:51:28
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
673
sce
ex6.sce
//NAME:shubham sharma //ROLL NO.:18i190002 //Msc Phd OR // part (i) inputting rho mu1 mu2 sig1 sig2 clear,clc clf rho = input('Enter the value of rho : ') mu1 = input('Enter the value of mu1 : ') mu2 = input('Enter the value of mu2 : ') sig1=input('Enter the value of sig1 : ') sig2=input('Enter the value of sig2 : ') s=linspace(0,1,100); // As both the RV are independent , value of corellation corelation coefficient is zero and thus we can easily find the value of sig3 mu3=s*mu1 + (1-s)*mu2; // Let sig3 be the variance of Z: sig3=((s.^2) * sig1) + (((1-s).^2)*sig2); plot(mu3,sig3,'blue',xlabel('mean-mu3'),ylabel('Variance-sig3'),xtitle('graph b/w mu3 and sig3'))
2449ba277102f412a0d776438c458b6067a40451
449d555969bfd7befe906877abab098c6e63a0e8
/2741/CH10/EX10.61/ExampleA61.sce
1a084ac72ad6a29a58023eb83d8326f45fca3824
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
548
sce
ExampleA61.sce
clc clear //Page number 502 //Input data x1=20;//The initial thickness of the layer in cm x2=30;//The final thickness of the layer in cm t1=-15;//The temperature of the surroundings in degree centigrade L=80;//The latent heat of ice in cal/gram d=0.9;//The given density of ice in g/cm^3 K=0.005;//The coefficient of thermal conductivity in C.G.S units //Calculations t=((d*L)/(2*K*t1))*(x1^2-x2^2);//The time taken in sec //Output printf('The time taken for a layer of ice to increase the thickness is %3.2g sec ',t)
2c08c6c43bafbca60e6699e90b82d28a59cccb6f
c2249f1089957357481c4bc88e17047fb96af0fd
/TestCases/cent.tst
2d9ce7f033f605d4390c893f6d3502071aa56129
[]
no_license
FikriAnuar/LaTeXParser
9bf5d0f1ea85d26ae4cb4cb72ef0cd95a7e358d6
97a872d3903aafea98045050f1782b0ff7840ed7
refs/heads/master
2022-12-12T04:17:47.702000
2020-09-09T16:38:05
2020-09-09T16:38:05
294,170,332
0
0
null
null
null
null
UTF-8
Scilab
false
false
452
tst
cent.tst
\begin{document} \pagenumbering{arabic} \arabic{5} \renewcommand{\baselinestretch}{2} A Basic file that checks to see if the centering command works correctly. Note that the double backslash should indicate what should be centered and how it is centered. \begin{center} Single is for Single spacing\\ Verbatim allows text produced as is\\ Itemize uses ticks to indicate items\\ Center allows a block to be centered\\ \end{center} \end{document}
59c87856ab8da5905c7fe0e4523fb7d2d8427276
449d555969bfd7befe906877abab098c6e63a0e8
/1205/CH3/EX3.4/S_3_4.sce
11d804457373e402bdcc049af42d8f7e7c9d2471
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
888
sce
S_3_4.sce
clc; // Given data // M_A=r_CA * F relation 3.7 from section 3.5 f=200; // N , Magnitude of Force directed along CD r_CA=[0.3,0, 0.08];//m, vector AC reprecsented in rectangular component //lambda=CD/norm(CD)-m, Unit vector along CD //F=f*lambda;//m, Force CD=[-0.3, 0.24, -0.32];//Vector CD resolved into rectangular component // norm(CD); m, magnitude of vector CD lambda=CD/norm(CD);//m, Unit vector along CD F=f*lambda;//m, Force // M_A=r_CA * F relation 3.7 from section 3.5 //i=1; j=1; k=1; Unit vectors along X, Y and Z direction respectively // Componenets of moment M_A along X,Y and Z direction respectively M_Ax=det([r_CA(2),r_CA(3); F(2), F(3)]);//N.m M_Ay=-det([r_CA(1),r_CA(3) ; F(1),F(3)]);//N.m M_Az=det([r_CA(1),r_CA(2) ;F(1), F(2)]);// N.m printf("Answer can be written as M_B = %.2f N.m i + %.2f N.m j + %.2f N.m k \n",M_Ax,M_Ay,M_Az);
47cb9ca9104b2b0a9cbda071fa3ce51a0d65fe2f
449d555969bfd7befe906877abab098c6e63a0e8
/1958/CH1/EX1.e.5/Chapter1_ex5.sce
995c97eaf6afbe60fd046a40490981d88cf7fefe
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
353
sce
Chapter1_ex5.sce
clc clear m=100//Mass of block in kg F=500//Force in N q=30//Angle made with the horizontal in degrees u=0.4//Coefficient of sliding friction //Calculations R=m*9.8//Reaction force in N f=(u*R)//Frictional force in N a=(F*cosd(q)-f)/m//Acceleration of the block in m/s^2 //Output printf('The acceleration of the block is %3.2f m/s^2',a)
85df67a74263c1a53e6122a4e60aeca2b211b683
449d555969bfd7befe906877abab098c6e63a0e8
/1868/CH14/EX14.6/Ch14Ex6.sce
fc98b13ad84a468718a5281dc5a73d555af7c16a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,080
sce
Ch14Ex6.sce
// Scilab code Ex14.6: Pg 519 (2005) clc; clear; // Part (a) e = 1.6e-19; // Charge on electron, C k = 8.99e-09; // Coulomb constant, N-m^2/C^2 r = 1.0e-14; // Distance between two duetrons, m // We have U = (k*q1*q2)/r, for duetrons q1 = q2 = e, therefore we get U = (k*e^2)/r; // Potential energy of duetrons, J E_C = 1.1e-014; // The coulomb energy per deutron, J k_B = 1.38e-023; // Boltzmann constant, J/mol/K T = 2/3*E_C/k_B; // Effective temperature required for deutron to overcome the potential barrier, K printf("\nThe potential energy of two duetrons separated by the distance of %1.0de-14 m = %4.2f MeV", r*1e+14, (U*1e+12)/e); printf("\nThe effective temperature required for deutron to overcome the potential barrier = %3.1e K", T); // Result // The potential energy of two duetrons separated by the distance of 1e-14 m = 0.14 MeV // The effective temperature required for deutron to overcome the potential barrier = 5.3e+008 K // Result // The potential energy of two duetrons separated by the distance of 1e-14 m = 0.14 MeV
4c255f3b519686fa368e6c318e29e006e63b1be1
449d555969bfd7befe906877abab098c6e63a0e8
/991/CH6/EX6.30/Example6_30.sce
a0ccb52e58b2171b65e209e914846e2131ff6ea8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,261
sce
Example6_30.sce
//Example 6.30. Refer fig. 6.27. clc format(5) VCC=16 RC=3*10^3 RE=2*10^3 R1=56*10^3 R2=20*10^3 alpha=0.985 VBE=0.3 disp("For a germanium transistor, VBE=0.3V. As alpha=0.985") beta=alpha/(1-alpha) beta1=round(beta) disp(beta1,"beta = alpha / ( 1 - alpha) = ") disp("(a) To find the coordinates of the operating point") disp("Referring to fig. 6.29,") VT=(R2/(R1+R2))*VCC disp(VT,"Thevenin voltage, VT(V) = (R2 / (R1+R2)) * VCC = ") format(7) RB=(R1*R2)/(R1+R2) RB1=RB*10^-3 disp(RB1,"Thevenin resistance, RB(k-ohm) = (R1 * R2) / (R1 + R2) =") disp("The loop equation around the base circuit is,") disp("VT = ( IB * RB) + VBE + ((IB + IC)*RE)") disp("VT = ((IC / beta) * RB) + VBE + (((IC / beta) + IC)*RE)") format(5) IC=(VT-VBE)/((RB/beta)+(RE/beta)+RE) IC1=IC*10^3 disp(IC1,"Therefore, IC(mA) = ") disp("Since IB is very small, IC ~ IE = 1.73 mA") IE=IC VCE=VCC-(IC*RC)-(IE*RE) disp(VCE,"Therefore, VCE(V) = VCC - (IC*RC) - (IE*RE) = ") disp("Therefore, the coordinates of the operating point are :") disp(IC1,"IC(mA) = ") disp(VCE,"VCE(V) = ") disp("(b) To find the stability factor S") disp("S = (1+beta)*((1+(RB/RE))/(1+beta+(RB/RE)))") format(6) S = (1+beta)*((1+(RB/RE))/(1+beta+(RB/RE))) disp(S,"S = ")
13df4894d71220c63e9c9873f5c3e07dcddc9eec
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/Computing/testinf.sce
fc0c7276f2a1e04d54648c815708b9059c8b45aa
[]
no_license
markusmorawitz77/Scilab
902ef1b9f356dd38ea2dbadc892fe50d32b44bd0
7c98963a7d80915f66a3231a2235010e879049aa
refs/heads/master
2021-01-19T23:53:52.068000
2017-04-22T12:39:21
2017-04-22T12:39:21
89,051,705
0
0
null
null
null
null
UTF-8
Scilab
false
false
110
sce
testinf.sce
1+%inf -2*%inf 1/%inf %inf+%inf %inf*%inf ieee(2) // ieee exception mode 1/0 // returns infinity
53f47b40eb9cf86885636f7b9ca9e7c479d33932
449d555969bfd7befe906877abab098c6e63a0e8
/773/CH15/EX15.08/15_08.sci
0bcce5e479bece212b2a4f9f815f20e6cde81e84
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
366
sci
15_08.sci
//system// s=%s; sys=syslin('c',(30)/((s^2+2*s+2)*(s+3))) nyquist(sys) gm=g_margin(sys) show_margins(sys,'nyquist') printf("Since P=0(no of poles in RHP)=Poles of G(s)H(s) \n Here the number of zeros of 1+G(s)H(s) in the RHP is zero \n Hence the system is stable") if (gm<=0) printf("system is unstable") else printf("system is stable") end
dc8daaae733183eebd43a6120c370e503c37cfdc
4a1effb7ec08302914dbd9c5e560c61936c1bb99
/Project 2/Experiments/AdaBoost/results/AdaBoost.NC-C.led7digit-10-1tra/result2s0.tst
7d81cde925aea6c24cb78130e3e269c6bbeada02
[]
no_license
nickgreenquist/Intro_To_Intelligent_Systems
964cad20de7099b8e5808ddee199e3e3343cf7d5
7ad43577b3cbbc0b620740205a14c406d96a2517
refs/heads/master
2021-01-20T13:23:23.931000
2017-05-04T20:08:05
2017-05-04T20:08:05
90,484,366
0
0
null
null
null
null
UTF-8
Scilab
false
false
535
tst
result2s0.tst
@relation led7digit @attribute Led1 real[0.0,1.0] @attribute Led2 real[0.0,1.0] @attribute Led3 real[0.0,1.0] @attribute Led4 real[0.0,1.0] @attribute Led5 real[0.0,1.0] @attribute Led6 real[0.0,1.0] @attribute Led7 real[0.0,1.0] @attribute number{0,1,2,3,4,5,6,7,8,9} @inputs Led1,Led2,Led3,Led4,Led5,Led6,Led7 @outputs number @data 0 0 5 1 5 1 6 1 7 1 5 1 7 1 7 1 8 1 0 0 0 0 3 1 3 1 5 1 5 1 6 1 7 1 0 0 1 1 3 1 4 1 4 1 8 1 8 1 2 1 2 1 4 1 7 1 8 1 9 1 9 1 1 1 3 1 3 1 4 1 9 1 1 0 4 1 6 1 9 1 0 0 3 1 4 1 6 1 6 0 8 1 2 1 3 1 3 1 9 1
900cd0a1e7f60a634ea447bb56fff782a46791e3
8b463997266ab9e412ad11e8c100276a0e70b896
/Implementacao/solucaoScilab/inst_10_6_50_1.sce
b4eedf0dd6d5bda304ffedc68f03083b6b173435
[]
no_license
igorfarias30/PCDCN
3d2781d868590d4ca5fccb181d43ede31f5e3f54
db0352d5af16a899db07cf9461f2f3a590e71604
refs/heads/master
2021-04-29T03:33:13.392000
2017-10-19T18:13:46
2017-10-19T18:13:46
78,010,504
0
0
null
null
null
null
UTF-8
Scilab
false
false
8,125
sce
inst_10_6_50_1.sce
clf(); ax=gca(); ax.data_bounds=[0,0;50, 6]; //set the data_bounds ax.box='on'; //desenha uma caixa a = 5 * ones(11,11); a(2:10,2:10)=34; a(6.5:7,6.5:7)=5; b = 1 * ones(11,11); b(2:10,2:10)=1; b(6.5:7,6.5:7)=1; L = list(); //Porto 1 S = [0 0 0 0 0 0 0 0 0 0 0 0 0 4 100 2 4 100 4 100 100 4 100 4 4 3 2 100 100 100 3 100 100 100 4 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 100 2 100 100 2 4 100 100 4 100 4 2 2 100 100 3 3 3 100 100 100 3 2 100 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 100 100 2 100 100 2 100 2 100 2 2 100 100 2 2 100 100 100 100 3 3 100 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 100 100 2 2 2 100 2 2 2 100 2 100 100 100 2 100 100 100 2 3 100 100 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 100 100 100 100 2 2 2 2 2 2 2 100 100 2 2 2 100 100 100 100 100 100 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 100 100 100 100 100 100 2 2 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0;]; L(1) = S; //Porto 2 S = [0 0 0 0 0 0 3 100 4 100 100 3 100 4 100 4 4 100 4 100 0 4 0 4 4 3 9 100 0 0 3 0 0 0 4 9 100 4 4 4 3 4 4 0 0 0 0 0 0 0;0 0 0 0 0 0 3 3 3 100 3 3 4 100 3 100 100 4 4 100 100 4 100 4 100 3 100 100 3 3 3 0 0 0 3 100 100 100 100 4 100 4 4 0 0 0 0 0 0 0;0 0 0 0 0 0 3 100 100 3 100 100 4 100 100 4 100 100 4 100 4 100 100 100 100 100 100 3 0 0 0 0 3 3 0 100 3 100 3 3 3 4 4 0 0 0 0 0 0 0;0 0 0 0 0 0 3 100 3 3 3 100 4 100 100 100 3 100 100 100 100 100 100 100 100 100 100 100 100 0 0 100 3 0 0 100 100 3 100 3 3 4 100 0 0 0 0 0 0 0;0 0 0 0 0 0 100 3 3 3 100 3 3 100 100 100 100 3 4 3 3 100 3 3 100 100 3 100 3 0 0 100 0 0 0 100 100 100 100 100 3 4 3 0 0 0 0 0 0 0;0 0 0 0 0 0 0 100 100 100 100 100 3 100 100 100 100 100 100 100 3 100 100 100 100 100 100 100 100 100 0 100 100 100 100 100 100 100 3 100 100 4 100 0 0 0 0 0 0 0;]; L(2) = S; //Porto 3 S = [0 0 0 0 0 0 0 100 4 100 100 4 0 4 0 4 4 0 4 100 0 4 0 4 4 100 9 0 100 100 9 0 100 100 4 9 0 4 4 4 4 4 4 0 0 0 0 0 0 0;0 0 0 0 0 0 0 100 4 100 4 4 4 0 100 0 0 4 4 100 0 4 0 4 100 5 4 0 4 4 4 0 100 100 4 100 0 100 100 4 100 4 4 0 0 0 0 0 0 0;0 0 0 0 0 0 0 100 100 4 100 100 4 0 100 4 0 0 4 4 4 0 100 100 100 100 100 4 100 100 100 0 4 4 100 100 4 100 4 4 4 4 4 0 0 0 0 0 0 0;0 0 0 0 0 0 0 100 4 4 100 100 4 100 100 0 4 100 0 100 100 0 100 100 100 100 100 100 100 100 100 0 4 100 100 4 100 100 100 4 100 4 100 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 4 4 100 4 4 4 100 0 4 100 4 100 4 0 4 4 4 100 4 100 100 100 100 100 100 100 100 4 100 100 100 100 4 4 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 100 100 100 100 100 100 100 0 100 100 100 100 4 0 100 100 100 100 100 100 4 100 100 100 100 100 100 100 100 100 100 100 100 4 0 0 0 0 0 0 0 0;]; L(3) = S; //Porto 4 S = [0 0 0 0 0 0 0 0 0 0 0 0 0 100 100 10 100 100 10 100 100 100 100 10 10 0 9 100 100 10 9 0 0 10 100 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 8 100 10 100 100 10 100 100 100 100 5 10 5 100 100 5 10 100 0 0 10 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 100 10 10 100 100 9 9 100 100 5 5 100 100 100 100 100 100 5 0 5 100 5 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 100 100 100 100 100 6 100 5 100 100 5 5 100 5 100 100 0 5 100 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 5 100 100 5 100 100 100 100 5 100 100 100 5 100 100 100 0 100 5 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 100 100 100 100 100 100 100 100 100 100 5 100 100 100 100 100 100 100 5 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0;]; L(4) = S; //Porto 5 S = [0 0 6 6 100 100 100 9 100 100 100 9 100 0 0 10 0 0 10 0 0 0 100 10 10 0 9 100 0 10 9 0 100 10 100 9 6 100 10 9 100 100 100 6 8 6 100 100 0 0;0 0 6 6 6 6 100 6 100 100 100 8 100 8 0 10 0 0 10 0 0 0 100 100 10 8 0 100 100 10 0 0 100 10 100 0 100 100 6 100 9 9 100 6 6 6 100 100 0 0;0 0 6 100 100 6 7 6 100 6 8 8 100 0 10 10 0 0 9 9 0 0 6 6 0 6 100 100 100 0 100 100 6 100 6 100 100 100 100 9 100 100 6 6 100 6 6 100 0 0;0 0 100 6 6 6 100 100 100 6 100 100 100 100 0 0 0 0 0 100 6 0 6 100 0 100 6 100 6 0 100 100 6 100 100 100 100 100 100 100 6 100 100 100 100 100 100 100 0 0;0 0 100 100 6 6 100 6 6 100 100 100 100 100 0 100 100 0 100 100 0 100 100 6 0 100 100 6 6 0 100 100 100 100 100 100 6 6 100 100 100 100 100 6 6 100 100 6 0 0;0 0 6 100 6 100 100 100 100 100 100 100 100 100 8 100 100 0 100 100 100 100 100 100 0 100 100 100 100 0 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 0 0;]; L(5) = S; //Porto 6 S = [0 0 0 0 0 100 0 9 0 0 0 9 0 0 0 10 0 0 10 0 100 100 100 10 10 0 9 8 100 10 9 0 0 10 100 9 8 100 10 9 0 0 0 8 8 0 0 0 0 0;0 0 0 0 0 100 0 100 0 0 0 8 0 8 0 10 0 0 10 0 100 100 8 0 10 8 100 100 100 10 0 0 9 10 100 100 100 100 10 0 9 9 100 8 8 0 0 0 0 0;0 0 0 0 0 8 7 100 0 100 8 8 0 0 10 10 0 0 9 9 100 100 8 8 0 7 100 100 8 0 100 0 100 100 100 100 100 100 100 9 100 0 100 100 100 0 0 0 0 0;0 0 0 0 0 8 100 100 100 7 0 0 0 0 0 0 0 0 0 9 100 100 100 100 100 100 100 100 7 0 100 0 100 100 100 100 100 100 100 100 7 0 100 100 100 0 0 0 0 0;0 0 0 0 0 8 100 100 100 100 0 0 0 0 0 100 0 0 100 100 100 0 100 100 100 100 100 100 100 0 7 0 100 100 100 100 7 100 100 100 100 0 100 100 0 0 0 0 0 0;0 0 0 0 0 0 100 100 100 100 100 0 100 100 8 100 0 0 100 100 100 100 100 100 100 100 100 100 100 0 100 100 100 100 100 100 100 100 100 100 100 0 100 100 0 0 0 0 0 0;]; L(6) = S; //Porto 7 S = [0 0 0 0 100 0 0 9 0 0 0 9 0 0 0 10 0 0 10 0 0 0 0 10 10 0 9 8 0 10 9 0 0 10 100 9 8 100 10 9 0 0 100 8 8 8 0 0 0 0;0 0 0 0 8 0 0 0 0 0 0 8 100 8 0 10 0 0 10 0 0 0 8 0 10 8 0 0 0 10 0 0 9 10 100 100 100 100 10 0 9 9 100 8 8 100 0 0 0 0;0 0 0 0 100 8 9 0 0 0 8 8 100 0 10 10 0 0 9 9 0 9 8 8 100 8 0 0 8 0 0 100 0 0 100 100 100 100 0 9 0 100 100 100 100 8 0 0 0 0;0 0 0 0 8 8 100 0 0 9 0 100 100 100 0 0 100 0 0 9 100 100 100 0 100 8 0 0 8 0 0 100 0 0 100 100 100 100 0 0 8 100 100 100 100 8 0 0 0 0;0 0 0 0 8 8 100 100 0 100 0 100 100 100 0 100 100 0 100 0 100 100 100 100 100 8 100 100 100 0 100 100 0 100 100 100 8 100 0 0 100 100 100 100 8 100 0 0 0 0;0 0 0 0 100 100 100 100 0 100 100 100 100 100 8 100 100 0 100 0 100 100 100 100 100 100 100 100 100 0 100 100 0 100 100 100 100 100 0 0 100 100 100 100 8 100 0 0 0 0;]; L(7) = S; //Porto 8 S = [0 0 0 0 0 0 0 9 0 0 0 9 100 100 0 10 100 100 10 0 0 0 0 10 10 100 9 10 0 10 9 100 0 10 0 9 10 0 10 9 0 0 0 9 0 0 0 0 0 0;0 0 0 0 0 0 0 0 100 0 100 9 100 10 0 10 100 100 10 0 0 0 9 100 10 100 100 10 9 10 0 100 9 10 0 0 10 0 10 0 9 9 100 100 0 0 0 0 0 0;0 0 0 0 0 0 9 0 100 0 9 9 100 100 10 10 100 100 9 9 100 9 9 10 100 9 100 10 9 0 0 100 0 0 10 0 100 0 0 9 100 9 9 100 0 0 0 0 0 0;0 0 0 0 0 0 0 0 100 9 100 100 100 100 100 0 100 100 0 9 9 0 9 100 100 9 100 100 9 0 0 100 100 0 10 0 100 0 0 0 100 100 100 100 0 0 0 0 0 0;0 0 0 0 0 0 0 9 100 0 100 100 100 100 100 0 100 100 9 9 100 0 100 100 100 100 100 9 9 100 0 100 100 0 9 100 100 0 0 0 100 100 9 0 0 0 0 0 0 0;0 0 0 0 0 0 0 100 100 0 100 100 100 100 100 0 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 0 0 100 100 100 0 0 0 0 0 0 0;]; L(8) = S; //Porto 9 S = [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 10 0 0 100 0 10 10 0 10 10 100 10 10 0 100 10 0 10 10 0 10 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 100 10 0 10 0 10 10 100 0 100 10 0 10 100 100 10 10 10 100 0 10 10 0 100 10 0 10 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 100 0 10 10 0 10 10 10 10 10 10 10 0 10 100 10 10 0 100 0 100 0 10 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 100 10 0 0 100 10 100 100 10 100 10 10 10 10 100 100 10 0 100 100 100 100 10 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 100 100 10 100 100 10 10 10 100 100 100 100 10 100 100 10 10 0 100 100 100 100 10 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 100 10 100 10 100 100 10 100 100 100 100 10 10 100 100 100 100 0 100 10 100 100 100 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0;]; L(9) = S; for k = 1:9 gcf(); for i = 5: -1:0 for j = 49:-1:0 if(L(k)(i+1,j+1) <> 0) a(6.5:7,6.5:7) = L(k)(i + 1, j + 1); Matplot1(a, [j, i, j + 1, i + 1]); else Matplot1(b, [j, i, j + 1, i + 1]); end end end sleep(2000); end clf(gcf(), 'reset')
3e4cd044246c30d4f783809a0f9ae036f6599148
449d555969bfd7befe906877abab098c6e63a0e8
/3765/CH3/EX3.6/Ex3_6.sce
0ad8c2aa043299a2313062c3a1a06680fd68dfb9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
494
sce
Ex3_6.sce
clc // Example 3.6.py // Consider a point in a supersonic flow where the static pressure is 0.4 atm. When // a pitot tube is inserted in the at this point, the pressure measured by the // pitot tube is 3 atm. Calculate the mach number at this point. // Variable declaration p1 = 0.4 // static pressure (in atm) po2 = 3.0 // pressure measured by the pitot tube (in atm) //Calculations // from table A2 for po2/p1 = 7.5 M1 = 2.35 // Results printf("\n Mach number is %.2f",(M1))
3ee6182bea8313b2d9d97db3f5b9cd49ac394729
449d555969bfd7befe906877abab098c6e63a0e8
/3808/CH1/EX1.8/Ex1_8.sce
74bd443dc474b66d14ad269c65c25fa7bb5b0c3d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
279
sce
Ex1_8.sce
//Chapter 01: The Foundations: Logic and Proofs clc; clear; x = [0 1 1 0 1 1 0 1 1 0]; y = [1 1 0 0 0 1 1 1 0 1]; bit_and=bitand(x,y) bit_or=bitor(x,y) bit_xor=bitxor(x,y) disp(bit_and,"The bitwise AND is") disp(bit_or,"The bitwise OR is") disp(bit_xor,"The bitwise XOR is")
070fc652c057f8af4d1a770028453b5e6798132f
1db0a7f58e484c067efa384b541cecee64d190ab
/macros/cell2sos.sci
39402b3ac367c962408cbb9744c945d4004c7e20
[]
no_license
sonusharma55/Signal-Toolbox
3eff678d177633ee8aadca7fb9782b8bd7c2f1ce
89bfeffefc89137fe3c266d3a3e746a749bbc1e9
refs/heads/master
2020-03-22T21:37:22.593000
2018-07-12T12:35:54
2018-07-12T12:35:54
140,701,211
2
0
null
null
null
null
UTF-8
Scilab
false
false
2,228
sci
cell2sos.sci
function [s,g] = cell2sos(c) //Converts a cell array to a second order section matrix //Calling Sequences //s=cell2sos(c) //[s,g]=cell2sos(c) //Parameters //c //A cell array //g //The scalar gain //Description //s=cell2sos(c) converts a a cell array c = { {B1},{A1}, {B2},{A2}, ... {BL},{AL}} //to an L-by-6 second-order-section matrix s given by: // s = [B1 A1 // B2 A2 // ... // BL AL] //numerator vector Bi and denominator vector Ai contains the coefficients of a //linear or quadratic polynomial. If the polynomial is linear, the coefficients //zero-padded on the right. //[s,g]=cell2sos(c) estimates the gain from the leading term of the cell array //c={ {[g1,g2]},{B1},{A1}, {B2},{A2}, ... {BL},{AL}} to give g=g1/g2 as the gain //Example //c=cell(1,5); // //c(1,1).entries=[2, 1]; // //c(1,2).entries=rand(1,3); // //c(1,3).entries=rand(1,3); // //c(1,4).entries=rand(1,3); // //c(1,5).entries=rand(1,3); // // c = // column 1 to 3 // //![2,1] [0.2113249,0.7560439,0.0002211] [0.3303271,0.6653811,0.6283918] ! // // column 4 to 5 // //![0.8497452,0.6857310,0.8782165] [0.0683740,0.5608486,0.6623569] ! //[s,g]=cell2sos(c); //s = // // column 1 to 5 // // 0.2113249 0.7560439 0.0002211 0.3303271 0.6653811 // 0.8497452 0.6857310 0.8782165 0.0683740 0.5608486 // // column 6 // // 0.6283918 // 0.6623569 // //g = // // 2. //Author //Ankur Mallick if(argn(2)~=1) then error("Wrong number of input arguments"); end L=prod(size(c)); for i=1:L if(type(c(i))~=17) error('Cell contents must themselves be cell objects'); end end if (argn(1)==2) d=c(1).entries; if(length(d)==2) g1=d(1); g2=d(2); g=g1/g2; c=c(2:L); else g=1; end end L=prod(size(c)); s=zeros(L/2,6); for i=1:2:L-1 j=ceil(i/2) b=c(i).entries; a=c(i+1).entries; b=b(:).'; a=a(:).'; b=[b,zeros(1,3-length(b))]; a=[a,zeros(1,3-length(b))]; s(j,:)=[b,a]; end endfunction
c3e683294517b579c9e9d3f4da250f03eded6faa
449d555969bfd7befe906877abab098c6e63a0e8
/2072/CH27/EX27.5/EX27_5.sce
553481236fd50d4bf548a34df3e018be588fd423
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
274
sce
EX27_5.sce
//Chapter 27 clc //Example 5 //given V=10^5 //potential difference in Volts h=6.63*10^-34 // plancks constant in J.s c=3*10^8// velocity of light in m/s e=1.6*10^-19// elelctronic charge in coulombs L_min=(h*c)/(e*V) disp(L_min,"Minimum wavelength produced in meters is")
d8d0d74467061f18da225d575341e3560a3e3c90
449d555969bfd7befe906877abab098c6e63a0e8
/2510/CH3/EX3.7/Ex3_7.sce
825f021aafdab9a9422f527d7987746f3a95d802
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
377
sce
Ex3_7.sce
//Variable declaration: X = 7.0 //Coordinate X of H2SO4 Y = 24.8 //Coordinate Y of H2SO4 S = 45 //Slope //Calculations: //From the figure C.1 we found the intersection of curves mu = 12cP mu = 12 //Results: disp("Absolute viscosity of a 98% sulfuric acid solution at 45° C is :") disp(mu*10**-2) disp(" g/cm.s")
e4486bcaa33737d665f8937a1b4ddde7115edbdd
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/tests/examples/datafit.man.tst
8b83527edbc13fc41efd84cda986800a5c229528
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931000
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
702
tst
datafit.man.tst
clear;lines(0); deff('y=FF(x)','y=a*(x-b)+c*x.*x') X=[];Y=[]; a=34;b=12;c=14;for x=0:.1:3, Y=[Y,FF(x)+100*(rand()-.5)];X=[X,x];end Z=[Y;X]; deff('e=G(p,z)','a=p(1),b=p(2),c=p(3),y=z(1),x=z(2),e=y-FF(x)') [p,err]=datafit(G,Z,[3;5;10]) xset('window',0) xbasc(); plot2d(X',Y',-1) plot2d(X',FF(X)',5,'002') a=p(1),b=p(2),c=p(3);plot2d(X',FF(X)',12,'002') //same probleme with a known deff('e=G(p,z,a)','b=p(1),c=p(2),y=z(1),x=z(2),e=y-FF(x)') [p,err]=datafit(list(G,a),Z,[5;10]) a=34;b=12;c=14; deff('s=DG(p,z)','y=z(1),x=z(2),s=-[x-p(2),-p(1),x*x]') [p,err]=datafit(G,DG,Z,[3;5;10]) xset('window',1) xbasc(); plot2d(X',Y',-1) plot2d(X',FF(X)',5,'002') a=p(1),b=p(2),c=p(3);plot2d(X',FF(X)',12,'002')
cd2c33181293665b290345ec2486ae8522833f77
449d555969bfd7befe906877abab098c6e63a0e8
/3543/CH2/EX2.02/Ex2_2.sce
ce50cdfa6c9b662914b9e8acdeac5ada4601d5c8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
423
sce
Ex2_2.sce
// Example 2.2 // Calculation of numerical aperature // Page no. 479 clc; clear; close; //Given data v=2.111; // Mode parameter a=4.01*10^-6; // Core radius in m lambda=1.3*10^-6; // Wavelength of laser light m //Numerical aperture computation NA=(v*lambda)/(2*%pi*a); //Displaying the result in command window printf("\n Numerical aperature = %0.2f",NA);
1884bef717d3805076d5d919a7601eecc1df891f
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set4/s_Digital_Communication_S._Haykin_851.zip/Digital_Communication_S._Haykin_851/CH4/EX4.3/Example4_3.sce
52702ad0973f4d8bb7ba6aac815bfd25e73c9e63
[]
no_license
hohiroki/Scilab_TBC
cb11e171e47a6cf15dad6594726c14443b23d512
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
refs/heads/master
2021-01-18T02:07:29.200000
2016-04-29T07:01:39
2016-04-29T07:01:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
642
sce
Example4_3.sce
mode(2);errcatch(-1,"stop");driver("GIF");//clear// //Caption:Equalizer to compensate Aperture effect //Example4.3:Equalizer to Compensate for aperture effect clc; T_Ts = 0.01:0.01:0.6; //E = 1/(sinc_new(0.5*T_Ts)); E(1) =1; for i = 2:length(T_Ts) E(i) = ((%pi/2)*T_Ts(i))/(sin((%pi/2)*T_Ts(i))); end a =gca(); a.data_bounds = [0,0.8;0.8,1.2]; plot2d(T_Ts,E,5) xlabel('Duty cycle T/Ts') ylabel('1/sinc(0.5(T/Ts))') title('Figure 4.16 Normalized equalization (to compensate for aperture effect) plotted versus T/Ts') xinit('/home/fossee/Downloads/tbc_graphs/Digital_Communication_S._Haykin_851/Example4_3');xend();exit();
5292e928a5a21244302a52f3f213c931e8e2151a
1bb72df9a084fe4f8c0ec39f778282eb52750801
/test/IN3.prev.tst
85d936aa93a921519d2fa402ea8d0e4bf2fece9e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gfis/ramath
498adfc7a6d353d4775b33020fdf992628e3fbff
b09b48639ddd4709ffb1c729e33f6a4b9ef676b5
refs/heads/master
2023-08-17T00:10:37.092000
2023-08-04T07:48:00
2023-08-04T07:48:00
30,116,803
2
0
null
null
null
null
UTF-8
Scilab
false
false
110
tst
IN3.prev.tst
[[-1,0,2],[2,0,-1],[-6,3,0]],fraction=3,det=9 is inverse of [[1,2,0],[2,4,1],[2,1,0]],det=3,identity = false
84bbfca46540cb2fafc9c5f40a8f5a2efb8f6756
449d555969bfd7befe906877abab098c6e63a0e8
/2084/CH11/EX11.10w/11_10w.sce
dc5e0a70c42007607c2961f044c6ca9c89b70fd1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
639
sce
11_10w.sce
//developed in windows XP operating system 32bit //platform Scilab 5.4.1 clc;clear; //example 11.10w //calculation of the stretch produced in the spring //given data d=1*10^-2//stretch(in m) of the spring R=6400*10^3//radius(in m) of the earth h=800*10^3//height(in m) above the earth's surface //calculation //The extension in the spring on the surface is //1*10^-2 = (G*M*m)/(k*R^2)...........(1) //The extension in the spring at height h above the surface //x = (G*M*m)/(k*(R+h)^2).............(2) //from above equations,we get x=d*((R^2)/(R+h)^2) printf('the stretch produced in the spring is %3.2f cm',x*10^2)
8c4d24a7f5eee1a708dd3e71a71fc295053c8f76
e41b69b268c20a65548c08829feabfdd3a404a12
/3DCosmos/Data/Scripts/UserMenu/VSRUG.SCI
9b5c279aab8f01a6b5c0c12565d4d8966ba03e23
[ "LicenseRef-scancode-khronos", "MIT" ]
permissive
pvaut/Z-Flux
870e254bf340047ed2a52d888bc6f5e09357a8a0
096d53d45237fb22f58304b82b1a90659ae7f6af
refs/heads/master
2023-06-28T08:24:56.526000
2023-03-01T12:44:08
2023-03-01T12:44:08
7,296,248
1
1
null
2023-06-13T13:04:58
2012-12-23T15:40:26
C
UTF-8
Scilab
false
false
78
sci
VSRUG.SCI
executescript(ScriptFilePath+"\_usermenu.sci","~t"+datadir+"\UserMenu_VSRUG");
d466aa01a3f14b6cd15e11587bf11861f338213a
449d555969bfd7befe906877abab098c6e63a0e8
/2135/CH2/EX2.34/Exa_2_34.sce
3dd93cf16b50bf74c85d87c759feb31d885c18ed
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
680
sce
Exa_2_34.sce
//Exa 2.34 clc; clear; close; format('v',7); //Given Data : p=6;//bar m=18;//Kg v=260;//m/s rho=4;//Kg/m^3 Q=42;//KJ/Kg W=261;//KW Cv=0.715;//KJ/KgK pA=1;//bar vA=60;//m/s mdotA=14;//Kg/s CvA=0.835;//m^3/Kg TA=115+273;//K pB=5.5;//bar vB=15;//m/s mdotB=4;//Kg/s CvB=0.46;//m^3/Kg TB=600+273;//K v1=1/rho;//m^3/Kg //m*(Cv*T+p*10^5*v1/1000+v^2/2000)+Q*rho-W=mdotA*(Cv*TA+pA*10^5*CvA/1000+vA^2/2000)+m_dotB*(Cv*TB+pB*10^5*CvB/1000+vB^2/2000); T=(((mdotA*(Cv*TA+pA*10^5*CvA/1000+vA^2/2000)+mdotB*(Cv*TB+pB*10^5*CvB/1000+vB^2/2000))+W-Q*rho)/m-v^2/2000-p*10^5*v1/1000)/Cv;//K disp(T,"Temperature of air at inlet in K : "); //Answer in the book is wrong.
37ad97af6cf05fcd470cda69ddd50e8b3c76bcd5
449d555969bfd7befe906877abab098c6e63a0e8
/3773/CH2/EX2.3/Ex2_3.sce
a8dcb20a01b145db93a283870acd8b05963b0969
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
343
sce
Ex2_3.sce
//Chapter 2: Antenna Basics //Example 2-4.1 clc; //Calculation deff('y=f(x)','y=sin(x)') //sin(theta) omega=intg(20*%pi/180,40*%pi/180,f) omega1=omega*(180/%pi) deff('y=f1(x)','y=1') omega2=intg(30,70,f1) omega_f=omega2*omega1 //omega (square degrees) //Result mprintf("The solid angle, omega is %.0f square degrees",omega_f)
1c4bab2d7766937aae876374a07088ac6f90b4a8
449d555969bfd7befe906877abab098c6e63a0e8
/803/CH2/EX2.1/ex2_1.sce
a462c73d8b7a04f94a97fdbf31ebfaa995700fa5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
202
sce
ex2_1.sce
inputl=-16; spuresp=70;..//spurious response A0=-22;..//input level N=4;..//fouth order IP4=inputl+(spuresp/(N-1)); DelS=(IP4-A0)*(N-1);..//distortion product disp("dB",DelS,"Distortion Product");
ec66f640fb47266e1de4e73ce1649b6d26bf39bd
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH12/EX12.04/12_04.sce
1530dfc28d4f5a99ea8c675583e8a9412ffb8b93
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,067
sce
12_04.sce
//pathname=get_absolute_file_path('12.04.sce') //filename=pathname+filesep()+'12.04-data.sci' //exec(filename) //Steam is admitted at pressure(in bar): p1=15 //Pressure at which steam exhausts(in bar): p3=0.75 //Cut-off occuring at: r1=0.25 //Power produced by the engine(in hp): P=150 //Rpm of engine: n=240 //Mechanical efficiency: nm=0.85 //Diagram factor: d1=0.7 //Brake thermal efficiency: nb=0.2 //Stroke to bore ratio: r2=1.5 //From steam tables: h15=2803.3 hf=384.39 //Expansion ratio: r=1/r1 //Hypothetical mean effective pressure(in bar): mep=p1/r*(1+log(r))-p3 //Actual mean effective pressure(in bar): mepa=mep*d1 //Indicated horse power(in kW): IP=P/nm //Diameter of bore(in m): d=((IP*4*60*0.7457)/(mepa*10^2*r2*%pi*n))^(1/3) //Stroke length(in m): L=d*r2 //Heat added per kg of steam(in kJ/kg): Q=h15-hf //Specific steam consumption(in kg/hp.hr): m=0.7457*3600/(nb*Q) printf("\n RESULT \n") printf("\nBore = %f cm",d*100) printf("\nStroke = %f cm",L*100) printf("\nSpecific steam consumption = %f kg/hp.hr",m)
7fd9fea2f4ec34d736775a936326f17a9e10b2f0
449d555969bfd7befe906877abab098c6e63a0e8
/3682/CH8/EX8.2/Ex8_2.sce
243f10c1d6908dd618536b150a32865599cb98c4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
755
sce
Ex8_2.sce
// Exa 8.2 clc; clear; // Given data // Astable multivibrator Ra=6.8*10^3; // Ω Rb=3.3*10^3; // Ω C=0.1*10^-6; // μF // Solution disp("By using Eq. (8.11) on page no. 320 we get, tHigh as"); tHigh=0.69*(Ra+Rb)*C; // Time required to charge from 1/3 Vcc to 2/3 Vcc printf(' tHIGH = %.1f mSec. \n',tHigh*1000); disp("By using Eq. (8.12) on page no. 320 we get, tLow as"); tLow=0.69*(Rb)*C; // TIme required to discharge from 2/3 Vcc to 1/3 Vcc printf(' tLOw = %.2f mSec. \n',tLow*1000); disp("By using Eq. (8.13) on page no. 320 we get, free running frequency as"); f= 1.45/((Ra+2*Rb)*C); printf(' f = %.2f kHz. \n\n',f/1000); D= Rb/(Ra+2*Rb); printf(' The duty cycle D = %.2f (%d percent).\n ' ,D,round(D*100));
f166d04fd2182b76dcd547ec5df651219dd66742
449d555969bfd7befe906877abab098c6e63a0e8
/623/CH27/EX5.5.5/U5_C5_5.sce
063f671c4d9d99387247e32fd4809be64a5db369
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
2,171
sce
U5_C5_5.sce
//variable initialization mu=1.62*10^-27; //Reduced mass of HCL (kg) c=3*10^8; //Velocity of light (m/s) h=6.62*10^-34; //Plank's constant (joule second) v1_P=2906.3 //Wave no. of P branch (cm-1) v2_P=2927.5 //Wave no. of P branch (cm-1) v3_P=2948.7 //Wave no. of P branch (cm-1) v4_P=2969.9 //Wave no. of P branch (cm-1) v1_R=3012.2 //Wave no. of R branch (cm-1) v2_R=3033.4 //Wave no. of R branch (cm-1) v3_R=3054.6 //Wave no. of R branch (cm-1) v4_R=3078.8 //Wave no. of R branch (cm-1) //(i) Equilibrium internuclear distance delta_v=v2_P-v1_P; //Separation of successive line of P and R branch (cm-1) B=delta_v/2; //rotational constant (cm-1) I=h/(8*%pi^2*B*10^2*c); //Moment of inertia (kg m^2) r=sqrt(I/mu)*10^10; //Equilibrium internuclear distance (Å) //(ii) Force constant v0=(v4_P+v1_R)/2; //Equlibrium frequency (cm-1) k=4*%pi^2*mu*c^2*v0^2*10^4; //Force constant of HCl (N/m) printf("\n(i) Equilibrium internuclear distance = %.2f Å\n(ii) Force constant = %.0f N/m",r,k); //Note: the answer of (ii) part is wrong in the book
66fd1140d0b0b0b35a73f3e38b251a81489a4d64
b2efed85f1632d9ed4b7d9f4eebc7126d3074940
/ted_mini/artandsci_positive/94.ted.sci
0bf518bfe4d3ab3c96f8741765ca2d0befecbc1f
[]
no_license
joytafty-work/unsupervised_nlp
837d8ed75eb084b630d75a1deba7bdd53bbcf261
7812c7d24bb677c90cf6397ed0e274caba1b884c
refs/heads/master
2021-01-10T09:24:33.254000
2015-11-11T20:40:32
2015-11-11T20:40:32
45,651,958
2
7
null
2018-01-28T18:54:18
2015-11-06T01:42:42
Scilab
UTF-8
Scilab
false
false
19,343
sci
94.ted.sci
it s wonderful to be back i love this wonderful gathering and you must be wondering what on earth have they put up the wrong slide no no look at this magnificent beast and ask the question who designed it this is ted this is technology entertainment design and there s a dairy cow it s a quite wonderfully designed animal and i was thinking how do i introduce this and i thought well maybe that old doggerel by joyce kilmer you know poems are made by fools like me but only god can make a tree and you might say well god designed the cow but of course god got a lot of help this is the ancestor of cattle this is the oryx and it was designed by natural selection the process of natural selection over many millions of years and then it became domesticated thousands of years ago and human beings became its stewards and without even knowing what they were doing they gradually redesigned it and redesigned it and redesigned it and then more recently they really began to do sort of reverse engineering on this beast and figure out just what the parts were how they worked and how they might be optimized how they might be made better now why am i talking about cows because i want to say that much the same thing is true of religions religions are natural phenomena they re just as natural as cows they have evolved over millennia they have a biological base just like the oryx they have become domesticated and human beings have been redesigning their religions for thousands of years this is ted and i want to talk about design because what i ve been doing for the last four years really since the first time you saw me some of you saw me at ted when i was talking about religion and in the last four years i ve been working just about non stop on this topic and you might say it s about the reverse engineering of religions now that very idea i think strikes terror in many people or anger or anxiety of one sort or another and that is the spell that i want to break i want to say no religions are an important natural phenomenon we should study them with the same intensity that we study all the other important natural phenomena like global warming as we heard so eloquently last night from al gore today s religions are brilliantly designed brilliantly designed they re immensely powerful social institutions and many of their features can be traced back to earlier features that we can really make sense of by reverse engineering and as with the cow there s a mixture of evolutionary design designed by natural selection itself and intelligent design more or less intelligent design and redesigned by human beings who are trying to redesign their religions you do n t do book talks at ted but i m going to have just one slide about my book because there is one message in it which i think this group really needs to hear and i would be very interested to get your responses to this it s the one policy proposal that i make in the book at this time when i claim not to know enough about religion to know what other policy proposals to make and it s one that echoes remarks that you ve heard already today here s my proposal i m going to just take a couple of minutes to explain it education in world religions on world religions for all of our children in primary school in high school in public schools in private schools and in home schooling so what i m proposing is just as we require reading writing arithmetic american history so we should have a curriculum on facts about all the religions of the world about their history about their creeds about their texts their music their symbolisms their prohibitions their requirements and this should be presented factually straightforwardly with no particular spin to all of the children in the country and as long as you teach them that you can teach them anything else you like that i think is maximal tolerance for religious freedom as long as you inform your children about other religions then you may and as early as you like and whatever you like teach them whatever creed you want them to learn but also let them know about other religions now why do i say that because democracy depends on an informed citizenship informed consent is the very bedrock of our understanding of democracy misinformed consent is not worth it it s like a coin flip it does n t count really democracy depends on informed consent this is the way we treat people as responsible adults now children below the age of consent are a special case i m going to use a word that pastor rick just used parents are stewards of their children they do n t own them you ca n t own your children you have a responsibility to the world to the state to them to take care of them right you may teach them whatever creed you think is most important but i say you have a responsibility to let them be informed about all the other creeds in the world too the reason i ve taken this time is i ve been fascinated to hear some of the reactions to this one reviewer for a roman catholic newspaper called it totalitarian it strikes me as practically libertarian is it totalitarian to require reading writing and arithmetic i do n t think so all i m saying is facts facts only no values just facts about all the world s religions another reviewer called it hilarious well i m really bothered by the fact that anybody would think that was hilarious it seems to me to be such a plausible natural extension of the democratic principles we already have that i m shocked to think anybody would find that just ridiculous i know many religions are so anxious about preserving the purity of their faith among their children that they are intent on keeping their children ignorant of other faiths i do n t think that s defensible but i d really be pleased to get your answers on that any reactions to that later but now i m going to move on back to the cow this picture which i pulled off the web the fellow on the left is really an important part of this picture that s the steward cows could n t live without human stewards they re domesticated they re a sort of ectosymbiont they depend on us for their survival and pastor rick was just talking about sheep i m going to talk about sheep too there s a lot of serendipitous convergence here how clever it was of sheep to acquire shepherds think of what this got them they could outsource all their problems protection from predators food finding health maintenance the only cost in most flocks is a loss of free mating what a deal how clever of sheep you might say except of course it was n t the sheep s cleverness we all know sheep are not exactly rocket scientists they re not very smart it was n t the cleverness of the sheep at all they were clueless but it was a very clever move whose clever move was it it was a clever move of natural selection itself francis crick the co discoverer of the structure of dna with jim watson once joked about what he called orgel s second rule leslie orgel is still a molecular biologist brilliant guy and orgel s second rule is evolution is cleverer than you are now that is not intelligent design not from francis crick evolution is cleverer than you are if you understand orgel s second rule then you understand why the intelligent design movement is basically a hoax the designs discovered by the process of natural selection are brilliant unbelievably brilliant again and again biologists are fascinated with the brilliance of what s discovered but the process itself is without purpose without foresight without design when i was here four years ago i told the story about an ant climbing a blade of grass and why was the ant doing it well it s because its brain had been infected with a lancet fluke that was needed to get into the belly of a sheep or a cow in order to reproduce it was sort of a spooky story and i think some people may have misunderstood lancet flukes are n t smart i submit that the intelligence of a lancet fluke is down there somewhere between petunia and carrot they re not really bright they do n t have to be the lesson we learn from this is you do n t have to have a mind to be a beneficiary the design is there in nature but it s not in anybody s head it does n t have to be that s the way evolution works the question was domestication good for sheep it was great for their genetic fitness and here i want to remind you of a wonderful point that paul maccready made at ted three years ago here s what he said 10 000 years ago at the dawn of agriculture human population plus livestock and pets was approximately a tenth of one per cent of the terrestrial vertebrae landmass that was just 10 000 years ago yesterday in biological terms what is it today does anybody remember what he told us 98 percent that is what we have done on this planet now i talked to paul afterwards i wanted to check to find out how he d calculated this and get the sources and so forth and he gave me a paper that he had written on this there was a passage in it which he did not present here and i think it is so good i m going to read it to you over billions of years on a unique sphere chance has painted a thin covering of life complex improbable wonderful and fragile suddenly we humans a recently arrived species no longer subject to the checks and balances inherent in nature have grown in population technology and intelligence to a position of terrible power we now wield the paintbrush we heard about the atmosphere as a thin layer of varnish life itself is just a thin coat of paint on this planet and we re the ones that hold the paintbrush and how can we do that the key to our domination of the planet is culture and the key to culture is religion suppose martian scientists came to earth they would be puzzled by many things anybody know what this is i ll tell you what it is this is a million people gathering on the banks of the ganges in 2001 perhaps the largest single gathering of human beings ever as seen from satellite photograph here s a big crowd here s another crowd in mecca martians would be amazed by this they d want to know how it originated what it was for and how it perpetuates itself actually i m going to pass over this the ant is n t alone there s all sorts of wonderful cases of species in that case a parasite gets into a mouse and it needs to get into the belly of a cat and it turns the mouse into mighty mouse it makes it fearless so it runs out in the open where it ll be eaten by a cat true story in other words we have these hijackers you ve seen this slide before from four years ago a parasite that infects the brain and induces even suicidal behavior on behalf of a cause other than one s own genetic fitness does that ever happen to us yes it does quite wonderfully the arabic word islam means submission it means surrender of self interest to the will of allah but i m not just talking about islam i m talking also about christianity this is a parchment music page that i found in a paris bookstall 50 years ago and on it it says in latin semen est verbum dei sator autem christus the word of god is the seed and the sower of the seed is christ same idea well not quite but in fact christians too glory in the fact that they have surrendered to god i ll give you a few quotes the heart of worship is surrender surrendered people obey god s words even if it does n t make sense those words are by rick warren those are from the purpose driven life and i want to turn now briefly to talk about that book which i ve read you ve all got a copy you ve just heard the man and what i want to do now is say a bit about this book from the design standpoint because i think it s actually a brilliant book first of all the goal and you heard just now what the goal is it s to bring purpose to the lives of millions and he has succeeded is it a good goal in itself i m sure we all agree it is a wonderful goal he s absolutely right there are lots of people out there who do n t have purpose in their life and bringing purpose to their life is a wonderful goal i give him an a on this is the goal achieved yes 30 million copies of this book al gore eat your heart out just exactly what al is trying to do rick is doing this is a fantastic achievement and the means how does he do it it s a brilliant redesign of traditional religious themes updating them quietly dropping obsolete features putting new interpretations on other features this is the evolution of religion that s been going on for thousands of years and he s just the latest brilliant practitioner of it i do n t have to tell you this you ve just heard the man excellent insights into human psychology wise advice on every page moreover he invites us to look under the hood i really appreciated that for instance he has an appendix where he explains his choice of translations of different bible verses the book is clear vivid accessible beautifully formatted just enough repetition that s really important every time you read it or say it you make another copy in your brain every time you read it or say it you make another copy in your brain with me everybody every time you read it or say it you make another copy in your brain thank you and now we come to my problem because i m absolutely sincere in my appreciation of all that i ve said about this book but i wish it were better i have some problems with the book and it would just be insincere of me not to address those problems i wish he could do this with a revision a mark 2 version of his book the truth will set you free that s what it says in the bible and it s something that i want to live by too my problem is some of the bits in it i do n t think are true now some of this is a difference of opinion and that s not my main complaint that s worth mentioning here s a passage it s very much what he said anyway if there was no god we would all be accidents the result of astronomical random chance in the universe you could stop reading this book because life would have no purpose or meaning or significance there would be no right or wrong and no hope beyond your brief years on earth now i just do not believe that by the way i find homer groening s film presented a beautiful alternative to that very claim yes there is meaning and a reason for right or wrong we do n t need a belief in god to be good or to have meaning in us but that is just a difference of opinion that s not what i m really worried about how about this god designed this planet s environment just so we could live in it i m afraid that a lot of people take that sentiment to mean that we do n t have to do the sorts of things that al gore is trying so hard to get us to do i m not happy with that sentiment at all and then i find this all the evidence available in the biological sciences supports the core proposition that the cosmos is especially designed whole with life and mankind as its fundamental goal and purpose a whole in which all facets of reality have their meaning and explanation in this central fact well that s michael denton he s a creationist and here i think wait a minute i read this again i read it three or four times and i think is he really endorsing intelligent design is he endorsing creationism here and you ca n t tell so i m sort of thinking well i do n t know i do n t know if i want to get upset with this yet but then i read on and i read this first noah had never seen rain because prior to the flood god irrigated the earth from the ground up i wish that sentence were n t in there because i think it is false and i think that thinking this way about the history of the planet after we ve just been hearing about the history of the planet over millions of years discourages people from scientific understanding now rick warren uses scientific terms and scientific factoids and information in a very interesting way here s one god deliberately shaped and formed you to serve him in a way that makes your ministry unique he carefully mixed the dna cocktail that created you i think that s false now maybe we want to treat it as metaphorical here s another one for instance your brain can store 100 trillion facts your mind can handle 15 000 decisions a second well it would be interesting to find the interpretation where i would accept that there might be some way of treating that as true anthropologists have noted that worship is a universal urge hardwired by god into the very fiber of our being an inbuilt need to connect with god well there s a sense which i agree with him except i think it has an evolutionary explanation and what i find deeply troubling in this book is that he seems to be arguing that if you want to be moral if you want to have meaning in your life you have to be an intelligent designer you have to deny the theory of evolution by natural selection and i think on the contrary that it is very important to solving the world s problems that we take evolutionary biology seriously whose truth are we going to listen to well this from the purpose driven life the bible must become the authoritative standard for my life the compass i rely on for direction the counsel i listen to for making wise decisions and the benchmark i use for evaluating everything well maybe ok but what s going to follow from this and here s one that does concern me remember i quoted him before with this line surrendered people obey god s word even if it does n t make sense and that s a problem do n t ever argue with the devil he s better at arguing than you are having had thousands of years to practice now rick warren did n t invent this clever move it s an old move it s a very clever adaptation of religions it s a wildcard for disarming any reasonable criticism you do n t like my interpretation you ve got a reasonable objection to it do n t listen do n t listen that s the devil speaking this discourages the sort of reasoning citizenship it seems to me that we want to have i ve got one more problem then i m through and i d really like to get a response if rick is able to do it in the great commission jesus said go to all people of all nations and make them my disciples baptize them in the name of the father the son and the holy spirit and teach them to do everything i ve told you the bible says jesus is the only one who can save the world now here we ve seen many wonderful maps of the world in the last day or so here s one not as beautiful as the others it simply shows the religions of the world and here s one that shows the sort of current breakdown of the different religions now do we really want to commit ourselves to engulfing all the other religions when their holy books are telling them do n t listen to the other side that s just satan talking it seems to me that that s a very problematic ship to get on for the future i found this sign as i was driving to maine recently in front of a church good without god becomes zero sort of cute a very clever little meme i do n t believe it and i think this idea popular as it is not in this guise but in general is itself one of the main problems that we face if you are like me you know many wonderful committed engaged atheists agnostics who are being very good without god and you also know many religious people who hide behind their sanctity instead of doing good works so i wish we could drop this meme i wish this meme would go extinct thanks very much for your attention
714ffdad81026ae83bc31bd02bfc3bdab4c2ec61
4483ff664b4d01c53114a7fc535625c197c8f989
/green routing/test2.sce
7f363af6bce56937cfd95b08bb9a58f084fe14a3
[]
no_license
winash1618/myproject
be9b77d4a405edce7e625a999803016b50ab99d0
2132e76e6a996bee19f356a2b68af827fa6c621b
refs/heads/master
2022-12-06T06:09:06.487000
2020-08-20T02:00:54
2020-08-20T02:00:54
288,880,158
0
0
null
null
null
null
UTF-8
Scilab
false
false
257
sce
test2.sce
z='1111' n=4 w=bin2dec(z) y=zeros(w,n) for i = 1 : w j=n d=dec2bin(i) k=strtod(d) while k > 1 c = modulo (k,10) k = int (k/10) y(i,j) = c j=j-1 end if( k == 1 ) y(i,j) = 1 end end disp (y)
2056a481e10a8e1cd0b6363e959967738b7e430c
449d555969bfd7befe906877abab098c6e63a0e8
/2066/CH9/EX9.4/9_4.sce
602269289ea07f2d8f116b77ee262e8b90d56787
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
327
sce
9_4.sce
clc clear //Initialization of variables p1=14.7 //psia z1=3 //ft gam=62.4 rho=1.94 //slug/ft^3 pa=0.4 //psia za=1 //ft //calculations v3=(pa-p1)*144 + (za-z1)*gam V=sqrt(-v3*2/(3*rho)) //results printf("Velocity of flow = %.1f ft/s",V) disp("The answer is a bit different due to rounding off error in textbook")
71d619b370901c55ed7048bc544456bd25d056cb
59db7a89bd002a490f7305d109574465e92c3f34
/OpenGlPractice/ChopPeko/scilab/plotcontour.sci
c7a05817796057ee132d2b004cdc484fbf07cf90
[]
no_license
hamling-ling/OpenGlEsExperiment
c98d5366dada293c4f4d43b930e5bbfd34b5ebf7
db15a370e86d8952d6f615b0d9262a83644573a3
refs/heads/master
2020-06-05T18:10:21.752000
2016-01-05T16:18:37
2016-01-05T16:18:37
9,649,098
0
0
null
null
null
null
UTF-8
Scilab
false
false
373
sci
plotcontour.sci
clear; function w=cross_prod(u,v) w=zeros(3,1) D=[u(:),v(:)] w(1)=det([[1;0;0],D]) w(2)=det([[0;1;0],D]) w(3)=det([[0;0;1],D]) endfunction data=read('contour.dat',-1,3) data2=read('intersections.dat',-1,3) dat = data2; for i=1:2:length(dat) //plot(dat(i:i+1,2)+rand()/50,dat(i:i+1,3),"<") param3d(dat(i:i+1,1),dat(i:i+1,2),dat(i:i+1,3)) end
206d4b98f2f8db95983e61d23f86056c47006e86
449d555969bfd7befe906877abab098c6e63a0e8
/273/CH7/EX7.3/ex7_3.sce
1bc5613d2c75f5126679ce6e62c603a2f5aa6b7c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
289
sce
ex7_3.sce
clc;clear; //Example 7.3 //Newton's ring experiment- calculation of refractive index //given values D1=1.5;//diametre (in cm)of tenth dark ring in air D2=1.27;//diametre (in cm)of tenth dark ring in liquid //calculation n=D1^2/D2^2; disp(n,'refractive index of liquid is');
97156781f2410132cbeba45f95c857412b188577
449d555969bfd7befe906877abab098c6e63a0e8
/770/CH7/EX7.9/7_9.sce
3edcf954d0b999ef2c1058ea96c6a7c4c9ecb13d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
458
sce
7_9.sce
clear; clc; //Example - 7.9 //Page number - 244 printf("Example - 7.9 and Page number - 244\n\n"); //This problem involves proving a relation in which no numerical components are involved. //For prove refer to this example 7.9 on page number 244 of the book. printf(" This problem involves proving a relation in which no numerical components are involved.\n\n"); printf(" For prove refer to this example 7.9 on page number 244 of the book.");
b3cf6b0b47d64cf94529e637261529449e385969
449d555969bfd7befe906877abab098c6e63a0e8
/3774/CH8/EX8.4/Ex8_4.sce
2b5d8929d971d70d4726b7a9a550e35256ebc150
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,024
sce
Ex8_4.sce
// exa 8.4 Pg 230 clc;clear;close; // Given Data Fmin=500;// N Fmax=1200;// N C=6;// spring index n=1.5;// factor of safety Sys=760;// MPa Ses_dash=350;// MPa del=25;// mm G=82;// kN/mm.sq. Kw=(4*C-1)/(4*C-4)+0.615/C;// Wahl's correction factor Ks=1+0.5/C;// Shear stress factor Fm=(Fmax+Fmin)/2;// N Fa=(Fmax-Fmin)/2;// N tau_m_into_d_sq=Ks*(8*Fm*C)/(%pi);// where tau_m_into_d_sq = tau_m*d**2 tau_a_into_d_sq=Kw*(8*Fa*C)/(%pi);// where tau_a_into_d_sq = tau_a*d**2 //(tau_m-tau_a)/Sys+2*tua_a/Ses_dash=1/n d=sqrt(n)*sqrt((tau_m_into_d_sq-tau_a_into_d_sq)/Sys+2*tau_a_into_d_sq/Ses_dash);// mm printf('\n diameter of spring wire = %.2f mm or %.f mm',d, ceil(d)) d=ceil(d);// mm Dm=C*d;// mm printf('\n Mean coil diameter = %.f mm', Dm) //del=8*Fmax*Ci**3/(G*d) i=(del/(8*Fmax*C**3/(G*10**3*d)));// no. of active coils i=ceil(i);// no. of active coils printf('\n no. of active coils = %.f',i) nt=i+2;// no. of active coils (for square & ground ends) lf=nt*d+1.15*del;// mm printf('\n free length of spring = %.2f mm',lf)
43b49eb744d87c3884a087c3a04cfa3711ad7a0f
449d555969bfd7befe906877abab098c6e63a0e8
/51/CH10/EX10.7/10_7.sce
d4149c0fd244a72d14d12af16ad5f15da5eaeb06
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
420
sce
10_7.sce
clc; clear; S0=1/500; n1=0.02; z1=0.6;//ft n2=0.015; n3=0.03; z2=0.8;//ft l1=3;//ft l2=2;//ft l3=3;//ft y=z1+z2;//ft K=1.49; A1=l1*(z1);//ft^2 A2=l2*(y);//ft^2 A3=l3*(z1);//ft^2 P1=l1+z1;//ft P2=l2+(2*z2);//ft P3=l3+z1;//ft Rh1=A1/P1;//ft Rh2=A2/P2;//ft Rh3=A3/P3;//ft Q=K*(S0^0.5)*((A1*(Rh1^(2/3))/n1)+(A3*(Rh3^(2/3))/n3)+(A2*(Rh2^(2/3))/n2));//(ft^3)/sec disp("(ft^3)/sec",Q,"The flowrate=")
0727f48fed6d4a43a19fb9db26309f560fd37e2a
449d555969bfd7befe906877abab098c6e63a0e8
/2453/CH4/EX4.2/4_2.sce
53f0b8f82c46c85dbd6974ac590a96cbe3921035
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
525
sce
4_2.sce
//To calculate the mobility of electrons d = 8.92*10^3; //density, kg/m^3 e = 1.6*10^-19; m = 9.1*10^-31; //mass of electron, kg N = 6.02*10^26; //avagadro's number per k-mol AW = 63.5; //atomic weight rho = 1.73*10^-8; //resistivity of copper, ohm-m n = d*N/AW; //number of cu atoms/m^3 mew = 1/(rho*n*e); //mobility of electrons, m/Vs printf("mobility of electrons is %f m/Vs",mew); tow = m/(n*e^2*rho); //relaxation time, s printf("relaxation time in sec is"); disp(tow);
ceff51fc7b19ee5d6950a30c935a392ca398fc5b
449d555969bfd7befe906877abab098c6e63a0e8
/1373/CH10/EX10.16/Chapter10_Example16.sce
9b7c903c8720a99556a885dc900ad0ca61e7729d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,009
sce
Chapter10_Example16.sce
//Chapter-10, Example 10.16, Page 430 //============================================================================= clc clear //INPUT DATA e=0.8;//Emissivity of brick wall D1=[6,4];//Width and Height in m L=0.04;//Distance from the wall in m D2=[0.2,0.2];//Dimensions of the furnace wall in m D3=[1,1];//Dimensions at lower and left of the centre of the wall in m T=[1523+273,37+273];//Furnace temperature and wall temperature in degree C //CALCULATIONS F12=0.033;//Shape factor from Fig.10.3 on page no. 409 F13=0.05;//Shape factor from Fig.10.3 on page no. 409 F14=0.12;//Shape factor from Fig.10.3 on page no. 409 F15=0.08;//Shape factor from Fig.10.3 on page no. 409 Fow=(F12+F13+F14+F15);//Shape factor between opening and wall Q=(e*L*Fow*5.67*10^-8*(T(1)^4-T(2)^4))/1000;//Net radiation exchange in kW //OUTPUT mprintf('Net radiation exchange between the opening and the wall is %3.1f kW',Q) //=================================END OF PROGRAM==============================
5724aab2a02d156b8ffbb68484f3a23867dd6b53
449d555969bfd7befe906877abab098c6e63a0e8
/2747/CH13/EX13.20/Ex13_20.sce
5692c297a9e6377530fc1fba1b4eb16c76b75215
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
630
sce
Ex13_20.sce
clc clear //Initialization of variables m=1 //lbm t1=100 //F t2=75 //F db=65 //F disp("From psychrometric charts,") t11=82 //F phi1=0.4 H1=30 //Btu/lbm dry air w1=65 //grains/lbm dry air w2=250 //grains/lbm dry air //calculations cr=t1-t2 appr=t2-db dmf3=(w2-w1)*0.0001427 hf3=68 hf4=43 H2=62.2 H1=30 mf4= (H1-H2+ dmf3*hf3)/(hf4-hf3) per=dmf3/(dmf3+mf4) //results printf("cooling range = %d F",cr) printf("\n Approach = %d F",appr) printf("\n amount of water cooled per pound of dry air = %.3f lbm dry air/lbm dry air",mf4) printf("\n percentage of water lost by evaporation = %.2f percent",per*100)
d755218f1ece9422e8dc74f29e6d4dd27409b111
5bcc7d78eeb607f77d78d89c7ac8be69ea09e01b
/amaroK/algo/beatTracking1.sci
f09400f11bff2b0e277d5fa2058bdcddabf07eeb
[]
no_license
nmasse-itix/ENSICAEN-Informatique-2eme-Annee
6b42ba5efee5cbe10a255522843756e6d8316d07
c1e06056ae415347817563c7454f4398605cc362
refs/heads/master
2020-07-24T02:36:52.067000
2019-09-11T09:40:16
2019-09-11T09:40:16
207,776,053
0
0
null
null
null
null
UTF-8
Scilab
false
false
6,144
sci
beatTracking1.sci
function outSamples = beatTracking1(fileName) // Read samples [samples sampleFreq nBits] = wavread(fileName); // We keep only the first channel samples = samples(1, :); outSamples = samples; // Computes size [nChannels nSamples] = size(samples); // Instant energy instantEnergyWindow = 1024; instantEnergies = nSamples / instantEnergyWindow; // Average energy averageEnergyWindow = 43; averageEnergies = instantEnergies; beatConstant = 1.3; beatRatio = .01; // Time arrays t = [0 : nSamples - 1]; tEnergies = [0 : instantEnergies - 1] * instantEnergyWindow; // Energies arrays instantEnergy = zeros(1, instantEnergies); averageEnergy = zeros(1, averageEnergies); // Compute instant energy for i = [0 : instantEnergies - 1], tsum = 0; for s = [(i * instantEnergyWindow) + 1: ((i + 1) * instantEnergyWindow)], tsum = tsum + samples(s)^2; end instantEnergy(i + 1) = tsum; end // running windowed sum of instant energies tmpEnergy = 0; for i = [1 : averageEnergyWindow], tmpEnergy = tmpEnergy + instantEnergy(i); end averageEnergy(1) = tmpEnergy; for i = [2 : averageEnergies - averageEnergyWindow], averageEnergy(i) = averageEnergy(i - 1) - instantEnergy(i - 1) + instantEnergy(i + averageEnergyWindow - 1); end for i = [averageEnergies - averageEnergyWindow + 1: averageEnergies], averageEnergy(i) = averageEnergy(i - 1) - instantEnergy(i - 1); end // average the sum averageEnergy = averageEnergy / averageEnergyWindow; // computes the variance energyVariance = zeros(averageEnergy); for i = [1 : averageEnergies], v = 0 for j = [i : i + averageEnergyWindow - 1], if j <= instantEnergies then v = v + (instantEnergy(j) - averageEnergy(i))^2; end end energyVariance(i) = v; end energyVariance = sqrt(energyVariance); // Computes the beat detection constants beatConstants = -0.0025714 * energyVariance + 1.5142857; // Compares the instant energies and the average energies difference = instantEnergy - beatConstant * averageEnergy; difference2 = instantEnergy - beatConstants .* averageEnergy; // averages the difference h = [.2 .2 .2 .2 .2]; filteredDifference = convol(h, difference); filteredDifference = filteredDifference(3 : averageEnergies + 2); filteredDifference2 = convol(h, difference2); filteredDifference2 = filteredDifference2(3 : averageEnergies + 2); // Ratio computation ratio = zeros(instantEnergy); for i = [1 : instantEnergies], if averageEnergy(i) <> 0 then ratio(i) = instantEnergy(i) / averageEnergy(i); end end // Beat detection beatIdx = 1; beat = []; for i = [1 : instantEnergies - 1], //if (ratio(i) < beatRatio) & (ratio(i+1) > beatRatio) then //if (filteredDifference(i) < 0) & (filteredDifference(i+1) > 0) then if (filteredDifference(i) < 0) & (filteredDifference(i+1) > 0) then //if (difference(i) < 0) & (difference(i+1) > 0) then // draws a line beat(beatIdx) = tEnergies(i); beatIdx = beatIdx + 1; end end beatIdx2 = 1; beat2 = []; for i = [1 : instantEnergies - 1], //if (ratio(i) < beatRatio) & (ratio(i+1) > beatRatio) then if (filteredDifference2(i) < 0) & (filteredDifference2(i+1) > 0) then //if (difference(i) < 0) & (difference(i+1) > 0) then // draws a line beat2(beatIdx2) = tEnergies(i); beatIdx2 = beatIdx2 + 1; // put a beep (4000 Hz) in the signal for j = [0 : sampleFreq / 100], outSamples(tEnergies(i) + j) = .9 * sin(2 * %pi * (j * sampleFreq / 4000)); end end end // Plotting... scf(1); subplot(2, 1, 1); plot2d(t, samples, style=color('grey')); for i = [1 : beatIdx - 1], xsegs([beat(i) beat(i)], [.2 -.2], color('red')); end xtitle('Echantillons de ' + fileName , 'echantillons', 'amplitude'); subplot(2, 1, 2); plot2d(tEnergies, instantEnergy, style=color('green')); plot2d(tEnergies, averageEnergy, style=color('blue')); xtitle('Energies de ' + fileName, 'echantillons', 'energie'); legend(['Energie instantanee', 'Energie moyenne'], 1, %t); scf(2); subplot(3, 1, 1); plot2d(tEnergies, instantEnergy, style=color('green')); plot2d(tEnergies, averageEnergy, style=color('blue')); xtitle('Energies of ' + fileName, 'samples', 'energy'); legend(['Instant energy', 'Average energy'], 1, %t); subplot(3, 1, 2); plot2d(tEnergies, energyVariance, style=color('purple')); xtitle('Energy variance of ' + fileName, 'samples', 'variance'); subplot(3, 1, 3); plot2d(tEnergies, beatConstants, style=color('red')); xtitle('Evolution of the beat detection constant of ' + fileName, 'samples'); scf(3); subplot(2, 1, 1); plot2d(tEnergies, difference, style=color('cyan')); plot2d(tEnergies, filteredDifference, style=color('red')); plot2d([tEnergies(1) tEnergies(instantEnergies)], [0 0]); xtitle('Difference between instant and ' + string(beatConstant) + ' * average energies of ' + fileName, 'samples'); legend(['Difference', 'Average difference'], 1, %t); subplot(2, 1, 2); plot2d(tEnergies, difference2, style=color('cyan')); plot2d(tEnergies, filteredDifference2, style=color('red')); plot2d([tEnergies(1) tEnergies(instantEnergies)], [0 0]); xtitle('Difference between instant and computed constant * average energies of ' + fileName, 'samples'); scf(4); plot2d(tEnergies, ratio, style=color('orange'), logflag='nl'); plot2d([tEnergies(1) tEnergies(instantEnergies)], [beatRatio beatRatio]); xtitle('Ratio between instant and average energies of ' + fileName, 'samples'); legend(['Ratio', 'Beat detection limit'], 4, %t); scf(5); subplot(3, 1, 1); plot2d(t, samples, style=color('grey')); for i = [1 : beatIdx - 1], xsegs([beat(i) beat(i)], [.2 0], color('blue')); end for i = [1 : beatIdx2 - 1], xsegs([beat2(i) beat2(i)], [-.2 0], color('red')); end xtitle('Echantillons de ' + fileName , '', 'amplitude'); subplot(3, 1, 2); plot2d(tEnergies, filteredDifference, style=color('blue')); plot2d([tEnergies(1) tEnergies(instantEnergies)], [0 0]); xtitle('Difference lissee entre l`energie instantanee et ' + string(beatConstant) + ' * l`energie moyenne de ' + fileName); subplot(3, 1, 3); plot2d(tEnergies, filteredDifference2, style=color('red')); plot2d([tEnergies(1) tEnergies(instantEnergies)], [0 0]); xtitle('Difference lissee entre l`energie instantanee et C(i) * l`energie moyenne de ' + fileName);
29586df9ffda998e332a7727a8fd5c12936be429
449d555969bfd7befe906877abab098c6e63a0e8
/1580/CH8/EX8.7/Ch08Ex7.sce
f96615dbf18a43acca0e71611c1369d77f47fab0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
751
sce
Ch08Ex7.sce
// Scilab Code Ex8.7: Page-8.36 (2004) clc;clear; d = 8906; // Density of nickel, kg per metrecube An = 6.025e+26; // Avogadro number, per k mol W = 58.7; // Atomic weight, kg N = d*An/W; // Number density of nickel atom, per cubemetre Bs = 0.65; // Saturation magnetization, wb per squaremetre muo = (4*%pi*1e-7); // magnetic perbeability, henry/metre mum = Bs/(N*muo); // magnetic moment, ampere per squaremetre X = mum/(9.27e-24); // magnetic moment, bohr magneton printf("\nNumber density of nickel atom = %3.3e /cubemetre", N); printf("\nMagnetic moment = %1.2f bohr magneton", X); // Result // Number density of nickel atom per cubemetre = 9.141e+28 /cubemetre // Magnetic moment = 6.10e-01 bohr magneton
5776c4379e0d2c82d3bea754de4a6e9196a54b86
449d555969bfd7befe906877abab098c6e63a0e8
/1118/CH9/EX9.2/eg9_2.sce
a61111e1d9a9459f1091bcc372dbf704f8d22e8a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
734
sce
eg9_2.sce
clear; //clc(); s=15000/3; v=33000/sqrt(3); pf=0.85; l=8; r=.29*l; x=0.65*l; i=s*1000/v; qs=acosd(pf); op=3*s*1000*pf; ploss=3*i*i*r; z=r+(%i)*x; vs=v+z*i*(cosd(-qs)+(%i)*sind(-qs)); vsp=sqrt(real(vs)^2+imag(vs)^2); vsl=sqrt(3)*vsp; printf("\n the line voltage at the sending end is: %.2f kv",vsl/1000); //b)phase difference qs1=atand(imag(vs)/real(vs)); pf1=qs1-(-qs); //negative sign is due to the load is lagging pf=cosd(pf1); printf("\n the power factor of the sending end is:%.4f",pf); //c).line regulation lr=(vsp-v)/v; printf("\n the line regulation of is:%.2f",lr); //d).efficiency n=op/(op+ploss); printf("\n the transission efficiency is: %.2f percent",n*100);
9889f5deaa874f20bcbdc62a328b72a46aa9be6e
f492a134695f6d4b2ec01d572569f961a169ef38
/reversi/tests/vert_down.tst
e116783fa2fd0b266bbba684732d74728aeaffa7
[]
no_license
rileythomp/cpp-games
a51b06964a2466268aff733fb5d2a4ec1ce2752f
1b98e9b33ba5ae7aadb6d7a2e9c45cb266727f0c
refs/heads/master
2022-06-10T16:09:02.322000
2022-05-24T19:10:45
2022-05-24T19:10:45
157,655,018
0
0
null
null
null
null
UTF-8
Scilab
false
false
35
tst
vert_down.tst
p asdf fdsa 2 3 7 7 1 3 0 3 quit q
de260978d3e9a99928e547c7b3fd4766423549ae
449d555969bfd7befe906877abab098c6e63a0e8
/199/CH6/EX6.9/Example_6_9.sce
692050eaf4c37dcc316861fa5aff5e20cdda7ff2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
372
sce
Example_6_9.sce
// Chapter6 // Page.No-216, Figure.No-6.14(a) // Example_6_9 // Gain of the amplifier // Given clear;clc; Vo=3.7;Vin=100*10^-3; R1=100; // Assume Rf=0.5*((Vo*R1)/Vin-1); // Feedback resisrance printf("\n Feedback resisrance is = %.1f ohm \n",Rf) A=(1+2*Rf/R1); // Gain of the differential amplifier printf("\n Gain of the differential amplifier is = %.1f \n",A)
29309053941b4cd225d435281847f6caa102c0b3
449d555969bfd7befe906877abab098c6e63a0e8
/3754/CH7/EX7.4/7_4.sce
b51d693dc42adef9dd108f1d82776ec3fc9d8c07
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
488
sce
7_4.sce
clear// //Variables N = 150.0 //Number of turns mur = 3540.0 //Relative permeability (in H/m) mu0 = 4*%pi * 10 **-7 //Absoulte permeability (in H/m) l = 0.05 //coil length (in meter) A = 5 * 10**-4 //Area of cross - section (in metersquare) //Calculation L = (mur * mu0 * A * N**2)/l //Coil inductance (in Henry) //Result printf("\n The coil inductance is %0.2f Henry.",L)
a23bc1aa7ce309c08d1ca134ee9927341b182dd6
d13b729c94c45001726db99bfd7e3c9c2de166af
/02_oversampling/soundtest02_oversampling.sce
883472cd0271088f39534faa0fdc003896afa1ce
[]
no_license
uPD71054/squarewave
94dd1e5593c0494f561bc29767ae29fc77a4f960
b84608690c45115b6aef3254090b69b35130254f
refs/heads/master
2021-01-18T12:58:31.044000
2017-10-03T15:31:08
2017-10-03T15:31:08
100,371,426
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,565
sce
soundtest02_oversampling.sce
/* generate squarewave by over sampling */ // initial parameters *********************************************************/ fs = 44100/* Hz */; // sampling rate f = 880/* Hz */; // frequecncy multiple = 0:3; // 44.1kHz * multiple oversampling fc = fs / 2; // cut off frequency q = 1/sqrt(2); // q-value col = [1,5,3,2]; /******************************************************************************/ exec("..\sci\genWave02.sci"); exec("..\sci\getPowerSpectrum.sci"); exec("..\sci\snr.sci"); t = 0.0:1/fs:1.0-1/fs; wav = zeros(length(multiple),length(t)); for i = multiple wav(i + 1,:) = genWave02(f, t, 2^i, fs/2, 1/sqrt(2)) pow(i + 1,:) = getPowerSpectrum(wav(i + 1,:)); sn(i + 1) = snr(pow(i + 1,:), f, (fs/2) / f); wavwrite(wav(i + 1,:), fs, "x" + string(2^multiple(i+1)) + "oversampling.wav"); end /* plot wave data and power spectrum */ // plot wave data for i = 1:length(multiple) clf(); subplot(2,1,1); plot2d(t, wav(i,:), 2, rect=[0.0, -0.6, 4/f, 0.6]); xgrid(color(128,128,128)); title("x" + string(2^multiple(i)) + "oversampling", 'fontsize',3) xlabel("time [ms]]"); ylabel("wave"); // plot power spectrum subplot(2,1,2); plot2d(fs * t(1:length(pow(i,:))), 10 * log10(pow(i,:)),2 ,rect=[0.0, -100, fs/2, 0]); xgrid(color(128,128,128)); title("spectrum", 'fontsize',3) xlabel("freqency [Hz]"); ylabel("power spectrum [dB]"); xs2png(0, "x" + string(2^multiple(i)) + "oversampling.png") end
5f6e340bf7347c0d3f447d2d81b46611df0ad248
449d555969bfd7befe906877abab098c6e63a0e8
/1529/CH10/EX10.16/10_16.sce
4e98352d95c73c710455f1a0bbbeaa7045e7f416
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
286
sce
10_16.sce
//Chapter 10, Problem 16 clc; g1=12; //gain of stage 1 g2=15; //gain of stage 2 g3=-8; //gain of stage 3 P=g1+g2+g3; //Power ratio P1=10^(P/10); //calculating overall power gain printf("Overall power gain (P2/P1) = %f ",P1);
3eab4615a090e933a956728d96f4ee4fcbe14161
b83a548625faadcf7c779f11ce56f02f9058bb70
/mcs 2.sce
32d8db56b8102540c84c76c3bb169bd3de9ff1c0
[]
no_license
navnesh/scilab
856941418ac0c58a4566b6559a107ac46efbb147
5f97c5043bd06ac2e092e9ec6431c18b71b33e22
refs/heads/main
2023-07-09T22:15:24.220000
2021-08-10T08:16:45
2021-08-10T08:16:45
394,020,861
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,191
sce
mcs 2.sce
clc; clear; xdel(winsid()); disp("EXP 2 Name.Navnish Shettigar Roll No-35") // Generation of 7 bit PN sequence // Coefficient of polynomial a1=1; a2=1; a3=1; // Initial states of flip flop R(1)=1; R(2)=0; R(3)=0; m=3; disp('output after every clock pulse'); for i=1:((2^m)-1)//shift of bit in each register for every clock pulse r1=R(1); r2=R(2); r3=R(3); PN(i)=R(3); //if(a1==0) R1=bitxor(r2,r3);//input of register is modulo2 addition of R2 and R3 R(3)=R(2); R(2)=R(1); R(1)=R1; disp(R); end disp('PN sequence is'); disp(PN);//Display 7 bit PN sequence c1=[1 -1 -1];//information of user 1 for j=1:1:length(PN)//0 replaced with -1 in PN sequence if PN(j)==0 then PN(j)=PN(j)-1; else PN(j)=PN(j)+0; end end disp(PN); spreaded_sig=[c1(1).*PN' c1(2).*PN' c1(3).*PN']//Spreading of data of user 1 using PN sequence detect_code=[spreaded_sig(1:7).*PN' spreaded_sig(8:14).*PN' spreaded_sig(15:21).*PN'];//at receiver,recieved spreaded signal multiplied with PN sequnce corr_code=[sum(detect_code(1:7)) sum(detect_code(8:14)) sum(detect_code(15:21))]; rec_sig=(1/7).*corr_code;//get information form received signal disp('received signal with correct PN sequence is'); disp(rec_sig);//received data of user 1 at receiver:1 -1 -1 //Despreading with shifted PN sequence shift_fact=input('enter the shifting factor' ); l=1; k=shift_fact-1; for i=1:1:length(PN) //generation of shifted PN sequence as per entered shifting factor if i<=shift_fact shift_seq(i)=PN(length(PN)-k); k=k-1; else i>shift_fact shift_seq(i)=PN(l); l=l+1; end end disp('shifted sequence is'); disp(shift_seq');//display shifted sequence //despreading using shifted PN sequence detect_shift_code=[spreaded_sig(1:7).*shift_seq' spreaded_sig(8:14).*shift_seq'spreaded_sig(15:21).*shift_seq']; corr_shift_code=[sum(detect_shift_code(1:7)) sum(detect_shift_code(8:14)) sum(detect_shift_code(15:21))]; rec_shift_sig=(1/7).*corr_shift_code; disp("recieved signal with shifted PN sequence is"); disp(rec_shift_sig);//Invalid data received beacuse signal was despreded with shifted PN sequence disp('which is not valid transmitted signal');
6c3849610b408bb655680f643e25b868aa8b5b93
449d555969bfd7befe906877abab098c6e63a0e8
/3751/CH6/EX6.3/Ex6_3.sce
1efab0a004435aca02aa081d3098b1e2776bddf1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,860
sce
Ex6_3.sce
//Fluid System By Shiv Kumar //Chapter 6 - Kaplan and Propeller Turbines //Example 6.3 //To Find (a)Inlet and Outlet blade Angles (b)Mechanical Efficiency (c)Volumetric Efficiency clc clear //Given: D=6; //Outer Diameter of Runner, m d=2; //Inner Diameter of Runner, m P=30; //Shaft Power, MW N=75; //Speed, rpm H=12; //Head, m Q=310 //Discharge through the Runner, m^3/s eta_H=96/100; //Hydraulic Efficiency //Data Required: rho=1000; //Density of Water, Kg/m^3 g=9.81; //Acceleration due to gravity, m/s^2 //Computations u=%pi*D*N/60; //Velocity of runner, m/s ui=u; uo=u; Vf=Q/((%pi/4)*(D^2-d^2)) // m/s Vfi=Vf; Vfo=Vf; Vwi=eta_H*g*H/ui; // m/s //The Answer Vary Because Value of ui used in book is Wrong //(a)Inlet and Outlet blade Angles, Beta_i and Beta_o Beta_i=180-atand(Vfi/(ui-Vwi)); //Degrees Beta_o=atand(Vfo/uo); //Degrees //(b)Mechanical Efficiency,eta_m eta_M=P*10^6/(rho*Q*Vwi*ui)*100; //percentage(%) //The Answer Vary Because Value of Vwi used in book is Wrong //(c)Volumetric Efficiency, eta_v eta_o=P*10^6/(rho*Q*g*H)*100; //Overall Efficiency, percentage(%) eta_v=eta_o/(eta_M*eta_H); //percentage(%) //The Answer Vary Because Value of eta_m used in book is Wrong //Results printf("(a)Inlet Blade Angle, Beta_i=%.2f degrees and \n",Beta_i) //The answer vary due to round off error printf(" Outlet Blade Angle, Beta_o=%.2f degrees \n",Beta_o) //The answer vary due to round off error printf("(b)Mechanical Efficiency, eta_m=%.2f percent\n",eta_M) //The answer provided in the textbook is wrong printf("(c)Volumetric Efficiency, eta_v=%.2f percent\n ",eta_o) //The answer provided in the textbook is wrong
7872c0291a3694cf0d0b34f737fe05caacc779dc
449d555969bfd7befe906877abab098c6e63a0e8
/863/CH2/EX2.6/Ex2_6.txt
f5895eb043b080dc7e659af4b6aeaf7ef3f32183
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
234
txt
Ex2_6.txt
//Caption:Calculate minimum square wave frequency //Ex2.6 clc; clear; close; C=1//Coupling capacitor(in micro farad) R=1//Input resistance(in Mega ohm) t=0.01//Tilt PW=t*R*C f=1/(2*PW) disp(f,'Frequency required(in hertz)=')
211f05eb59f50bfd8ec4060cdc2dbd902b64eb80
4246cbb6bfbd96e60074b607df96d71e7b4ee070
/opp6code/oracle_error_info.tst
6fa008c4c29767210ba8d208a6e2deb3e9c5d3f3
[]
no_license
thangduong3010/PL-SQL
bc0fa5c3400e46acc0ab63156573590935607b5d
1415772c87750bd30625eacf2bd116fb7e0c0aae
refs/heads/master
2020-05-22T06:57:54.352000
2016-12-26T04:47:27
2016-12-26T04:47:27
39,061,697
1
3
null
null
null
null
UTF-8
Scilab
false
false
981
tst
oracle_error_info.tst
DECLARE msg VARCHAR2 (1000); isval BOOLEAN; PROCEDURE plsb (str IN VARCHAR2, val IN BOOLEAN) IS BEGIN IF val THEN DBMS_OUTPUT.put_line (str || ' - TRUE'); ELSIF NOT val THEN DBMS_OUTPUT.put_line (str || ' - FALSE'); ELSE DBMS_OUTPUT.put_line (str || ' - NULL'); END IF; END plsb; BEGIN oracle_error_info.validate_oracle_error (100, msg, isval); plsb (msg, isval); oracle_error_info.validate_oracle_error (-1403, msg, isval); plsb (msg, isval); oracle_error_info.validate_oracle_error (1, msg, isval); plsb (msg, isval); oracle_error_info.validate_oracle_error (-1850, msg, isval); plsb (msg, isval); oracle_error_info.validate_oracle_error (120000, msg, isval); plsb (msg, isval); oracle_error_info.validate_oracle_error (1200000000, msg, isval); plsb (msg, isval); oracle_error_info.validate_oracle_error (-20000, msg, isval); plsb (msg, isval); END;
01c8f65eef8d4c7a9bb989afb0d0df8ab8e3f355
449d555969bfd7befe906877abab098c6e63a0e8
/2084/CH18/EX18.8/18_8.sce
3b9bb28df4ef576a2dd01bfa698d66e6c8667ec7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
558
sce
18_8.sce
//developed in windows XP operating system 32bit //platform Scilab 5.4.1 clc;clear; //example 18.8 //calculation of focal length of a biconvex lens from known value of radii of curvature of refracting surfaces //given data R1=20; //radius of curvature(in cm) of first surface of biconvex lens R2=-20; //radius of curvature(in cm) of second surface of biconvex lens mu=1.5; //refractive index of the material of lens //calculation f=1/((mu-1)*(1/R1-1/R2)); //lens maker's formula disp(f,'focal length(in cm) of the given biconvex lens is');
dc67a47ee8ca3d78fc733c51ee6c81d493a06084
717ddeb7e700373742c617a95e25a2376565112c
/278/CH6/EX6.2/ex_6_2_2.sce
171cb40af08f4fdebc8b9acd0a131ba5cb1ec294
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512000
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
311
sce
ex_6_2_2.sce
//to find the maximum stress induced D=50//D=50mm d=25//d=12mm r=5 A=(%pi*d^2)/4 disp(A,"Area=") W=12000//W=12kN Ns=W/A disp(Ns,"Nominal Stress=") x=D/d//ratio of maximum diameter to minimum diameter y=r/d//ratio of radius of fillet to minimum diameter Kt=1.64 Ms=Kt*Ns disp(Ms,"Maximum stress=")
483cdebc4de6f6044a30c6f6d85cce4a49f5c584
449d555969bfd7befe906877abab098c6e63a0e8
/2135/CH1/EX1.6/Exa_1_6.sce
9b75af1d66dbd7c2b7ae60d1e23ea59e22c2a38e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
664
sce
Exa_1_6.sce
//Exa 1.6 clc; clear; close; format('v',8); //Given Data : g=9.81;//m/s^2 rho_o=0.825*10^3;//Kg/m^3 rho_w=1*10^3;//Kg/m^3 rho_Hg=13.45*10^3;//Kg/m^3 h_o=50/100;//m h_w=65/100;//m h_Hg=45/100;//m Patm=1.01325;//bar P_Hg=rho_Hg*g*h_Hg;//N/m^2 P_w=rho_w*g*h_w;//N/m^2 P_o=rho_o*g*h_o;//N/m^2 Pbase=(Patm*10^5+P_Hg+P_o+P_w);//N/m^2 disp(Pbase,"Pressure at the base of column in N/m^2 : "); P_OilWater=Patm*10^5+P_o;//N/m^2 disp(P_OilWater,"Pressure at the oil-water surface in N/m^2 : "); P_WaterMercury=Patm*10^5+P_o+P_w;//N/m^2 disp(P_WaterMercury,"Pressure at the water-mercury surface in N/m^2 : "); //Answer in the book is not accurate.
73337838d19e1fb739ed45b436e7fc549dc5671c
44f225adc0be4f9ecb45fb9fde03e74f23d7acb2
/macros/more/grayconnected.sci
04b590f1ed42548738d1b8de56a9e7f8918dac2f
[]
no_license
harpreetrathore/scilab-IPT
10c4996614f1c59972e59decd1b7171e7d5816e0
db79f1370f3cb0a7716a8afcf1cf5fde9fe70aba
refs/heads/master
2021-01-01T04:06:52.573000
2016-05-26T20:34:33
2016-05-26T20:34:33
59,781,201
0
0
null
null
null
null
UTF-8
Scilab
false
false
397
sci
grayconnected.sci
//Function migration (image list to matrix) for: grayconnected //Generated by migrate.cpp //Author: Anirudh Katoch function res = grayconnected(varargin) select length(varargin) case 04 then res = raw_grayconnected(varargin(01), varargin(02), varargin(03), varargin(04)) case 03 then res = raw_grayconnected(varargin(01), varargin(02), varargin(03)) else error(39) end endfunction
7f1fa1e080f04296e4756406dffae5d6de9f0f08
3592fbcb99d08024f46089ba28a6123aeb81ff3c
/testExpMap.sce
952117eab54ab882d3bfd8a77952ca195d95cfa7
[]
no_license
clairedune/sciGaitanLib
a29ab61206b726c6f0ac36785ea556adc9ef03b9
7498b0d707a24c170fc390f7413359ad1bfefe9f
refs/heads/master
2020-12-11T01:51:13.640000
2015-01-28T13:52:26
2015-01-28T13:52:26
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
395
sce
testExpMap.sce
// ok, le test fonctionne. clear getd("src/transformation") dx=[0.1 0 0 0.002 0.004 0]; disp('deplacement dx'); disp(dx); M = homogeneousMatrixFromPos(dx); disp('homogeneous M from dx'); disp(M); dt=0.01; dotx = dx/dt vitesse = expMapInverseThetaU(M,dt) M3 = expMapDirectThetaU(vitesse,dt) deplacement = pFromHomogeneousMatrix(M3); disp('le deplacement resultant est') disp(deplacement)
1e9a9503611e6e597cba85843eca211e23ea94e0
449d555969bfd7befe906877abab098c6e63a0e8
/1109/CH6/EX6.15/6_15.sce
be458485ef22353f742df2d312d56115fb534101
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
428
sce
6_15.sce
clear; clc; Zo=400;ZR=200-(%i*100);lo=3; //lo=wavelength //value os Zo as taken in solution K=(ZR-Zo)/(ZR+Zo); ampK=abs(K); phi=%pi + atan(imag(K)/real(K)); Ls=(lo/(4*%pi))*(phi+%pi-acos(ampK)); printf("Shortest distance from the lead to the stub location = %f metres\n",round(Ls*100)/100); Lt=(lo/(2*%pi))*(atan(sqrt(1-(ampK*ampK)))/(2*ampK)); printf("Length of the short circuited stub = %f metres",fix(Lt*10)/10);
2b01b62ab582571ba81a0f0cb7cc3eb91a29f314
036a77bd5f07b7b2b808ef3d90e92d20bd7b6c33
/hard/tests/functionNegation.tst
bce9d5c8060912b69cba84fd52f11964d7f19d63
[]
no_license
Jaymee-Ericca-7/simple-compiler
186b11486e5af8debdde301acba84851c4545b02
209a8ed43c579a9ce34c63a10083cdbde5546313
refs/heads/master
2020-09-18T06:19:53.304000
2015-08-11T13:44:06
2015-08-11T13:44:06
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
115
tst
functionNegation.tst
int complement(int number) begin return 0 - number; end main begin print(complement(4)); return 0 - 4; end
bc06b6e75a170d0a419933a31196307329ae4e62
6e8df5b4cc6a12833566b3b67b0160d1937be025
/Multimorphic_testing_data_code/code/scilab/coco/scripts/scilab/v2/script_compute_histograms_best_class.sci
874c9c35cf41d023e3af89e530bc6afd3c3adf4c
[]
no_license
templep/TSE_MM_test
2b2cc79b9e6d46a80bf692227f367438adeca3f3
4d3c08489c182b77418fc5d4e55377d5b68e8334
refs/heads/master
2020-03-22T22:01:12.897000
2019-06-13T07:50:42
2019-06-13T07:50:42
140,728,734
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,723
sci
script_compute_histograms_best_class.sci
// load the index of test cases of interest // inputs: // - path: the path to the folder containing the file with indexes of interest // - filename: the file containing indexes of test cases of interest // - nb_elem: number of element (ndexes) to read from the file // output: // - set5: the set containing indexes of test cases of interest // function set5= load_best_set(path,filename,nb_elem) set5 = mgetl(path+filename,nb_elem); endfunction //a function to load all csv files from a given directory // inputs : // - path : the path where files containing observations over executions // - fileregex : a simple regex containing data to process //files containing data to process must be in a csv format with columns separated by ';' //decimal float values given by a '.' and every cell will be intepreted as a string // - idx_test : the indexes of test cases of interest // - idx_prop : indexes of properties of interest // - is_obj_class : if true, consider only object classes // outputs : // - x : a matrix containing every read data contained in files function x=load_csv_files(path,fileregex,idx_test,idx_prop) x=[]; //lut between idx_test and label of the tests //all_data = all_obj_classes all_data = csvRead("../../../../../../data/coco/"+"all_data_dev_obj_class.csv",",",".","string"); all_data(find(all_data(:,1)=="[all]: [all]"),:) = []; unique_text_file = unique(all_data(:,1)); set_label = unique_text_file(idx_test); set_obj_class=[]; for i = 1:prod(size(set_label)) set_obj_class = [set_obj_class; part(set_label(i),1:strindex(set_label(i),': [all]')-1)]; end all_data = csvRead("../../../../../../data/coco/"+"all_data_dev_reduced.csv",",",".","string"); curr_i = []; curr_i = all_data(grep(all_data,set_obj_class),[1:idx_prop]); x=curr_i; endfunction //a function to create histograms needed to compute dispersion scores //it also computates associate dispersion scores to videos //scores and histograms are stored in the given file //inputs : // - data : data to build histograms and dispersion scores // - path : the path to the folder where results will be saved // - filename : the file name containing results (histograms + dispersion score) // - idx_col : the column indexes containing property of interest function process_data(data,path,filename,idx_col) //scan csv data to have proper format (string and double are mixted) -> //everything in string with decimal noted '.' //formatted_data = csvTextScan(data,";",".",'string'); formatted_data = data; //unique filenames contained in the data file (consider one video at a time) unique_text_file = unique(formatted_data(:,1)); //prepare output file (column header) result=["filename","metric","hist"]; //find for each unique filename corresponding rows (= every execution of considered video) for(i=1:size(unique_text_file,1)) //find each row -> index in the matrix of formatted data rows = formatted_data(find(formatted_data(:,1) == unique_text_file(i)),:); //extract corresponding columns and compute histograms as well as dispersion scores [measure,hist] = compute_metric(rows,idx_col); //////store results //because histogram is more than size of matrix -> put into a 1x1 mat //bins are separated by ' ' hist = strcat(hist,' '); //concatenation of results result=[result;unique_text_file(i),measure, hist]; end //save result save_result(result,path,filename); endfunction // computes the histogram of observations and associated dispersion score // the dispersion score is computed as follows: disp(S) = (#bin of histogram ~= 0 / # of programs) // which is the ratio of activated bins to the number of programs to execute // inputs : // - m : a matrix containing observations to build histogram and dispersion score // - idx_col : index of columns of interest containing observations to take into account // outputs : // - measure : the computed dispersion score based on observations // - hist : histogram associated to the dispersion score function [measure, hist]=compute_metric(m,idx_col) measure=[]; //retrieve right data -> column(s)) perf=m(:,idx_col); //convert to double d=strtod(perf); ////prepare histogram //number of bins nb_bins = size(perf,1); cf =[]; ind=[]; //for each column to process for i = 1:size(idx_col,2) //compute histogram between 0 and 1 [tmp_cf,tmp_ind] = histc([0:nb_bins]/nb_bins,d(:,i)); //add to final histogram and frequencies cf = [cf,tmp_cf']; ind=[ind,tmp_ind]; end //finalize dispersion score and convert to string measure = size(unique(ind,'r'),1); measure = measure/nb_bins; measure = string(measure); //histogram also converted to string hist = string(cf); endfunction //a function to save a matrix in a specified filename function save_result(m,path,filename) csvWrite(m,path+filename); endfunction //retrieve label of class s = load_best_set("../../../../../../data/coco/best_sets/","best_set_5_dev_obj_class.txt",5); s_d = strtod(s); //index in double or integers index = [2]; data=load_csv_files("../../../../../../data/coco/Coco_Dev_2017/data/","*",s_d,index) data_d = strtod(data); //convert into double save_result(data,"../../../../../../data/coco/","data_dev_class_best_obj_class.csv"); process_data(data,"../../../../../../results/coco/result_dispersion_score/","metrics_hist_Precision_AP_dev_2017_best_set_obj_class.csv",index);
278737450d04fb9c1aad589a67311f1fa77a3595
449d555969bfd7befe906877abab098c6e63a0e8
/51/CH5/EX5.1/5_1.sce
d115e76ab8d0500f4bfe1c5ad82a7787ad4a79b8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
188
sce
5_1.sce
clc; clear; v2=20;//m/s dia2= 40;//mm //m1=m2 //d1*Q1=D2*Q2; where d1=d2 is density of seawater //hence Q1=Q2 Q=v2*(%pi*((dia2/1000)^2)/4);//m^3/sec disp("m^3/sec",Q,"Flowrate=")
17c2100d11351f6772037e08be1d42d725bf118f
fbd17575bab2ee4dc49cc7d13b5b94d24ab9482c
/TP4/rendre/solsup.sci
fa9b2b7565212960e60619235464d2e071bcb831
[]
no_license
1saac-W/MT09-Analyse-Num-rique
05b509981dfa00e3b7b550716b1487cbbf0a3fed
0853f8053254f5dd23179073187ada3d936aff84
refs/heads/master
2020-09-27T04:34:36.549000
2020-01-05T16:02:18
2020-01-05T16:02:18
226,431,201
0
0
null
null
null
null
UTF-8
Scilab
false
false
411
sci
solsup.sci
function [x] = solsup(u,b) N = length(b); if( size(u)~= [N, N] | size(b,2) ~= 1) then disp("size(u)=",size(u)); disp("size(b,2)=",size(b,2)); disp("incorrct!"); end x = zeros(N,1); x(N)= b(N)/u(N,N); for i = N-1:-1:1 x(i) = b(i); for j = i+1:N x(i) = x(i)-x(j)*u(i,j); end x(i) = x(i)/u(i,i); end endfunction
5dae9eca44c15f3813d4a3de702dfb74f42fd07d
449d555969bfd7befe906877abab098c6e63a0e8
/1553/CH4/EX4.14/4Ex14.sce
06cb2e2c702e0d050c472bc04c3d6250b86284b6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
268
sce
4Ex14.sce
//chapter 4 Ex 14 clc; clear; close; x=poly(0,'x'); y=(34-2*x)/3; //equation 1 y=8*x/5; //equation 2 for x=1:99 if (34-2*x)/3==8*x/5 mprintf("x=%i \n ",x); break end end y=8*x/5; printf("The value of 5*y+7*x is: %d",(5*y+7*x));
7e5457d31c3abbbf8ef0fe7c8f155f9b970bbeb8
28b24ec288a5cf2babf644edafb55fc68a19cabf
/testeN.sce
40c8628169c6f9346f6b5737c8afd816603ca19b
[]
no_license
ferreiraalves/metodos-numericos
5100e3d66613c266203d87880fc5c944bcc81e0e
31162df9dd824c6a621c34a8a1c5c81ee521c470
refs/heads/master
2020-03-25T21:43:35.324000
2018-12-04T14:32:58
2018-12-04T14:32:58
144,187,337
0
0
null
null
null
null
UTF-8
Scilab
false
false
735
sce
testeN.sce
function[Y] = f(x) Y=x^4 + 2x3 13x2 14x + 24 endfunction function[Y] = Df(X) endfunction function[Raiz, Iter, CondErro] = newton(x0, Toler, IterMax) Iter=0; [Fx] = f(x0); [DFx] = Df(x0); printf("Iter\tx\tDFx\tFx\n"); printf("%f\t%f\t%f\t",Iter, x0, DFx, Fx); for i = 1:1:IterMax DeltaX = -Fx/DFx; x=x+DeltaX; [Fx] = f(x); [DFx] = Df(x); Iter=Iter+1; printf("%f\t%f\t%f\t%f",Iter, x, DFx, Fx, DeltaX); if (abs(DeltaX) <= Toler & abs(Fx) <= Toler) | DFx == 0 then break end end Raiz=x; if abs(DeltaX) <= Toler & abs(Fx) <= Toler then CondErro = 0; else CondErro = 1; end endfunction
6022fae825462ab8c6196c407b855b22d2ea8b33
449d555969bfd7befe906877abab098c6e63a0e8
/3683/CH18/EX18.8/Ex18_8.sce
1fa76e8688ae7e166d8f27cd0adf9829d6a9907a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
787
sce
Ex18_8.sce
b=250//column width in mm D=450//column depth in mm Asc=2*1472//in sq mm fck=15//in MPa fy=250//in MPa ex=200//in mm ey=150//in mm //from interaction curve //for ex=200 mm on x-axis Pum1=610//in kN Muy1=120//in kN-m //for ey=150 mm on y-axis Pum2=720//in kN Mux1=106//in kN-m //(i) Pu=300//in kN Mux=Pu*ey/10^3//in kN-m Muy=Pu*ex/10^3//in kN-m Puz=(0.45*fck*(b*D-Asc)+0.75*fy*Asc)/10^3//in kN a=Pu/Puz an=1+1/0.6*(a-0.2) b=(Mux/Mux1)^an+(Muy/Muy1)^an//<1 mprintf("The column can take a load of 300 kN with ex=200 mm and ey=150 mm\n") //(ii) Pu=500//in kN Mux=Pu*ey/10^3//in kN-m Muy=Pu*ex/10^3//in kN-m a=Pu/Puz an=1+1/0.6*(a-0.2) b=(Mux/Mux1)^an+(Muy/Muy1)^an//>1 mprintf("The section is not suitable for a load of 500 kN with ex=200 mm and ey=150 mm\n")
5fe8af2c278d21f85cbe172d47122c6d3cf4d6a6
a5e2e29746cbbbfd0c0bd14cc542cd3ba2bf7d3f
/Sem2_Mathe/random nice shit/Euler_Verfahren2.sci
68c5521461a0f92d629548a3efe482ef13c6c47c
[]
no_license
DonnyAwesome/UNI
99580eabc0ff200eeecb72d866313b89cd28d0cb
c028434b672ae1962c2074fc249012d68a63db2b
refs/heads/master
2020-04-02T13:05:02.067000
2019-02-14T02:14:06
2019-02-14T02:14:06
154,466,384
0
0
null
2018-10-24T08:33:10
2018-10-24T08:33:10
null
UTF-8
Scilab
false
false
228
sci
Euler_Verfahren2.sci
exec dgl2.sci figure(1); clf; mtlb_axis([0 20 -1.5 3]) t = 0; z = [3;0] h = 0.1; while(t < 6 * %pi) plot(t, z(1), 'ob'); plot(t, z(2), '*r'); z = z + h*dgl2(t, z) t = t + h sleep(100) end
bc87eefc1b204c62b94f97dfd02f3792f9ab27a4
449d555969bfd7befe906877abab098c6e63a0e8
/1322/CH15/EX15.10/116ex5.sce
001e3b84964fd114d37d560c007d75c90d816265
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499000
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
71
sce
116ex5.sce
//1/R=1/R1-1/R2. get R clear; clc; close; disp("R=R1R2/(R2-R1)")
c49c64ff92fb78efaabe4149bf0bd6a997ead2c5
b29e9715ab76b6f89609c32edd36f81a0dcf6a39
/ketpicscifiles6/Menkakusi.sci
de8d4b0da2e711bce7e8d5f047b5064f404efaa8
[]
no_license
ketpic/ketcindy-scilab-support
e1646488aa840f86c198818ea518c24a66b71f81
3df21192d25809ce980cd036a5ef9f97b53aa918
refs/heads/master
2021-05-11T11:40:49.725000
2018-01-16T14:02:21
2018-01-16T14:02:21
117,643,554
1
0
null
null
null
null
UTF-8
Scilab
false
false
4,670
sci
Menkakusi.sci
// 08.08.21 // 09.10.24 // 09.10.26 function Menkakusi(Face,Nf,Ptype) global THETA PHI EyePoint FocusPoint VELNO VELHI; Eps0=10^(-6); Eps=10^(-4); Tmp1=Face(1)-Face(2); Tmp2=Face(3)-Face(2); if norm(Tmp1)<Eps | norm(Tmp2)<Eps return; end; Vec=1/norm(Tmp1)/norm(Tmp2)*Crossprod(Tmp1,Tmp2); if norm(Vec)<Eps return; end; if Ptype==-1 W=EyePoint; Tmp=Dotprod(Vec,W-Face(1)); else W=[sin(THETA)*cos(PHI),sin(THETA)*sin(PHI),cos(THETA)]; W=100*W; Tmp=Dotprod(Vec,W-Face(1)); end; if abs(Tmp)<Eps return; end; if Tmp<-Eps Vec=-Vec; end; if Ptype==-1 G1=Projpers(Spaceline(Face)); else G1=Projpara(Spaceline(Face)) end; VL=list(); for I=1:Numptcrv(G1) VL(I)=Ptcrv(I,G1); end; Out1L=list(); Out2L=VELHI; for N=1:length(VELNO) Tmp=VELNO(N); Edge=Tmp(1); Ne=Tmp(2); Nenm=Tmp(3); if Member(Nf,Ne) Out1L($+1)=list(Edge,Ne,Nenm); continue; end; if Ptype==-1 P=Perspt(Edge(1)); Q=Perspt(Edge(2)); else P=Parapt(Edge(1)); Q=Parapt(Edge(2)); end; if norm(P-Q)<Eps continue; end; Tmp=Kyoukai(Mix(G1)); Tmp1=Naigai(P,Tmp); Ng1=Tmp1(1); Tmp1=Naigai(Q,Tmp); Ng2=Tmp1(1); KL=IntersectcrvsPp(Listplot([P,Q]),G1); if Mixlength(KL)==0 if Ng1==0 Out1L($+1)=list(Edge,Ne,Nenm); else Tmp1=(Edge(1)+Edge(2))*0.5-Face(1); Tmp=Dotprod(Tmp1,Vec)/norm(Tmp1); if Tmp>-Eps Out1L($+1)=list(Edge,Ne,Nenm); else Out2L($+1)=list(Edge,Ne,Nenm); end; end; continue; end; Flg=0; for I=1:Mixlength(VL)-1 Tmp=VL(I+1)-VL(I); if norm(Tmp)<Eps continue; end; Tmp1=Crossprod(Tmp,Q-P)/norm(Tmp)/norm(Q-P); if abs(Tmp1)<Eps Flg=1; break; end; end; if Flg==1 Tmp=Mixop(I,VL)-P; if norm(Tmp)<Eps Tmp1=0; else Tmp1=Crossprod(Tmp,Q-P)/norm(Tmp)/norm(Q-P); end; if abs(Tmp1)<Eps then Out1L($+1)=list(Edge,Ne,Nenm); continue; end; end; if Mixlength(KL)==1 Tmp=KL(1); Tmp=Tmp(2)-1; if Tmp<Eps if Ng2==0 Out1L($+1)=list(Edge,Ne,Nenm); else Tmp1=Edge(2)-Face(1); Tmp1=Dotprod(Tmp1,Vec); if Tmp1>-Eps Out1L($+1)=list(Edge,Ne,Nenm); else Out2L($+1)=list(Edge,Ne,Nenm); end; end; continue; end; if Tmp>1-Eps if Ng1==0 Out1L($+1)=list(Edge,Ne,Nenm); else Tmp1=Edge(1)-Face(1); Tmp1=Dotprod(Tmp1,Vec); if Tmp1>-Eps Out1L($+1)=list(Edge,Ne,Nenm); else Out2L($+1)=list(Edge,Ne,Nenm); end; end; continue; end; if Ng1==0 & Ng2==0 Out1L($+1)=list(Edge,Ne,Nenm); else Tmp1=KL(1); Tmp1=Tmp1(1); if Ptype==-1 Tmp=Invperspt(Tmp1,Spaceline(Edge)); else Tmp=Invparapt(Tmp1,Spaceline(Edge)) end; Ak=Tmp(1); if Ng1==1 Tmp1=Edge(1)-Face(1); Tmp1=Dotprod(Tmp1,Vec); if Tmp1>-Eps Out1L($+1)=list(Edge,Ne,Nenm); else Tmp2=list(Ak,Edge(2)); Out1L($+1)=list(Tmp2,Ne,Nenm); Tmp2=list(Edge(1),Ak); Out2L($+1)=list(Tmp2,Ne,Nenm); end; end; if Ng2==1 Tmp1=Edge(2)-Face(1); Tmp1=Dotprod(Tmp1,Vec); if Tmp1>-Eps Out1L($+1)=list(Edge,Ne,Nenm); else Tmp2=list(Edge(1),Ak); Out1L($+1)=list(Tmp2,Ne,Nenm); Tmp2=list(Ak,Edge(2)); Out2L($+1)=list(Tmp2,Ne,Nenm); end; end; end; end; if Mixlength(KL)==2 Tmp1=KL(1); Tmp1=Tmp1(2); Tmp2=KL(2); Tmp2=Tmp2(2); if Tmp1>Tmp2 KL=list(KL(2),KL(1)); end; Tmp=Spaceline(Edge); Tmp1=KL(1); Tmp1=Tmp1(1); Tmp2=KL(2); Tmp2=Tmp2(1); if Ptype==-1 Ak=Mixop(1,Invperspt(Tmp1,Tmp)); Bk=Mixop(1,Invperspt(Tmp2,Tmp)) else Ak=Mixop(1,Invparapt(Tmp1,Tmp)); Bk=Mixop(1,Invparapt(Tmp2,Tmp)) end; Tmp1=(Ak+Bk)*0.5-Face(1); Tmp=Dotprod(Tmp1,Vec); if Tmp>-Eps Out1L($+1)=list(Edge,Ne,Nenm); else Out1L($+1)=list(list(Edge(1),Ak),Ne,Nenm); Out1L($+1)=list(list(Bk,Edge(2)),Ne,Nenm); Out2L($+1)=list(list(Ak,Bk),Ne,Nenm); end; end; end; VELNO=Out1L; VELHI=Out2L; endfunction
c1961cd7ec28e500d9b82ae7daa56902c7695db7
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
/vtr_release/vtr_flow/script_expt2.sce
db3c9b826f5587607b2e496916bd9418b187778d
[ "MIT" ]
permissive
jhasler/rasp30
9a7c2431d56c879a18b50c2d43e487d413ceccb0
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
refs/heads/master
2023-05-25T08:21:31.003000
2023-05-11T16:19:59
2023-05-11T16:19:59
62,917,238
3
3
null
null
null
null
UTF-8
Scilab
false
false
5,242
sce
script_expt2.sce
//load "ota.sci" //load "ota_func.sci" //*********************************** //SCRIPT TO READ FROM MODEL FILE //*********************************** //cd /usr/lib/scicoslab-gtk-4.4.1/macros/scicos_blocks/cadsp/ //LOAD OBJECT FILE global file_name load(file_name) disp("Hello World"); deletefile('expt2.blif') //Loading array vectors //CHECK FOR SCICOS LINK OBJECTS //global variable to store numofip=0; numofop=0; numofblk=0; numoflink=0; inps=0; accblk=1; blk_name=cell([1,1]); link_blk=cell([1,1]); no=length(scs_m.objs); link_name=zeros(1,no); j=1; net=1; objnum=1; ip_count=1;//primary input count op_count=1;//primary output count prime_ips=[]; prime_ops=[]; blk_objs=[]; for i =1:no if(length(scs_m.objs(i) )==8) then // disp("Scicos_link block ",i); //LINK BLOCK CODE numoflink=numoflink+1; link_name(1,numoflink)=i; elseif ( length(scs_m.objs(i) )==1) then //disp("deleted block",i); else //disp ("Obj code ",i); blk(j,1)=i; //blk(j,2)=scs_m.objs(i).gui if(scs_m.objs(i).gui== "IN_f") then prime_ips(ip_count)=j; ip_count=ip_count+1;//primary ip count blk_name.entries(j)= strcat([scs_m.objs(i).gui ,scs_m.objs(i).graphics.exprs(1,1)]) elseif (scs_m.objs(i).gui== "OUT_f") then prime_ops(op_count)=j; op_count=op_count+1; blk_name.entries(j)= strcat([scs_m.objs(i).gui ,scs_m.objs(i).graphics.exprs(1,1)]) else blk_name.entries(j)=scs_m.objs(i).gui; //if (scs_m.objs(i).gui ~= "IN_f" | scs_m.objs(i).gui ~= "OUT_f")then blk_objs(objnum)=j; //BLOCK NUMBER actually stored objnum=objnum+1; //end end j=j+1; numofblk=numofblk+1; //end if(length(scs_m.objs(i).model.in)>numofip) then numofip=length(scs_m.objs(i).model.in); //disp("Yeehoo :",i) end; if(length(scs_m.objs(i).model.out)>numofop) then numofop=length(scs_m.objs(i).model.out); end; end; end; numofio=numofip+numofop;//blknumber+ip+op //disp("Greatest number of inputs", numofip); //disp("Greatest number of outputs", numofop); //disp("Number of blocks", numofblk); //disp("Number of links", numoflink); blk=[blk,zeros(numofblk,numofio)]; link_blk=link_name(1, 1:numoflink); for m=1:numoflink curblk=scs_m.objs(link_blk(1,m)).from(1,1); for r=1:numofblk if(blk(r,1)==curblk) then outofblk=scs_m.objs(link_blk(1,m)).from(1,2); idx=1+numofip+outofblk; blk(r,idx)=net; break; end end curblk=scs_m.objs(link_blk(1,m)).to(1,1); for r=1:numofblk if(blk(r,1)==curblk) then inofblk=scs_m.objs(link_blk(1,m)).to(1,2); idx=1+inofblk; blk(r,idx)=net; net=net+1; break; end end end // primary input string prime_ip_string= '.inputs net'+ string(blk(prime_ips(1),2+numofip)); for s=2: length(prime_ips) prime_ip_string=strcat([prime_ip_string," net",string(blk(prime_ips(s),2+numofip)) ]); end //primary o/p string prime_op_string= '.outputs net'+ string(blk(prime_ops(1),2)); for s=2: length(prime_ops) prime_op_string= prime_op_string + ' net'+ string(blk(prime_ops(s),2)); end disp("blk_objs",blk_objs); disp("blk",blk); disp("numips",numofip); //Writing output .blif file fd_w= mopen ("./expt2.blif",'wt') filename= basename('./expt2.cos') mputl(strcat([".model"," ",filename]) ,fd_w); mputl(prime_ip_string,fd_w) mputl(prime_op_string,fd_w) mclose(fd_w); //other stuff fd_w= mopen ("./expt2.blif",'a') for bl=1:length(blk_objs) if(blk_name.entries(bl)=='ota_2') then mputl("# ota",fd_w) ota_str= '.subckt ota ip1= net' + string(blk(blk_objs(bl),2)) + ' ip2= net'+ string(blk(blk_objs(bl),3)) + ' op1=net'+ string(blk(blk_objs(bl),2+numofip)) mputl(ota_str,fd_w); //mputl(".blackbox",fd_w); //end;//ifota //elseif(blk_name.entries(bl) ~='IN_f' | blk_name.entries(bl) ~='OUT_f') then elseif (blk_name.entries(bl) =='div2') then chdir /home/ubuntu/Downloads/vtr_release/vtr_flow unix_g(' perl /home/ubuntu/Downloads/vtr_release/vtr_flow/scripts/run_vtr_flow.pl /home/ubuntu/Downloads/vtr_release/vtr_flow/benchmarks/verilog/divBy2.v /home/ubuntu/Downloads/vtr_release/vtr_flow/arch/timing/k6_N10_memDepth16384_memData64_40nm_timing.xml -ending_stage scripts') unix_g('cp /home/ubuntu/Downloads/vtr_release/vtr_flow/temp/div* /home/ubuntu/Downloads/vtr_release/vtr_flow/') //unix_g('cd /home/ubuntu/Downloads/vtr_release/vtr_flow ') unix_g('pwd ') unix_g('bash genblif.sh ') //unix_g('cd /usr/lib/scicoslab-gtk-4.4.1/macros/scicos_blocks/cadsp/') chdir /usr/lib/scicoslab-gtk-4.4.1/macros/scicos_blocks/cadsp/ unix_g('cp /home/ubuntu/Downloads/vtr_release/vtr_flow/div2.blif .') unix_g('cat div2.blif >> expt2.blif ') end; end;//for mputl(".end",fd_w) mputl(" ",fd_w) //mputl("Xota Vp vout vout OTA a: Ibo=1e-6",fd_w); mclose(fd_w); unix_g('cat analg_arch.sce >> expt2.blif ') disp("Done writing!")
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
14