blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90ecef522d23fefb8e6898e1d2821d91382154eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3169/CH9/EX9.8/Ex9_8.sce | e22e2caac32f7104a917363638f22a24f6a8a458 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 599 | sce | Ex9_8.sce | //developed in windows XP operating system
//platform Scilab 5.4.1
clc;clear all;
//example 9.8
//calculation of voltage at balance
//given data
V=10000//applied voltage(in V)
R3=1000/%pi//resistance(in ohm) in CD branch
R4=62//variable resistance(in ohm)
Cs=100*10^-12//standard capacitance(in F)
f=50//frequency(in Hz)
C3=50*10^-9//variable capacitor(in F)
//calculation
Rx=C3*R4/Cs
Cx=R3*Cs/R4
omega=2*%pi*f
zx=complex(Rx,-1/(omega*Cx))
VR4=R4*V/(R4+zx)
MVR4=sqrt((real(VR4))^2+(imag(VR4))^2)//magnitude
printf('The voltage across AD branch at balance is %3.1f V',MVR4)
|
e5a6265b0ddc3ba1e1e469f0387bfbbb3ba4c1a7 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.13_8.tst | 35d5c3566c4a43a7557619077e3e03fba638d479 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 14,897 | tst | bow.13_8.tst | 13 25:0.14285714285714285 32:0.5 163:0.25 167:0.1111111111111111 274:0.5 282:1.0 722:0.5 1210:1.0 1754:1.0 2907:0.5 3525:0.25 3988:1.0 4458:0.25 4514:2.0 4534:1.0 5453:0.3333333333333333
13 23:0.2 40:0.3333333333333333 162:1.0 163:0.25 396:0.3333333333333333 447:0.25 492:0.07692307692307693 1121:1.0 1903:0.3333333333333333 3434:0.14285714285714285 4571:0.3333333333333333 4727:1.0 5185:1.0
13 26:1.0 49:0.5 51:1.0 138:0.5 159:0.16666666666666666 167:0.1111111111111111 389:1.0 3434:0.2857142857142857 3718:1.0 4559:1.0 4978:1.0 5247:1.0 5248:1.0 5523:1.0 5558:0.5 6079:1.0 6081:1.0
13 40:0.3333333333333333 49:0.5 138:0.5 253:1.0 608:0.08333333333333333 1898:0.14285714285714285 1924:1.0 5146:1.0 5247:1.0
13 7:0.2857142857142857 49:1.0 70:1.0 175:0.5 195:0.5 259:0.5 372:1.0 398:0.09090909090909091 700:1.0 4559:1.0 4682:1.0 4745:1.0 5321:0.16666666666666666 5453:0.3333333333333333 5558:0.5
13 25:0.14285714285714285 73:1.0 155:1.0 608:0.08333333333333333 3525:0.25 4512:0.3333333333333333 4583:0.2 4745:1.0 4935:0.5 5321:0.16666666666666666
13 16:0.14285714285714285 25:0.14285714285714285 44:1.0 51:2.0 79:2.0 274:0.5 304:1.0 709:0.1 1381:0.5 4458:0.25 4534:1.0 4745:1.0 5321:0.16666666666666666 5453:0.3333333333333333 5592:1.0 5826:1.0 6017:1.0
13 49:0.5 90:0.3333333333333333 167:0.1111111111111111 259:1.0 492:0.07692307692307693 579:1.0 1082:1.0 4437:0.125 4514:1.0 4571:0.3333333333333333 4643:1.0 4745:1.0 5064:1.0 5321:0.16666666666666666
13 31:0.16666666666666666 51:1.0 62:1.0 79:1.0 123:0.018867924528301886 159:0.16666666666666666 220:0.3333333333333333 328:1.0 492:0.07692307692307693 963:0.5 997:1.0 1061:1.0 3487:1.0 3525:0.5 4522:2.0 4559:1.0 4560:1.0 4813:1.0 4984:1.0 5453:0.3333333333333333 5502:1.0 5593:1.0 5941:1.0 6019:2.0
13 16:0.14285714285714285 34:0.125 159:0.16666666666666666 259:0.5 282:1.0 304:1.0 426:0.5 443:0.2 709:0.1 731:1.0 1381:0.5 4518:1.0 4685:0.5 4691:0.5 4978:1.0
13 49:0.5 88:0.5 106:0.16666666666666666 492:0.07692307692307693 1082:1.0 1381:0.5 2653:0.5 3511:1.0 4552:1.0 4571:0.3333333333333333 4618:1.0 4652:1.0 4730:0.2 4782:1.0 4785:1.0 4956:0.3333333333333333 6066:1.0
13 25:0.14285714285714285 51:1.0 1898:0.14285714285714285 3485:1.0 4454:0.16666666666666666 4458:0.25 4583:0.2 4659:1.0 5051:1.0 5126:1.0 5694:1.0 5697:1.0 5827:1.0
13 4745:1.0 4821:1.0 5321:0.16666666666666666
13 3:1.0 25:0.14285714285714285 40:0.3333333333333333 447:0.25 4745:1.0 5321:0.16666666666666666
13 24:1.0 73:1.0 77:1.0 88:0.75 92:1.0 282:1.0 447:0.25 463:0.5 579:1.0 731:1.0 1104:1.0 1898:0.2857142857142857 2609:1.0 3525:0.5 4614:1.0 4730:0.2 4745:1.0 4782:1.0 4917:1.0 4956:0.3333333333333333 5223:1.0 5321:0.16666666666666666
13 24:0.5 88:0.25 259:0.5 447:0.25 709:0.1 836:0.5 3296:1.0 4571:0.3333333333333333 4640:1.0 4745:1.0 4937:1.0 5321:0.16666666666666666 5547:1.0
13 44:3.0 79:1.0 80:1.0 90:0.3333333333333333 373:0.25 608:0.08333333333333333 700:1.0 709:0.1 720:1.0 1061:4.0 1186:1.0 1669:1.0 2080:3.0 4458:0.25 4495:1.0 4534:1.0 4615:0.5 4682:1.0 4696:0.3333333333333333 5039:1.0 5072:1.0 5370:0.5 5741:1.0
13 49:0.5 90:0.3333333333333333 487:0.5 1381:0.5 4136:0.5 4745:1.0 4870:1.0 5169:1.0 5321:0.16666666666666666
13 16:0.14285714285714285 49:0.5 159:0.16666666666666666 167:0.1111111111111111 195:0.5 304:1.0 443:0.2 492:0.07692307692307693 682:1.0 996:1.0 1082:2.0 1381:1.0 2706:1.0 3525:0.5 4626:1.0 4685:0.5 4691:0.5 4745:1.0 5321:0.16666666666666666 5336:0.3333333333333333 5873:1.0
13 23:0.2 32:0.5 34:0.125 49:0.5 167:0.1111111111111111 259:0.5 433:1.0 677:1.0 1061:1.0 1128:1.0 1898:0.14285714285714285 3434:0.14285714285714285 3525:0.25 3977:1.0 4508:0.5 4690:0.14285714285714285 4745:1.0 5321:0.16666666666666666 6075:1.0
13 34:0.125 167:0.1111111111111111 282:1.0 443:0.2 709:0.1 2293:1.0 3776:1.0
13 176:1.0 447:0.25 473:1.0 1082:1.0 1971:1.0 3006:1.0 3434:0.14285714285714285 3977:1.0 5321:0.16666666666666666
13 18:0.5 49:0.5 88:0.25 328:1.0 457:0.6666666666666666 1903:0.3333333333333333 3434:0.14285714285714285 3819:1.0 4454:0.16666666666666666 4745:1.0 5126:1.0 5321:0.16666666666666666
13 107:1.0 167:0.1111111111111111 709:0.1 3434:0.14285714285714285 3525:0.25 4454:0.16666666666666666 4745:1.0 5321:0.16666666666666666
13 447:0.25 608:0.08333333333333333 1903:0.3333333333333333 3434:0.14285714285714285 3525:0.25 4454:0.16666666666666666 4745:1.0 5321:0.16666666666666666
13 163:0.25 175:0.5 373:0.25 426:0.5 447:0.25 731:1.0 1061:1.0 1898:0.14285714285714285 3434:0.2857142857142857 4745:1.0 5321:0.16666666666666666 5370:0.5
13 73:1.0 274:0.5 3434:0.14285714285714285 3525:0.25 4614:1.0 4645:1.0 4745:1.0 4873:1.0 5102:1.0 5321:0.16666666666666666
13 24:1.0 25:0.14285714285714285 225:1.0 243:0.2 428:0.5 443:0.2 460:0.25 492:0.07692307692307693 1381:0.5 1754:1.0 2036:1.0 2457:1.0 3525:0.5 4534:1.0 4654:1.0 4698:2.0 4745:1.0 4821:1.0 5697:2.0
13 25:0.14285714285714285 32:0.5 34:0.125 163:0.5 297:1.0 388:0.3333333333333333 412:0.5 443:0.2 459:0.06666666666666667 460:0.25 492:0.07692307692307693 856:1.0 1489:0.5 2988:1.0 3711:1.0 4504:0.16666666666666666 4614:1.0 4873:1.0 5445:1.0 5546:1.0 5581:1.0
13 13:0.25 18:0.5 23:0.2 25:0.14285714285714285 80:1.0 88:0.25 218:1.0 274:0.5 282:1.0 373:0.25 447:0.25 702:1.0 1394:1.0 1904:1.0 2146:1.0 2609:1.0 3378:1.0 3525:0.5 4458:0.25 4514:2.0 5546:1.0 5560:1.0
13 24:0.5 40:0.3333333333333333 88:0.25 259:0.5 447:0.25 613:1.0 1371:0.1111111111111111 1842:0.5 1898:0.14285714285714285 3525:0.25 4479:1.0 5558:0.5
13 25:0.2857142857142857 31:0.16666666666666666 49:0.5 80:1.0 88:0.25 123:0.018867924528301886 128:1.0 159:0.16666666666666666 259:0.5 282:1.0 320:1.0 444:1.0 447:0.25 709:0.1 1082:1.0 1371:0.1111111111111111 1903:0.3333333333333333 2080:1.0 2866:1.0 3525:0.5 4594:0.3333333333333333 4813:1.0 4867:1.0 5102:1.0 5355:1.0
13 25:0.14285714285714285 44:1.0 49:0.5 492:0.07692307692307693 611:0.3333333333333333 1150:0.16666666666666666 1381:0.5 1532:0.5 4457:1.0 5476:1.0
13 14:0.3333333333333333 16:0.14285714285714285 24:0.5 32:0.5 38:0.5 90:0.3333333333333333 98:0.3333333333333333 123:0.018867924528301886 159:0.16666666666666666 163:0.25 167:0.3333333333333333 243:0.2 697:1.0 872:1.0 989:0.3333333333333333 1381:0.5 1736:1.0 2454:1.0 3525:0.25 5663:0.5
13 16:0.14285714285714285 23:0.2 24:0.5 25:0.42857142857142855 33:1.0 44:1.0 156:0.5 167:0.2222222222222222 243:0.2 304:1.0 306:0.3333333333333333 459:0.06666666666666667 506:0.5 619:0.5 709:0.2 980:1.0 1186:1.0 1381:0.5 1733:1.0 3525:0.75 4571:0.3333333333333333 4690:0.14285714285714285 5160:1.0 5665:1.0
13 7:0.14285714285714285 16:0.14285714285714285 23:0.2 243:0.2 259:0.5 304:1.0 443:0.2 709:0.1 3525:0.25 4512:0.3333333333333333 4583:0.2 4682:1.0 4745:1.0 5558:0.5
13 24:0.5 31:0.16666666666666666 44:1.0 90:0.3333333333333333 91:0.5 167:0.1111111111111111 709:0.1 1061:1.0 1380:0.5 3525:0.5 4479:1.0 4571:0.3333333333333333 4690:0.14285714285714285 4959:1.0 5912:1.0
13 49:0.5 88:0.25 492:0.07692307692307693 1082:1.0 3511:1.0 4571:0.3333333333333333 4618:1.0 4730:0.2 4782:1.0 4785:1.0 4956:0.3333333333333333 4981:1.0 6066:1.0
13 32:0.5 40:0.3333333333333333 49:1.0 75:1.0 159:0.16666666666666666 163:0.25 167:0.2222222222222222 179:0.3333333333333333 259:0.5 492:0.07692307692307693 720:1.0 1784:1.0 1903:0.3333333333333333 2719:1.0 4645:1.0 4718:1.0 4960:1.0 4961:1.0 5421:1.0 5558:0.5
13 24:0.5 25:0.2857142857142857 88:0.25 162:1.0 3525:0.25 4532:1.0 4563:0.5 4661:2.0
13 25:0.14285714285714285 44:1.0 159:0.16666666666666666 3525:0.25 4620:1.0 4690:0.14285714285714285 4745:1.0 5430:1.0
13 492:0.15384615384615385 608:0.08333333333333333 1381:0.5 2325:1.0 3267:1.0 4529:0.16666666666666666 5212:1.0 5558:0.5
13 4487:1.0
13 123:0.018867924528301886 1381:0.5 4458:0.25 5558:0.5 5665:1.0
13 123:0.018867924528301886 720:1.0 4508:0.5 5558:0.5
13 23:0.2 167:0.1111111111111111 608:0.08333333333333333 1904:1.0 2698:1.0 2889:1.0 4454:0.16666666666666666 4458:0.25 4561:1.0 4654:1.0 4906:1.0 5558:0.5 5663:0.5
13 24:0.5 62:1.0 92:1.0 124:1.0 224:1.0 310:1.0 797:1.0 1381:1.0 3434:0.14285714285714285 3548:1.0 4452:0.16666666666666666 4559:1.0 4592:1.0 4865:0.25
13 34:0.125 79:1.0 90:0.3333333333333333 274:0.5 376:1.0 4529:0.16666666666666666 4621:1.0 4648:1.0 4869:1.0 5558:0.5 5714:1.0
13 88:0.25 90:0.3333333333333333 123:0.018867924528301886 167:0.1111111111111111 388:0.3333333333333333 393:1.0 460:0.25 4429:0.5 4447:1.0 4754:0.5
13 88:0.25 282:1.0 709:0.1 1061:1.0 1381:0.5 4454:0.16666666666666666 5272:1.0 5963:1.0
13 25:0.14285714285714285 80:1.0 6054:1.0
13 25:0.14285714285714285 32:0.5 49:0.5 428:0.5 492:0.07692307692307693 608:0.08333333333333333 1082:1.0 4437:0.125
13 24:0.5 49:0.5 175:0.5 1381:0.5 3525:0.5 4456:1.0 4626:1.0 4654:1.0 4696:0.3333333333333333 5558:0.5 5953:1.0
13 20:0.16666666666666666 34:0.125 49:0.5 51:1.0 167:0.1111111111111111 259:1.0 525:0.3333333333333333 709:0.1 1381:0.5 1470:1.0 2080:1.0 2293:1.0 4224:1.0 4429:0.5 4626:1.0 4817:1.0 5558:0.5
13 49:1.0 88:0.5 106:0.16666666666666666 229:1.0 259:1.0 426:0.5 459:0.06666666666666667 661:1.0 1381:0.5 1382:1.0 1903:0.3333333333333333 3525:0.5 4456:1.0 4457:1.0 4458:0.25 4461:1.0 4583:0.2 4615:0.5 4626:1.0
13 31:0.16666666666666666 138:0.5 163:0.25 882:1.0 1381:0.5 2865:1.0 2866:1.0 3525:0.25 5077:1.0 5335:1.0 5748:1.0 6007:1.0
13 25:0.14285714285714285 49:0.5 809:1.0 1150:0.16666666666666666 4507:0.5 5158:1.0 5918:1.0
13 49:0.5 259:0.5 330:1.0 608:0.08333333333333333 963:0.5 1470:1.0 4583:0.2 4745:1.0 4928:1.0 5558:0.5
13 282:1.0 709:0.1 1904:2.0 3525:0.25 4560:1.0 5375:1.0 5836:1.0
13 25:0.14285714285714285 49:0.5 123:0.018867924528301886 167:0.1111111111111111 282:1.0 388:0.3333333333333333 506:0.5 1398:1.0 1736:1.0 2865:1.0 3525:0.75 4512:0.3333333333333333 4553:1.0 4563:0.5 4583:0.2 5453:0.3333333333333333
13 32:0.5 709:0.1 2387:1.0 3525:0.25 4454:0.16666666666666666 4458:0.25 4512:0.3333333333333333 4583:0.2 5697:1.0
13 40:0.3333333333333333 138:0.5 259:0.5 2893:1.0 3434:0.14285714285714285 3525:0.25 4443:1.0 4583:0.2 5663:0.5 5744:1.0 6081:1.0
13 23:0.2 80:2.0 2080:1.0 3525:0.25 4458:0.25 4534:1.0 4990:1.0 5373:1.0 6077:1.0 6078:1.0
13 259:0.5 328:1.0 443:0.2 2973:1.0 4696:0.3333333333333333 4745:1.0
13 88:0.25 167:0.1111111111111111 229:1.0 259:1.0 816:0.5 1398:1.0 1747:1.0 2835:1.0 3525:0.75 3857:1.0 4224:1.0 4626:1.0 4858:1.0 5730:1.0
13 25:0.14285714285714285 34:0.125 38:0.5 49:1.0 80:1.0 90:0.3333333333333333 318:1.0 809:1.0 817:1.0 1842:0.5 1901:1.0 2966:1.0 3378:1.0 3525:0.25 3934:1.0 4479:1.0 4730:0.2 5826:1.0
13 14:0.3333333333333333 24:0.5 25:0.14285714285714285 31:0.16666666666666666 32:0.5 90:0.3333333333333333 159:0.16666666666666666 167:0.4444444444444444 224:1.0 234:0.16666666666666666 486:1.0 506:0.5 697:1.0 709:0.1 1348:1.0 1381:0.5 1736:1.0 2719:1.0 2865:1.0 3525:0.25 4431:1.0 4745:1.0 5130:1.0 5152:1.0
13 16:0.14285714285714285 48:1.0 426:0.5 492:0.07692307692307693 567:0.5 1381:0.5 4454:0.16666666666666666 4711:1.0 6013:1.0
13 7:0.14285714285714285 8:0.5 14:0.3333333333333333 16:0.14285714285714285 25:0.14285714285714285 90:0.3333333333333333 304:1.0 447:0.25 492:0.07692307692307693 1842:0.5 2187:1.0 2573:0.5 3434:0.2857142857142857 4479:1.0 4641:1.0 4745:1.0
13 49:0.5 90:0.3333333333333333 259:0.5 447:0.25 1167:1.0 3434:0.14285714285714285 4504:0.16666666666666666 4514:1.0 4626:1.0 4745:1.0 4961:1.0 4985:1.0
13 23:0.2 25:0.14285714285714285 31:0.16666666666666666 44:1.0 90:0.3333333333333333 274:0.5 447:0.25 1470:1.0 1856:1.0 2702:0.3333333333333333 3525:0.25 4682:1.0 4690:0.14285714285714285 4762:1.0 5321:0.16666666666666666 5365:1.0 5558:0.5
13 24:0.5 25:0.14285714285714285 328:1.0 1148:1.0 1407:1.0 4136:0.5 4512:0.3333333333333333 4745:1.0
13 25:0.2857142857142857 40:0.3333333333333333 73:1.0 447:0.25 1470:1.0 2866:1.0 4682:1.0 4711:1.0 4925:1.0 4945:1.0 5558:0.5
13 7:0.14285714285714285 18:0.5 123:0.018867924528301886 186:1.0 234:0.16666666666666666 443:0.2 731:1.0 1381:0.5 4518:1.0 4529:0.16666666666666666 4559:1.0 4698:1.0 4730:0.2 4745:1.0 4865:0.25
13 1836:1.0 2831:1.0
13 167:0.1111111111111111 260:1.0 287:0.5 937:1.0 4454:0.16666666666666666 5039:1.0 5828:1.0
13 25:0.14285714285714285 32:0.5 1381:0.5 1382:1.0 2643:1.0 4865:0.25 4894:0.5 5163:1.0 5171:1.0 5596:1.0 5663:0.5 5824:1.0
13 48:1.0 88:0.25 709:0.1 1401:1.0 2643:1.0 4454:0.16666666666666666
13 20:0.16666666666666666 31:0.16666666666666666 73:1.0 175:0.5 259:0.5 310:2.0 4225:1.0 4554:1.0 4682:1.0 4683:0.5 4747:0.3333333333333333 5655:1.0
13 49:0.5 135:0.5 167:0.1111111111111111 506:0.5 720:1.0 969:1.0
13 23:0.2 25:0.14285714285714285 40:0.3333333333333333 159:0.16666666666666666 167:0.1111111111111111 433:1.0 1382:1.0 3378:1.0 3955:1.0 4514:1.0 4928:1.0 5873:1.0
13 23:0.2 40:0.3333333333333333 49:0.5 107:1.0 138:0.5 159:0.16666666666666666 167:0.1111111111111111 259:0.5 720:1.0 1374:1.0 1381:0.5 1382:1.0 1747:1.0 1903:0.3333333333333333 3525:0.25 3981:1.0 4454:0.16666666666666666 4504:0.16666666666666666 4512:0.3333333333333333 4743:1.0 4865:0.25 4928:1.0 5326:1.0
13 23:0.2 49:1.0 68:0.3333333333333333 138:0.5 388:0.3333333333333333 428:0.5 443:0.2 492:0.15384615384615385 608:0.08333333333333333 836:0.5 1249:1.0 1371:0.1111111111111111 1381:0.5 1470:1.0 1898:0.14285714285714285 4136:0.5 4429:1.0 4614:1.0 4645:1.0 4817:1.0 4935:0.5 5286:1.0
13 24:0.5 90:0.3333333333333333 420:0.5 1842:0.5 4454:0.16666666666666666 4512:0.3333333333333333 4563:0.5 4583:0.2
13 24:0.5 25:0.14285714285714285 243:0.2 334:1.0 2869:1.0 2900:1.0 4583:0.2 4671:1.0
13 88:0.25 259:0.5 282:1.0 798:1.0 1061:1.0 3434:0.2857142857142857 3525:0.25 4698:1.0 5435:1.0 5734:1.0
13 31:0.16666666666666666 88:0.25 106:0.16666666666666666 234:0.16666666666666666 372:1.0 4488:1.0
13 274:0.5 428:0.5 2458:1.0 2890:1.0 3434:0.14285714285714285
13 320:1.0 4863:1.0 5503:1.0
13 31:0.16666666666666666 49:0.5 259:0.5 443:0.2 1381:0.5 1903:0.3333333333333333 3434:0.14285714285714285 3525:0.25 4605:1.0 4643:1.0 4746:1.0 4797:1.0 5370:0.5
13 25:0.14285714285714285 4456:1.0 4467:1.0 4657:1.0 5143:1.0
13 49:0.5 88:0.5 123:0.018867924528301886 282:1.0 1090:0.3333333333333333 1150:0.16666666666666666 4433:2.0 4796:1.0
13 24:0.5 34:0.125 40:0.3333333333333333 123:0.018867924528301886 175:0.5 428:0.5 3434:0.14285714285714285 3718:1.0 4459:1.0 4654:1.0 5225:1.0
13 175:0.5 731:1.0 1382:1.0 4685:0.5 4906:1.0 5051:1.0 5134:1.0 5224:1.0
13 175:0.5 692:1.0 731:1.0 1382:1.0 3525:0.25 3619:1.0 4685:0.5 4849:1.0 4906:1.0 4942:1.0 5134:1.0
13 40:0.3333333333333333 49:0.5 3356:1.0 3434:0.14285714285714285 4514:1.0 4696:0.3333333333333333 4803:1.0
13 49:0.5 274:0.5 1082:1.0 3434:0.14285714285714285 4437:0.125
13 7:0.14285714285714285 8:0.5 25:0.14285714285714285 49:0.5 62:1.0 88:0.25 159:0.16666666666666666 163:0.25 234:0.16666666666666666 328:1.0 444:0.5 579:1.0 608:0.08333333333333333 700:1.0 990:1.0 1371:0.1111111111111111 1896:1.0 2134:1.0 4456:1.0 4457:1.0 4475:1.0 4476:1.0 5064:1.0
13 24:0.5 25:0.14285714285714285 88:0.25 234:0.16666666666666666 4458:0.25 4488:1.0
|
7524697501eb780eba94eacfbd126a764b4295e3 | a64701f569e51700e946b5eaf53f349984606883 | /PM.sce | 37b068b6085f194e38196b6b44cf94f1923e5c21 | [] | no_license | Connorrr/Prospective-Memory-S3---Andrew-Presentation | dd1254fee7226717fcaa2a2738d0bd6e04dd2d6f | 4784895f25443c083186040b823d7dbd93411f45 | refs/heads/master | 2021-01-01T04:05:47.139206 | 2016-05-09T03:51:32 | 2016-05-09T03:51:32 | 57,353,512 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,507 | sce | PM.sce | #Function: PM.sce
#Description: Scenario File for Prospective Memory
#Programmer: Connor Reid
#Created@: 7/7/14
#LastMod@: 29/04/16
#-------------------------------------------------------------------
scenario = "PM";
response_matching = simple_matching;
no_logfile = true;
active_buttons = 34;
button_codes = 1, 2, 3, 4, 5, 6, 7, 8 ,9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34;
default_background_color = 0,0,0;
default_font_size = 65;
write_codes = true; #write codes to port
pulse_width = 10; #if port is parallel
pcl_file = "PM.pcl";
begin;
text {caption = "tmp"; font_size = 18;} ot_instructions_text;
trial{
trial_duration = forever;
trial_type = first_response;
stimulus_event{
picture{}instructions_pic;
response_active = true;
}instructions_stim_event;
}instructions;
trial{
trial_duration = 3000;
trial_type = fixed;
picture{
text{
caption = "You have now completed all trials. Thank you for your participation.";
font_size = 18;
}goodbye_text; x = 0; y = 0;
}goodbye_pic;
}goodbye_trial;
trial{
trial_duration = 1600;
trial_type = first_response;
stimulus_event{
picture{
text { caption = "1"; } stim_trial_text; x = 0; y = 0;
}stim_trial_pic;
response_active = true;
}stim_trial_event;
}stim_trial;
trial{
trial_duration = 500; #STUDY 1 THIS WAS SET TO 800ms
trial_type = fixed;
picture{
text{ caption = "+"; font_size = 48;}fixation_text; x = 0; y = 0;
}fixation_pic;
}fixation_trial;
trial{
trial_duration = 100;
trial_type = fixed;
picture{}short_blank_pic;
}short_blank_trial;
trial{
trial_duration = 800; #THIS IS THE TIME THE SCREEN GOES BLANK BETWEEN A STIMULUS PRESENTATION AND NEXT FIXATION POINT...STUDY 1 THIS WAS SET TO 1000ms
trial_type = fixed;
picture{}short_blank_pic2;
}short_blank_trial2;
trial{
trial_duration = forever;
trial_type = specific_response;
terminator_button = 3;
picture{
text{caption = "Please press the Space-Bar when you are ready"; font_size = 30;}space_txt; x = 0; y = 0;
}space_pic;
}space_trial;
trial{
trial_duration = forever;
trial_type = specific_response;
terminator_button = 3;
picture{
text{caption = "Please press re-position your fingers on the Keyboard, then press the space-bar when you are ready to continue!"; font_size = 30;}reposition_text; x = 0; y = 0;
}reposition_pic;
}reposition_trial;
trial{
trial_duration = 2000;
trial_type = fixed;
picture{
text{caption = "Target letter is"; font_size = 30;}target_letter_txt; x = 0; y = 0;
}target_letter_pic;
}target_letter_trial;
trial{
trial_duration = 1200;
trial_type = fixed;
picture{
text{ caption = "+"; font_size = 48;}short_fixation_text; x = 0; y = 0;
}short_fixation_pic;
}short_fixation_trial;
trial{
trial_duration = forever;
trial_type = first_response;
stimulus_event{
picture{
text { caption = "A"; } target_trial_text; x = 0; y = 0;
}target_trial_pic;
response_active = true;
}target_trial_event;
}target_trial;
trial{
trial_duration = 2000;
trial_type = first_response;
picture{
text{caption = "That was the wrong key, please try again"; font_size = 18;}return_txt; x = 0; y = 0;
}return_pic;
}return_trial;
trial{
trial_duration = 500;
trial_type = fixed;
picture{
bitmap{ filename="img/tick.JPG"; scale_factor = 0.4;}response_bitmap; x = 0; y = 0;
}practice_response_pic;
}practice_response_trial;
trial{
trial_duration = 1000;
trial_type = fixed;
picture{
}blank_pic;
}blank_trial; |
95e28c5b79155fca9f74e062fff209e5721fd2f6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2279/CH4/EX4.2/Ex4_2.sce | 573c7465b6c0c9fe5f73e40241fe4e19d91c4bf7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 197 | sce | Ex4_2.sce | //Example 4.2
//Convolution sum of x[n] and h[n]
clc
clear
n=-1:1;
n1=-2:2;
x=[0.5 0.5 0.5];
h=[3 2 1];
y=coeff(poly(h,'z','c')*poly(x,'z','c'))
disp("Convolution of x[n] and h[n] is...")
disp(y)
|
10e83f7a8c31e49e0d196efe748f0c0e416a3d17 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH4/EX4.16/4_16.sce | 802c8ca54f740d36070cdc48ff5c90bce456d6c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 357 | sce | 4_16.sce | clc
clear
//Initialization of variables
q=240 //ft^3/sec/ft
v1=60 //ft/s
gam=62.4
rho=1.94 //slug/ft^3
g=32.2 //ft/s^2
//calculations
y1=q/v1
v2=8.6 //ft/s
y2=28 //ft
hl= (y1+ v1^2 /(2*g)) - (y2+ v2^2 /(2*g))
hpp=hl*q*gam/550
//results
printf("Downstream depth = %.1f ft",y2)
printf("\n Horsepower dissipation = %d hp per foot width",hpp)
|
2980fe79d171d2ad4008308dec3ae0d6a8206dbc | 449d555969bfd7befe906877abab098c6e63a0e8 | /409/CH25/EX25.3/Example25_3.sce | c74eaadf1a96450df442429a596759507959764f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 670 | sce | Example25_3.sce | clear ;
clc;
// Example 25.3
printf('Example 25.3\n\n');
//page no. 771
// Solution
// Given
// The main reaction is 4*NH3(g) + 5*O2(g) --> 4*NO(g) + 6*H2O (A)
H_fNH3 = -46.191 ;// Standard heat of formation of NH3 -[kJ/ g mol]
H_fO2 = 0 ;//Standard heat of formation of O2 -[kJ/ g mol]
H_fNO = 90.374 ;// Standard heat of formation of NO -[kJ/ g mol]
H_fH2O = -241.826 ;// Standard heat of formation of H2O -[kJ/ g mol]
// Heat of above reaction is calculated by eqn. 25.1
H_rxn = ((4*H_fNO + 6*H_fH2O) - (4*H_fNH3 + 5*H_fO2))/4 ;// Heat of above reaction-[kJ/ g mol NH3]
printf('Heat of above reaction is %.3f kJ/g mol NH3.',H_rxn) ; |
9cd69d7400c68f3dc4e69e8792799526adc2d9f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3547/CH10/EX10.1/EX10_1.sce | 2e3655c4a3e4bfaf7014507bef042a9ecabb41da | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 471 | sce | EX10_1.sce | // Example 10.1
// Calculation of the non linear coeffifient.
// Page no 429
clc;
clear;
close;
//Given data
n2=2.5*10^-20; // Kerr coefficient
lambda=1550*10^-9; // Wavelength
A=80*10^-12; // Effective area
// Non linear coeffifient
g=(n2*2*%pi)/(lambda*A);
g=g*10^3;
//Displaying results in the command window
printf("\n Nonlinear coefficient = %0.3f W^-1m^-1 ",g);
|
9d199c1572aa106075f9c032d83c3eba68c99d72 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1598/CH2/EX2.4/ex2_4.sce | 8c5cc4a8de2b47987e6bfeccc17c2df2ea1f9dd5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 700 | sce | ex2_4.sce | clc;
disp("Example2.4");
v=3500; //volume in metre cube.
n1=370-300; //no. of audience on wooden seats.
n2=300-70; //no. of empty wooden seats.
a1s1=0.04*60; //absorption due to wooden doors.
a2s2=0.03*700; //absorption due to plastered walls.
a3s3=0.06*50; //absorption due to glass work.
a4s4=4.2*370; //absorption due to audience on spungy and wooden
//seats.
a5s5=2*230; //absorption due to empty seats.
sum=a1s1+a2s2+a3s3+a4s4+a5s5; //total absorption of cinema hall.
T=(0.165*v)/sum; //calculating T using Sabine Formula.
disp(T,"Reverberation Time = "); //Displaying Result. |
727d908c54903681f6ec8bbf59d4c84e8462bb42 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3755/CH8/EX8.8/Ex8_8.sce | 926bc10a1c62dd957aca46cfa4f8d06dfac5a6a4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 271 | sce | Ex8_8.sce | clear
//
//
//
//Variable declaration
a=4.28*10^-10; //side(m)
e=1.6*10^-19; //charge of electron
//Calculation
n=2/(a^3);
RH=-1/(n*e); //hall coefficient(m^3/C)
//Result
printf("\n hall coefficient is %0.3f *10^-9 m^3/C",RH*10^9)
|
4dad7f16ba3e7913444efb94a20511372f74522a | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/jintgen/not_lvalue_05.tst | 04f7fcc20c2fe2b7173724e5f6ad9fa9a55cb04f | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | tst | not_lvalue_05.tst | // @Harness: verifier
// @Purpose: "Test for syntactic Lvalue correctness"
// @Result: "NotAnLvalue @ 7:8"
architecture not_lalue_01 {
operand-type A[5]: int [0,31];
subroutine foo(a: A): void {
read(a) = 0;
}
}
|
e91634a1b5d9e31e4a83b4fc2208ade4f3ab7903 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1664/CH11/EX11.3/Ex11_3.sce | 74e8123f8b320a5babba94aec6487bd65c5ec318 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 260 | sce | Ex11_3.sce |
//Example NO.11.3
//Page No.336
clc;clear;
E0 = (8.854*10^-12);
Er = (6);//Dielectric constant.
E = 100;//Electric field intensity -[V/m].
P = (E0*(Er-1)*E);//Polarization.
printf("\nPolarization produced in a dielectric medium is %3.3e C/m^2",P);
|
5edbb74236a36ec985aef6fd5ae18ec161b08afc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3733/CH17/EX17.8/Ex17_8.sce | 993d1c72fd11c298ca23ebb7bb09a132bd1007f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,548 | sce | Ex17_8.sce | // Example 17_8
clc;funcprot(0);
//Given data
T_s=38;// The temperature of the steam entering the condenser in °C
T_a=34;// The temperature of the air entering the air pump in °C
T_c=36;// The temperature of the air of the condensate in °C
m_a=3;// kg/hr
m_c=8000;//The condensate removed in kg/hr
R=287;// J/kg.k
//Calculation
//(a)
//From steam table, a saturation temperature at 38°C
p_s1=0.0676;// bar
p_a1=0.0;// bar
p_t=p_a1+p_s1;// bar
//From steam table, a saturation temperature at 34°C
v_s1=26.5;// kg/hr
p_s=0.0542;// bar
p_a=p_t-p_s;// Partial pressure of air at the entry of air pump in bar
V_1=(m_a*R*(T_a+273))/(p_a*10^5);// m^2/hr
//(b)
// From steam table, a saturation temperature at 36°C
v_s2=24;// kg/hr
p_s=0.0606;// bar
p_a=p_t-p_s;// bar
V_2=(m_a*R*(T_c+273))/(p_a*10^5);// m^2/hr
V=m_c*0.001006;// m^3/hr
Tv=V_2+V;// Total volume removed by wet air pump in m^3/hr
Pi_apc=((Tv-V_1)/V_1)*100;// Percentage increase in air-pump capacity in %
m_wd=(V_1/v_s1);// Mass of water vapour carried with air when dry air-pump is used to remove the air in kg/hr
m_ww=(Tv/v_s2);// Mass of water vapour carried with air when wet air-pump is used to remove the air in kg/hr
Pi_lwv=((m_ww-m_wd)/m_wd)*100;// Percentage increase in loss of water vapour
printf('\n(a)The Capacity of the air pump=%0.0f m^3/hr \n(b)Percentage increase in air-pump capacity=%0.0f percentage \n Percentage increase in air-pump capacity=%0.1f percentage',Tv,Pi_apc,Pi_lwv);
// The answer vary due to round off error
|
6ce00ea3b23a36ca29f717da57a3925976b98252 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/m2sci/warning.sci | 2a412a9027e1406e1069d0c3a8343ba7d0176f24 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 85 | sci | warning.sci | function []=warning(txt)
//
//!
// Copyright INRIA
write(logfile,'WARNING:' +txt)
|
41a03aa7f7a303cd7e88c9223725215d9a1f7cba | 449d555969bfd7befe906877abab098c6e63a0e8 | /1019/CH8/EX8.6/Example_8_6.sce | 5afde5050008624dbe5e71b809aedfd22242d146 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 636 | sce | Example_8_6.sce | //Example 8.6
clear;
clc;
//Given
T=298;//temperature in K
R=8.314;//gas constant in J K^-1 mol^-1
p=101325;//pressure in N m^-2
MoNH3=-16.6;//standard chemical potential of amonia at 298 K in kJ mol^-1
MoN2=0;//standard chemical potential of nitrogen at 298 K in kJ mol^-1
MoH2=0;//standard chemical potential of hydrogen at 298 K in kJ mol^-1
//To determine the value of equillibrium constant Kp
delGo=MoN2+(3*MoH2)-(2*MoNH3);//delGo in kJ
k=(-1000*delGo)/(R*T);//k=log(Kp)
Kp=exp(k);//equillibrium constant Kp
mprintf('Change in free energy,delGo=%f kJ',delGo);
mprintf('\n Equillibrium constant,Kp=%f',Kp);
//end |
63a68e5454720917be422cf5ed2e3555bbb09cc2 | 52cbfb547384bc9612dc59f5280971ed5a701a9d | /Discrete Exponential Signal.sce | 0eacbae50a98f8b2bfa7a4f387868d65fd9d9f68 | [] | no_license | allenbenny419/Scilab-Codes | efa5402bea6d03088f77dafcf9ed87bd1f93e915 | 48109cd70c8a66a56e87f88152e866565dd52362 | refs/heads/main | 2023-06-23T21:10:24.227426 | 2021-07-21T11:09:15 | 2021-07-21T11:09:15 | 388,086,261 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 108 | sce | Discrete Exponential Signal.sce | clear;
clc;
x=0:1:6
plot2d3(x,exp(x));
xlabel('t')
ylabel('y')
xtitle('Discrete Exponential Signal')
|
4a15e91d1414d5432eb6cdddc0920b1f1ead7c97 | 4e9df66700bcf9688afe22df0009cdf4a17bc61f | /Scilab_Lab/scimage/ch03/LBG.sci | 69e99f48aee8b66fd524a607bf57050ec41c1a26 | [] | no_license | vmebus/workspace | e18947a1f967e6a3a7dfbc5cce6f92380d8637fc | f251b8a8e6cec30a77c7ef7b4103c5ee6e6d1393 | refs/heads/master | 2021-01-09T21:53:45.183564 | 2015-10-03T06:42:23 | 2015-10-03T06:42:23 | 36,120,248 | 0 | 0 | null | null | null | null | BIG5 | Scilab | false | false | 2,311 | sci | LBG.sci | //函式LBG.m: LBG訓練法//
function [I_codebook,O_distortion]=LBG(t_image,nc,nd,th)
//I_codebook:最後所得之碼簿//
//O_distortion:向量到最後所得碼簿之間的平均誤差//
//t_image:訓練資料//
//Rearrangement of the training image//
[row,col]=size(t_image);
nt=row*col/nd;
R_image=[];
sqrt_nd=sqrt(nd);
x_count=fix(col/sqrt_nd);
y_count=fix(row/sqrt_nd);
for i=1:1:y_count
for j=1:1:x_count
r_image=t_image((i-1)*sqrt_nd+1:i*sqrt_nd,(j-1)*sqrt_nd+1:j*sqrt_nd);
R_image=[R_image;r_image(1:nd)];
end
end
//Read training data and group the data into training vectors//
ratio=fix(y_count*x_count/nt);
T_image=[];
for i=1:ratio:ratio*nt
T_image=[T_image;i;R_image(1:nd)];
end
//製造初始碼簿//
ratio=fix(y_count*x_count/nc);
I_codebook=[];
for i=1:ratio:ratio*nc
I_codebook=[I_codebook;i;R_image(1:nd)];
end
//LBG Algorithm//
disp('Begin LBG algorithm,and wait........');
Dt=[];
converge=1;
I_count=1;
Dt(1)=%inf;
while(converge)
//步驟 1 : 將碼簿內容當作重心,將所有的向量分類至這些區間//
T_dis=0;
for i=1:1:nt
P_dis=%inf;
P_index=0;
//將每一個向量均歸類到與其距離最短的重心那一類//
for j=1:1:nc
dis=((T_image(i,:)-I_codebook(j,:))*(T_image(i,:)-I_codebook(j,:))');
if dis<P_dis
P_dis=dis;
P_index=j; //歸類
end
end
T_dis=T_dis+P_dis/nd;
id(i)=P_index;
end
Dt=[Dt,T_dis/nt];
//步驟 2 : 重新計算每一個分類區間的重心並取代先前的碼簿內容//
for i=1:1:nc
count=0;
U_codebook=zeros(1,nd);
for j=1:1:nt
if id(j)==i
U_codebook=U_codebook+T_image(j,:);
count=count+1;
end
end
if count>0
I_codebook(i,1:nd)=U_codebook/count;
end
end
//步驟 3 :計算並判斷向量到其分類重心之間的平均誤差是否小於收斂臨界值th//
disp('Distortion of current iteration =');
disp(T_dis/nt);
I_count=I_count+1;
//判斷前一次和這一次的平均誤差的修正量是否小於th//
if abs((Dt(I_count-1)-Dt(I_count))/Dt(I_count-1))<th
converge=0;
end
end
O_distortion= T_dis/nt; //最後的平均誤差
disp('End of the LBG algorithm');
//endfunction
|
925645ee2c175b5d19d6aaf883d8438f3fb3d1d5 | 04e4dfecf86c47abbad9ad721bcbc552300a8834 | /mpc/mpc_init_local.sce | 189862b62bb73b0bec362ac143bb2d1b0ca1600a | [] | no_license | rupakrokade/scilab_local_codes | 702f741a5cadc6da56e428f7379971818238ff22 | 4de8383487def7f18a1f19906397ed4eaf42480e | refs/heads/master | 2021-01-19T06:58:47.689324 | 2015-10-24T11:55:34 | 2015-10-24T11:55:34 | 26,806,574 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 316 | sce | mpc_init_local.sce | // For scilab 5.1.1 or lower version users,
//use scicos command to open scicos diagrams instead of xcos
global err_count y p q xk_old Tsp heats fan temp heat
p = 40; //prediction horizon
q = 4; // control horizon
xk_old = zeros(8,1);
Tsp=1;
heats=1;
fan=1;
temp=1;
exec ("mpc_local.sci");
exec("mpc_run.sci");
|
d4245109c26ebe1155959c2ffd84a1b548bfe52b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3793/CH5/EX5.4/exp_5_4.sce | cf76dda7b55b901112b168ef90886c9965949969 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,003 | sce | exp_5_4.sce | clear;
clc;
E=1;
Ig=.8;
pf=.8;
Xd=1.1;
Xq=.8;
p=E+complex(0,Xq)*Ig*complex(.8,-.6);
angle=atand(imag(p)/real(p));
dell=acosd(pf);
Iq=Xq*cosd(dell+angle);
Id=Xq*sind(dell+angle);
function [A] = p2z(R,Theta)
if argn(2) <> 2 then
error("incorrect number of arguments.");
end
if ~and(size(R) == size(Theta)) then
error("arguments must be of the same dimension.");
end
A = R.*exp(%i*%pi*Theta/180.);
endfunction
Iqq=p2z(Iq,(20.3015));
Idd=p2z(Id,(-69.685));
EE=E+complex(0,Xd)*Idd+complex(0,Xq)*Iqq;
mprintf("Excitation voltage and load angles are %.4f+%.4f pu and %.4f degree\n",real(EE),imag(EE),angle);
step=2*%pi/100;
delta=0:step:%pi;
PP=(1.6673*E/Xd)*sin(delta);
plot(delta,PP,'-k');
set(gca(),"auto_clear","off")
PP1=.5*(1/Xq-1/Xd)*sin(2*delta);
plot(delta,PP1,'k.');
PP2=PP+PP1;
plot(delta,PP2,'k');
xlabel('power angle in radians');
ylabel('Power output in per unit');
title('Plot of power generated vs power angle');
set(gca(),"auto_clear","on")
|
0b5f5ffbe6a303068fd1e6598b6eb41fc791831a | efd8a524f4cb26e7523ef0e7211ba3ea3b60177d | /tests/test-bash-quote.tst | 7aa052eec478dbdb85811199824884b0862407d9 | [
"Apache-2.0"
] | permissive | archiecobbs/csvprintf | 2788ee5c236d0e3ea329c927f15464c09ecef118 | 270286b352559219b26127775238331e052150ec | refs/heads/master | 2023-08-03T18:32:23.588637 | 2023-07-31T21:45:54 | 2023-07-31T21:45:54 | 34,139,639 | 38 | 4 | null | 2015-12-05T20:53:45 | 2015-04-17T20:53:56 | C | UTF-8 | Scilab | false | false | 177 | tst | test-bash-quote.tst | FLAGS='-bi -p PA_'
STDIN=$'aaa,bbb,ccc\n\'aa\'xx\',"bb""yy",cc`zz\\ww\n'
STDOUT=$'PA_aaa=$\'\\\'aa\\\'xx\\\'\'; PA_bbb=\'bb"yy\'; PA_ccc=\'cc`zz\\ww\';\n'
STDERR=''
EXITVAL='0'
|
dc2bb66347f538afe3eea7db062d14bea603e40d | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH2/EX2.23/ex2_23.sce | 75b3a80f04e6a28d0fdd23f27a7e819079cd0b39 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 262 | sce | ex2_23.sce | I1=2.12+%i*3.67 //Defining current equations in rectangular form
I2=-3.07+%i*1.77
I3=-1.84+%i*1.06;
I4=-(I1+I2+I3);
[Ro,Theta]=polar(I4);
function y=f(t), y=Ro*sqrt(2)*sin(t+Theta), endfunction
disp("Amperes",Ro*sqrt(2),"Maximum current value") |
909730919788c399f0b8161ec8faf30115d2a5d5 | e82d1909ffc4f200b5f6d16cffb9868f3b695f2a | /Lista 9/Lista Baron/jacobi.sci | d005c52bd754c5d336b597dca0e7b0b5864fe998 | [] | no_license | AugustoCam95/Computational-Linear-Algebra | eb14307dd3b45ccc79617efe74d1faca639c36c5 | 99b1a1f9499fbc4343bd5c878444e9e281952774 | refs/heads/master | 2020-03-30T22:26:23.790763 | 2018-10-05T03:34:06 | 2018-10-05T03:34:06 | 151,666,289 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 531 | sci | jacobi.sci | function xout=jacobi(A,b)
[l,c]=size(A);
D=diag(diag(A));
L=-1*(D-tril(A));
U=-1*(D-triu(A));
invD=diag(diag(1/D));
x=zeros(l,1);
oldx=x;
M=D
N=-(L+U)
MN=-inv(D)*(L+U)
for i=1:1000
if (max(abs(x-oldx))<0.001) then
xout=x;
else
oldx=x;
x=inv(D)*b-inv(D)*(L+U)*x;
end
end
M=D
N=-(L+U)
MN=-inv(D)*(L+U)
disp("M:\n")
disp(M)
disp("N:\n")
disp(N)
disp("M^-1N:\n")
disp(MN)
endfunction
//M=D.N=-(L+U).M^-1*N=-D^-1(L+U)
|
a123308a1016386eb2bdb74d59485b8742ea9684 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1823/CH6/EX6.26/SolEx6_26.sce | 96781bc809b6623c55125fdf51e92be7861c0438 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 732 | sce | SolEx6_26.sce | //Determine (a) the overall voltage-gain ratio Av = vL=vs, and (b) the overall current-gain ratio Ai = iL=is.
//Example 6.26 page no 193
clear
clc
hfe=100
Rl=3*10^3 //kΩ
Rc=3*10^3 //kΩ
hie=1*10^3
Av2=-((hfe*Rl*Rc)/(hie*(Rl+Rc)))
printf("\n The value of Av2=%0.3f " ,Av2)
Rc1=10*10^3 //kΩ
Re1=1*10^3 //kΩ
Av1=-((hfe*Rc1*hie)/((Rc1+hie)*((hfe+1)*Re1+hie)))
printf("\n The value of Av1=%0.3f " ,Av1)
Av=Av1*Av2
printf("\n The value of Av=%0.3f " ,Av)
Ai1=-((hfe*Rc1)/(Rc1+hie))
printf("\n The value of Ai1=%0.3f " ,Ai1)
Rc2=3*10^3 //kΩ
Ai2=-((hfe*Rc2)/(Rc2+Rl))
printf("\n The value of Ai2=%0.3f " ,Ai2)
Ai=Ai1*Ai2
printf("\n The value of Ai=%0.3f " ,Ai)
|
fde5a1aa77f321e601cdb3d379aa290a9eb6f7f3 | 01697f0dc71290a6b6e233849a73d19a883845f1 | /sem01/lab02/q01.sce | 42fdc773422a1e7c8ee7764cfcf1ca420a3bcc11 | [] | no_license | aaruni96/Math-Lab | 5d83a13547308bd9d1b7daa28be29a49e1020fbd | 488469c9aba9251f5725e0851fb19e2aef38d234 | refs/heads/master | 2021-01-12T06:29:53.790743 | 2018-04-27T09:21:40 | 2018-04-27T09:21:40 | 77,370,232 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 93 | sce | q01.sce | //find smaller of 2 numbers
clc;
clear;
x=2;
y=5; //dummy values
if x<y then
x
else
y
end
|
0acd3be783c6b25ab79c22ff1b5a75ab8fbc9757 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3856/CH6/EX6.5/Ex6_5.sce | 8be42293b561f22590780d7303e3c41eea0666de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 598 | sce | Ex6_5.sce | //Calculate the slope of the S-L (solid -liquid )Curve
//Example 6.5
clc;
clear;
Tf=273.15; //Phase transition temperature (two phase can coexist in equilibrium)in K
delfusHbar=6.01*1000*9.87*10^-3; //Change in Enthalpy in L atm mol^-1 (1 J=9.87*10^-3 L atm)
Vbarl=0.0180; //Molar volume of liquid water in L mol^-1
Vbars=0.0196; //Molar volume of ice in L mol^-1
delfusVbar=(Vbarl-Vbars); //Change in molar volume in L mol^-1
F=(delfusHbar)/(Tf*delfusVbar); //Slope of the S-L curve in atm K^-1; F=delP/delT
printf("Slope of the S-L Curve = %.0f atm K^-1",F);
|
28fae3a57fbbf61f435f1feebf42d4cbf0533329 | 36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd | /Quake LG 1v1 Rockets.sce | 0981f14349fe70a7d25d66f9ac51256534a1922d | [] | no_license | Ahmad6543/Scenarios | cef76bf19d46e86249a6099c01928e4e33db5f20 | 6a4563d241e61a62020f76796762df5ae8817cc8 | refs/heads/master | 2023-03-18T23:30:49.653812 | 2020-09-23T06:26:05 | 2020-09-23T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 51,494 | sce | Quake LG 1v1 Rockets.sce | Name=Quake LG 1v1 Rockets
PlayerCharacters=Quaker
BotCharacters=Quaker Bot.bot
IsChallenge=true
Timelimit=90.0
PlayerProfile=Quaker
AddedBots=Quaker Bot.bot
PlayerMaxLives=0
BotMaxLives=0
PlayerTeam=2
BotTeams=1
MapName=Classic.map
MapScale=3.8
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=true
InvincibleBots=false
Timescale=1.0
BlockHealthbars=true
TimeRefilledByKill=0.0
ScoreToWin=1000.0
ScorePerDamage=3.5
ScorePerKill=100.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=2.5
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=false
ScoreMultDamageEfficiency=false
ScoreMultKillEfficiency=false
GameTag=Reflex, Quake, lgc
WeaponHeroTag=LG, Lightning Gun
DifficultyTag=3
AuthorsTag=Aestheticgoose
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=false
Description=Kill Bots that shoot rockets at you and dodge them.
GameVersion=1.0.8.0
ScorePerDistance=0.025
MBSEnable=true
MBSTime1=0.1
MBSTime2=0.08
MBSTime3=1.3
MBSTime1Mult=0.1
MBSTime2Mult=20.0
MBSTime3Mult=45.0
MBSFBInstead=false
MBSRequireEnemyAlive=false
[Aim Profile]
Name=Default
MinReactionTime=0.3
MaxReactionTime=0.4
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=15.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=40.0
ShootFOV=15.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Aim Profile]
Name=High Skill At Feet
MinReactionTime=0.25
MaxReactionTime=0.35
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=10.0
TrackSpeed=5.0
TrackError=2.0
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=35.0
ShootFOV=15.0
VerticalAimOffset=-200.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Bot Profile]
Name=Quaker Bot
DodgeProfileNames=Circle Strafe;Long Strafes;Mimic;Short Strafes
DodgeProfileWeights=1.0;2.0;1.0;5.0
DodgeProfileMaxChangeTime=2.0
DodgeProfileMinChangeTime=0.5
WeaponProfileWeights=0.0;1.0;0.0;0.0;1.0;1.0;1.0;1.0
AimingProfileNames=Default;High Skill At Feet;Default;Default;Default;Default;Default;Default
WeaponSwitchTime=5.0
UseWeapons=true
CharacterProfile=Quaker Bot
SeeThroughWalls=false
NoDodging=false
NoAiming=false
[Character Profile]
Name=Quaker
MaxHealth=200.0
WeaponProfileNames=;;LG;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=1.0
StepUpHeight=0.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=80.000
HeadshotOnly=false
DamageKnockbackFactor=4.0
MovementType=Base
MaxSpeed=1300.0
MaxCrouchSpeed=500.0
Acceleration=9000.0
AirAcceleration=16000.0
Friction=4.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=false
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=0.771 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=0.888 Z=0.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=320.0
MainBBRadius=58.0
MainBBHasHead=false
MainBBHeadRadius=45.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=230.0
ProjBBRadius=55.0
ProjBBHasHead=false
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=45.0
BlockSpawnDistance=100000.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=true
[Character Profile]
Name=Quaker Bot
MaxHealth=400.0
WeaponProfileNames=;Rocket Launcher no Knockback;;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=1.0
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=80.000
HeadshotOnly=false
DamageKnockbackFactor=4.0
MovementType=Base
MaxSpeed=1300.0
MaxCrouchSpeed=500.0
Acceleration=9000.0
AirAcceleration=16000.0
Friction=4.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=0.771 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=0.888 Z=0.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=320.0
MainBBRadius=58.0
MainBBHasHead=false
MainBBHeadRadius=45.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=230.0
ProjBBRadius=55.0
ProjBBHasHead=false
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Dodge Profile]
Name=Circle Strafe
MaxTargetDistance=900.0
MinTargetDistance=500.0
ToggleLeftRight=true
ToggleForwardBack=true
MinLRTimeChange=0.4
MaxLRTimeChange=1.0
MinFBTimeChange=0.5
MaxFBTimeChange=1.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.3
DamageReactionMinimumDelay=0.15
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=0.3
DamageReactionThreshold=20.0
DamageReactionResetTimer=0.5
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Oppose
TargetStrafeMinDelay=0.15
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
[Dodge Profile]
Name=Long Strafes
MaxTargetDistance=100000.0
MinTargetDistance=0.0
ToggleLeftRight=true
ToggleForwardBack=true
MinLRTimeChange=0.5
MaxLRTimeChange=1.25
MinFBTimeChange=0.6
MaxFBTimeChange=1.0
DamageReactionChangesDirection=false
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=50.0
DamageReactionResetTimer=0.5
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.8
BlockedMovementReactionMin=0.1
BlockedMovementReactionMax=0.2
[Dodge Profile]
Name=Mimic
MaxTargetDistance=1600.0
MinTargetDistance=1200.0
ToggleLeftRight=true
ToggleForwardBack=true
MinLRTimeChange=0.3
MaxLRTimeChange=0.6
MinFBTimeChange=0.5
MaxFBTimeChange=1.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.2
DamageReactionMinimumDelay=0.15
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=0.3
DamageReactionThreshold=20.0
DamageReactionResetTimer=0.5
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Mimic
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=1.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
[Dodge Profile]
Name=Short Strafes
MaxTargetDistance=2500.0
MinTargetDistance=750.0
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.3
MaxLRTimeChange=0.6
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=false
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=50.0
DamageReactionResetTimer=0.5
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
[Weapon Profile]
Name=LG
Type=Hitscan
ShotsPerClick=1
DamagePerShot=6.0
KnockbackFactor=2.0
TimeBetweenShots=0.046
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=1.0
HeadshotCapable=false
HeadshotMultiplier=2.0
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=7.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Ball
VisualLifetime=0.05
WallParticleEffect=None
HitParticleEffect=None
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.07
HitSoundCooldown=0.07
HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=14.0
RecoilNegatable=false
DecalType=0
DecalSize=30.0
DelayAfterShooting=0.0
BeamTracksCrosshair=true
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Overwatch
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.1
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.095
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Weapon Profile]
Name=Rocket Launcher no Knockback
Type=Projectile
ShotsPerClick=1
DamagePerShot=150.0
KnockbackFactor=0.0
TimeBetweenShots=0.8
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=5090.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=5090.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=100.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=0.0
HeadshotCapable=false
HeadshotMultiplier=2.0
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=25.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Rocket
VisualLifetime=0.1
WallParticleEffect=Flare
HitParticleEffect=Flare
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=2.0
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.08
HitSoundCooldown=0.08
HitscanVisualOffset=X=0.000 Y=0.000 Z=0.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.0
RecoilNegatable=false
DecalType=0
DecalSize=30.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Overwatch
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.1
Explosive=true
Radius=300.0
DamageAtCenter=0.0
DamageAtEdge=0.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=true
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=true
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=2
AAPreferClosestPlayer=false
AAAlpha=0.5
AAMaxSpeed=0.5
AADeadZone=0.0
AAFOV=180.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=true
TriggerBotDelay=0.001
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.095
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Map Data]
reflex map version 8
global
entity
type WorldSpawn
brush
vertices
272.000000 -0.000000 336.000000
272.000000 0.000000 -336.000000
272.000000 16.000000 -336.000000
272.000000 16.000000 336.000000
-512.000000 16.000000 -336.000000
-512.000000 -0.000000 -336.000000
-512.000000 0.000000 336.000000
-512.000000 16.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 -0.000000 336.000000
272.000000 0.000000 176.000000
272.000000 32.000000 176.000000
272.000000 32.000000 336.000000
-512.000000 32.000000 176.000000
-512.000000 -0.000000 176.000000
-512.000000 0.000000 336.000000
-512.000000 32.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 32.000000 336.000000
272.000000 32.000000 192.000000
272.000000 48.000000 192.000000
272.000000 48.000000 336.000000
-512.000000 48.000000 192.000000
-512.000000 32.000000 192.000000
-512.000000 32.000000 336.000000
-512.000000 48.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 48.000000 336.000000
272.000000 48.000000 208.000000
272.000000 64.000000 208.000000
272.000000 64.000000 336.000000
-512.000000 64.000000 208.000000
-512.000000 48.000000 208.000000
-512.000000 48.000000 336.000000
-512.000000 64.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 64.000000 336.000000
272.000000 64.000000 224.000000
272.000000 80.000000 224.000000
272.000000 80.000000 336.000000
-512.000000 80.000000 224.000000
-512.000000 64.000000 224.000000
-512.000000 64.000000 336.000000
-512.000000 80.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 80.000000 336.000000
272.000000 80.000000 240.000000
272.000000 96.000000 240.000000
272.000000 96.000000 336.000000
-512.000000 96.000000 240.000000
-512.000000 80.000000 240.000000
-512.000000 80.000000 336.000000
-512.000000 96.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 96.000000 336.000000
272.000000 96.000000 256.000000
272.000000 112.000000 256.000000
272.000000 112.000000 336.000000
-512.000000 112.000000 256.000000
-512.000000 96.000000 256.000000
-512.000000 96.000000 336.000000
-512.000000 112.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 112.000000 336.000000
272.000000 112.000000 272.000000
272.000000 128.000000 272.000000
272.000000 128.000000 336.000000
-512.000000 128.000000 272.000000
-512.000000 112.000000 272.000000
-512.000000 112.000000 336.000000
-512.000000 128.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 128.000000 336.000000
272.000000 128.000000 288.000000
272.000000 144.000000 288.000000
272.000000 144.000000 336.000000
-512.000000 144.000000 288.000000
-512.000000 128.000000 288.000000
-512.000000 128.000000 336.000000
-512.000000 144.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 16.000000 -176.000000
272.000000 16.000000 -336.000000
272.000000 32.000000 -336.000000
272.000000 32.000000 -176.000000
-512.000000 32.000000 -336.000000
-512.000000 16.000000 -336.000000
-512.000000 16.000000 -176.000000
-512.000000 32.000000 -176.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 32.000000 -192.000000
272.000000 32.000000 -336.000000
272.000000 48.000000 -336.000000
272.000000 48.000000 -192.000000
-512.000000 48.000000 -336.000000
-512.000000 32.000000 -336.000000
-512.000000 32.000000 -192.000000
-512.000000 48.000000 -192.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 48.000000 -208.000000
272.000000 48.000000 -336.000000
272.000000 64.000000 -336.000000
272.000000 64.000000 -208.000000
-512.000000 64.000000 -336.000000
-512.000000 48.000000 -336.000000
-512.000000 48.000000 -208.000000
-512.000000 64.000000 -208.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 64.000000 -224.000000
272.000000 64.000000 -336.000000
272.000000 80.000000 -336.000000
272.000000 80.000000 -224.000000
-512.000000 80.000000 -336.000000
-512.000000 64.000000 -336.000000
-512.000000 64.000000 -224.000000
-512.000000 80.000000 -224.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 80.000000 -240.000000
272.000000 80.000000 -336.000000
272.000000 96.000000 -336.000000
272.000000 96.000000 -240.000000
-512.000000 96.000000 -336.000000
-512.000000 80.000000 -336.000000
-512.000000 80.000000 -240.000000
-512.000000 96.000000 -240.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 96.000000 -256.000000
272.000000 96.000000 -336.000000
272.000000 112.000000 -336.000000
272.000000 112.000000 -256.000000
-512.000000 112.000000 -336.000000
-512.000000 96.000000 -336.000000
-512.000000 96.000000 -256.000000
-512.000000 112.000000 -256.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 112.000000 -272.000000
272.000000 112.000000 -336.000000
272.000000 128.000000 -336.000000
272.000000 128.000000 -272.000000
-512.000000 128.000000 -336.000000
-512.000000 112.000000 -336.000000
-512.000000 112.000000 -272.000000
-512.000000 128.000000 -272.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 128.000000 -288.000000
272.000000 128.000000 -336.000000
272.000000 144.000000 -336.000000
272.000000 144.000000 -288.000000
-512.000000 144.000000 -336.000000
-512.000000 128.000000 -336.000000
-512.000000 128.000000 -288.000000
-512.000000 144.000000 -288.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 144.000000 -304.000000
272.000000 144.000000 -336.000000
272.000000 160.000000 -336.000000
272.000000 160.000000 -304.000000
-512.000000 160.000000 -336.000000
-512.000000 144.000000 -336.000000
-512.000000 144.000000 -304.000000
-512.000000 160.000000 -304.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 144.000000 336.000000
272.000000 144.000000 304.000000
272.000000 160.000000 304.000000
272.000000 160.000000 336.000000
-512.000000 160.000000 304.000000
-512.000000 144.000000 304.000000
-512.000000 144.000000 336.000000
-512.000000 160.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
-512.000000 -0.000000 352.000000
-512.000000 -0.000000 -352.000000
-512.000000 640.000000 -352.000000
-512.000000 640.000000 352.000000
-528.000000 640.000000 -352.000000
-528.000000 -0.000000 -352.000000
-528.000000 0.000000 352.000000
-528.000000 640.000000 352.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
288.000000 -0.000000 352.000000
288.000000 0.000000 336.000000
288.000000 640.000000 336.000000
288.000000 640.000000 352.000000
-512.000000 640.000000 336.000000
-512.000000 -0.000000 336.000000
-512.000000 0.000000 352.000000
-512.000000 640.000000 352.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
288.000000 -0.000000 336.000000
288.000000 0.000000 -352.000000
288.000000 640.000000 -352.000000
288.000000 640.000000 336.000000
272.000000 640.000000 -352.000000
272.000000 -0.000000 -352.000000
272.000000 0.000000 336.000000
272.000000 640.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
288.000000 -0.000000 -336.000000
288.000000 0.000000 -352.000000
288.000000 640.000000 -352.000000
288.000000 640.000000 -336.000000
-528.000000 640.000000 -352.000000
-528.000000 -0.000000 -352.000000
-528.000000 0.000000 -336.000000
-528.000000 640.000000 -336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 624.000000 336.000000
272.000000 624.000000 -464.000000
272.000000 640.000000 -464.000000
272.000000 640.000000 336.000000
-512.000000 640.000000 -464.000000
-512.000000 624.000000 -464.000000
-512.000000 624.000000 336.000000
-512.000000 640.000000 336.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 144.000000 -296.000000
272.000000 144.000000 -304.000000
272.000000 152.000000 -304.000000
272.000000 152.000000 -296.000000
-512.000000 152.000000 -304.000000
-512.000000 144.000000 -304.000000
-512.000000 144.000000 -296.000000
-512.000000 152.000000 -296.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 128.000000 -280.000000
272.000000 128.000000 -288.000000
272.000000 136.000000 -288.000000
272.000000 136.000000 -280.000000
-512.000000 136.000000 -288.000000
-512.000000 128.000000 -288.000000
-512.000000 128.000000 -280.000000
-512.000000 136.000000 -280.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 112.000000 -264.000000
272.000000 112.000000 -272.000000
272.000000 120.000000 -272.000000
272.000000 120.000000 -264.000000
-560.000000 120.000000 -272.000000
-560.000000 112.000000 -272.000000
-560.000000 112.000000 -264.000000
-560.000000 120.000000 -264.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 96.000000 -248.000000
272.000000 96.000000 -256.000000
272.000000 104.000000 -256.000000
272.000000 104.000000 -248.000000
-512.000000 104.000000 -256.000000
-512.000000 96.000000 -256.000000
-512.000000 96.000000 -248.000000
-512.000000 104.000000 -248.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 80.000000 -232.000000
272.000000 80.000000 -240.000000
272.000000 88.000000 -240.000000
272.000000 88.000000 -232.000000
-520.000000 88.000000 -240.000000
-520.000000 80.000000 -240.000000
-520.000000 80.000000 -232.000000
-520.000000 88.000000 -232.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 64.000000 -216.000000
272.000000 64.000000 -224.000000
272.000000 72.000000 -224.000000
272.000000 72.000000 -216.000000
-512.000000 72.000000 -224.000000
-512.000000 64.000000 -224.000000
-512.000000 64.000000 -216.000000
-512.000000 72.000000 -216.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 48.000000 -200.000000
272.000000 48.000000 -208.000000
272.000000 56.000000 -208.000000
272.000000 56.000000 -200.000000
-592.000000 56.000000 -208.000000
-592.000000 48.000000 -208.000000
-592.000000 48.000000 -200.000000
-592.000000 56.000000 -200.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 32.000000 -184.000000
272.000000 32.000000 -192.000000
272.000000 40.000000 -192.000000
272.000000 40.000000 -184.000000
-512.000000 40.000000 -192.000000
-512.000000 32.000000 -192.000000
-512.000000 32.000000 -184.000000
-512.000000 40.000000 -184.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 16.000000 -168.000000
272.000000 16.000000 -176.000000
272.000000 24.000000 -176.000000
272.000000 24.000000 -168.000000
-520.000000 24.000000 -176.000000
-520.000000 16.000000 -176.000000
-520.000000 16.000000 -168.000000
-520.000000 24.000000 -168.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
296.000000 16.000000 176.000000
296.000000 16.000000 168.000000
296.000000 24.000000 168.000000
296.000000 24.000000 176.000000
-512.000000 24.000000 168.000000
-512.000000 16.000000 168.000000
-512.000000 16.000000 176.000000
-512.000000 24.000000 176.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
280.000000 32.000000 192.000000
280.000000 32.000000 184.000000
280.000000 40.000000 184.000000
280.000000 40.000000 192.000000
-512.000000 40.000000 184.000000
-512.000000 32.000000 184.000000
-512.000000 32.000000 192.000000
-512.000000 40.000000 192.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
280.000000 48.000000 216.000000
280.000000 48.000000 200.000000
280.000000 56.000000 200.000000
280.000000 56.000000 216.000000
-512.000000 56.000000 200.000000
-512.000000 48.000000 200.000000
-512.000000 48.000000 216.000000
-512.000000 56.000000 216.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
288.000000 64.000000 224.000000
288.000000 64.000000 216.000000
288.000000 72.000000 216.000000
288.000000 72.000000 224.000000
-512.000000 72.000000 216.000000
-512.000000 64.000000 216.000000
-512.000000 64.000000 224.000000
-512.000000 72.000000 224.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
288.000000 80.000000 248.000000
288.000000 80.000000 232.000000
288.000000 88.000000 232.000000
288.000000 88.000000 248.000000
-512.000000 88.000000 232.000000
-512.000000 80.000000 232.000000
-512.000000 80.000000 248.000000
-512.000000 88.000000 248.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
296.000000 96.000000 256.000000
296.000000 96.000000 248.000000
296.000000 104.000000 248.000000
296.000000 104.000000 256.000000
-512.000000 104.000000 248.000000
-512.000000 96.000000 248.000000
-512.000000 96.000000 256.000000
-512.000000 104.000000 256.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 112.000000 272.000000
272.000000 112.000000 264.000000
272.000000 120.000000 264.000000
272.000000 120.000000 272.000000
-512.000000 120.000000 264.000000
-512.000000 112.000000 264.000000
-512.000000 112.000000 272.000000
-512.000000 120.000000 272.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
296.000000 128.000000 296.000000
296.000000 128.000000 280.000000
296.000000 136.000000 280.000000
296.000000 136.000000 296.000000
-520.000000 136.000000 280.000000
-520.000000 128.000000 280.000000
-520.000000 128.000000 296.000000
-520.000000 136.000000 296.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
brush
vertices
272.000000 144.000000 304.000000
272.000000 144.000000 296.000000
272.000000 152.000000 296.000000
272.000000 152.000000 304.000000
-512.000000 152.000000 296.000000
-512.000000 144.000000 296.000000
-512.000000 144.000000 304.000000
-512.000000 152.000000 304.000000
faces
0.000000 0.000000 2.000000 2.000000 0.000000 0 1 2 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 4 5 6 7 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 7 6 0 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 1 5 4 2 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 2 4 7 3 0x00000000 __TB_empty
0.000000 0.000000 2.000000 2.000000 0.000000 6 5 1 0 0x00000000 __TB_empty
entity
type PlayerSpawn
Vector3 position 96.000000 40.000000 -0.000000
Vector3 angles 270.000000 0.000000 0.000000
Bool8 TeamA 0
entity
type PlayerSpawn
Vector3 position -400.000000 40.000000 48.000000
Vector3 angles 90.000000 0.000000 0.000000
Bool8 TeamB 0
entity
type PlayerSpawn
Vector3 position 48.000000 40.000000 -148.000000
Vector3 angles 90.000000 0.000000 0.000000
Bool8 TeamB 0
entity
type PlayerSpawn
Vector3 position -190.000000 184.000000 320.000000
Vector3 angles 90.000000 0.000000 0.000000
Bool8 TeamB 0
entity
type PlayerSpawn
Vector3 position -496.000000 40.000000 -148.000000
Vector3 angles 90.000000 0.000000 0.000000
Bool8 TeamB 0
entity
type PlayerSpawn
Vector3 position -92.000000 184.000000 -320.000000
Vector3 angles 90.000000 0.000000 0.000000
Bool8 TeamB 0
entity
type PlayerSpawn
Vector3 position 164.000000 184.000000 320.000000
Vector3 angles 90.000000 0.000000 0.000000
Bool8 TeamB 0
|
84660266640dda663660c5bee903f45cad31721f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1727/CH4/EX4.6/4_6.sce | 5b1164559d511d364412c2ca91a6a7adc296f123 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | sce | 4_6.sce | clc
//Initialization of variables
g=9.81 //m/s^2
rho=10^3 //kg/m^3
Vr=10 //m/s
u=8.5 //m/s
A=250/10^4 //m^2
//calculations
V=Vr-u
Q=A*Vr
R=rho*Q*V
P=R*u
eth=1/(1+ V/(2*u))
//results
printf("Power required = %.3f kW",P/1000)
printf("\n Efficiency of jet propulsion = %.2f percent",eth*100)
|
e3e97a7713877d3b296af7c6512408966a581a1d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1184/CH2/EX2.26/Ex2_26.sce | 39ca7c4fde442671f5fbf8cdfc394a03691355ac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 263 | sce | Ex2_26.sce | //Example 2-26,Page No - 82
clear
clc
Vpeak =3
f=48*10^3
fifth_harmonic = 5*f
Vrms=(4/3.14)*(3/5)*0.707
printf('The frequency of the fifth harmonic is %.1f Khz',fifth_harmonic/10^3)
printf('\n The RMS voltage of the fifth harmonic is %.2f',Vrms)
|
798c06d027ea3efd414f8ffdb469532c1e7623ab | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH10/EX10.21/10Ex21.sce | edbf2552e09fa877e6db4dad832334565910a837 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 203 | sce | 10Ex21.sce | //chapter 10 Ex 21
clc;
clear;
close;
red=10/100;
original=100;
newSal=original*(1-red);
increase=((original-newSal)/newSal)*100;
mprintf("The percentage reduction is %.2f percent",increase);
|
4d7b907003030e96c4f06793330b85c5a44b3342 | c6dbd1f6eb0fb1c96a3a4d485f8c049e34653a0a | /Genetic Algorithm.sce | 06dee360b32ec7d7ec4eba645a5b6e5c76f9f9fa | [] | no_license | Maycon708/Genetic-Algorithm-for-PID-Tunning | c1f2888851793f867a96000cc5f890a1b9f8cdb7 | 23be7b25717191677a1fe83cc5ba2667c9a9605f | refs/heads/master | 2020-05-15T13:16:58.646285 | 2019-05-21T13:40:51 | 2019-05-21T13:40:51 | 182,294,041 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,752 | sce | Genetic Algorithm.sce | numBits = 10; // numero de bits para cada parametro
minBound = 0; // menor valor que um parametro pode assumir
maxBound = 20; // maior valor que um parametro pode assumir
popSize = 30; // tamanho da população
nGenerations = 100; // numero de gerações
nSamples = 100; // numero de amostras para determinação do fitness
tSamples = 1; // tempo entre as amostras
mutateRate = 1; // probabilidade de mutação
crossoverRate = 0.8; // probabilidade de cruzamento
/*
* Adiciona um parametro ao individuo
* - Se valor < 0 adiciona um valor aleatorio entre 0 e 2^numBits
*/
function tmp = newParam(individual, param, valor)
tmp = individual;
if valor < 0 then
valor = grand('uin', 0, 2^numBits);
end
tmp = add_param(tmp, param, valor);
endfunction
/*
* Gera um individuo com base nos valores kp, ki e kd
* - Para valores menores que zero,
* gera com um valor aleatorio entre 0 e 2^numBits
*/
function individual = generateIndividual(kp, ki, kd)
individual = init_param();
individual = newParam(individual, 'kp', kp);
individual = newParam(individual, 'ki', ki);
individual = newParam(individual, 'kd', kd);
endfunction
/*
* Gera uma lista contendo a população inicial
*/
function popInitial = generatePopInitial(popSize)
popInitial = list();
for i = 1:popSize
popInitial(i) = generateIndividual(-1, -1, -1);
end
endfunction
/*
* Recebe um individuo contendo Kp, Ki e Kd
* e retorna a equação PID no dominio S
* correspondente ao mesmo
*/
function PID = transformToPID(individual)
kp = get_param(individual, 'kp')/1024*(maxBound-minBound)+minBound;
ki = get_param(individual, 'ki')/1024*(maxBound-minBound)+minBound;
kd = get_param(individual, 'kd')/1024*(maxBound-minBound)+minBound;
s = poly(0, 's');
PID = syslin('c', (kp*s+ki+kd*s^2)/(s));
endfunction
/*
* Calcula o quão apto um individuo esta para resolver o problema
* - Obtem-se a equação PID do individuo no dominio S
* - Gera-se equação do ganho de realimentação
* - Gera-se a euqação de malha fechada
* -> HS * PID com realimentação unitaria
* - Obtem-se a resposta de GS a um degrau unitario
* - A aptidão de um individuo é a inversa da integral de |erro|*tempo
* definida de 0 até tempo total da simulação,
* sendo erro a diferença entre o valor atual e o valor esperado
*/
function fitness = getFitness(individual)
PID = transformToPID(individual);
s = poly(0, 's');
feedback = syslin('c', s/s);
GS = (HS*PID)/.feedback;
t = 0:tSamples:nSamples*tSamples
answer = csim('step', t, GS);
fitness = 0;
for i = 1:nSamples
erro = 1-answer(i);
fitness = fitness + (abs(erro) * t(i));
end
fitness = 1/fitness;
endfunction
/*
* Gera uma lista contendo a aptidão de cada individuo
*/
function fitnessList = getAllFitness(population)
fitnessList = list();
for i = 1:popSize
fitnessList(i) = getFitness(population(i));
end
endfunction
/*
* Retorna uma lista com a probabilidade de cada individuo
* ser escolhido durante o processo de seleção
* - Tal probabilidade é diretamente proporcional a
* aptidao do individuo
*/
function normalizedList = normalize(fitnessList)
normalizedList = list();
sumFitness = 0;
for i = 1:popSize
sumFitness = sumFitness + fitnessList(i);
end
for i = 1:popSize
normalizedList(i) = fitnessList(i)/sumFitness;
end
endfunction
/*
* Retorna o melhor individuo, ou seja, com a maior aptidão
*/
function best = getBest(population)
fitnessList = getAllFitness(population);
bestId = 1;
for i = 1:popSize
if fitnessList(i) > fitnessList(bestId) then
bestId = i;
end
end
best = population(bestId);
endfunction
/*
* Seleciona os individuos para o cruzamento
* - Baseado no processo de seleção por roleta
* - A probabilidade de um individuo ser selecionada é
* diretamente proporcional ao quão apto ele está
*/
function parents = selection(population, probability)
parents = init_param();
probabilityA = grand('def');
probabilityB = grand('def');
sumProbability = 0;
for i = 1:popSize
sumProbability = sumProbability + probability(i);
if sumProbability >= probabilityA then
parentA = population(i);
end
if sumProbability >= probabilityB then
parentB = population(i);
end
end
parents = add_param(parents, 'A', parentA);
parents = add_param(parents, 'B', parentB);
endfunction
/*
* Função auxiliar que retorna a mascara de bits
* a ser utilizada no cruzamento
*/
function mask = getMask(ini, fim)
mask = 0;
for i = ini:fim
mask = bitset(mask, i);
end
endfunction
/*
* Retorna o cruzamento de um determinado parâmetro
* - Determina de forma aleatória o quanto o filho vai
* herdar de cada pai
* - Tal valor é medido pela quantidade de bits do pai que serão
* transmitidos ao filho
* - O filho sempre herda ao menos um bit de cada pai
*/
function son = getCross(parentA, parentB)
pos = grand('uin', 1, numBits);
maskA = getMask(1, pos);
maskB = getMask(pos+1, numBits);
son = bitor(bitand(parentA, maskA), bitand(parentB, maskB));
endfunction
/*
* Dados os pais escolhidos pela seleção, a fução determina,
* o resultado do cruzamento, se o mesmo acontecer
* - Caso não haja cruzamento o filho é uma copia exata do pai
* - Caso haja cruzamento, cada parametro é cruzado separadamente
* - O quanto o filho vai herdar de cada pai é escolhido aleatoriamente
*/
function son = crossover(parents)
probability = grand('def');
parentA = get_param(parents, 'A');
parentB = get_param(parents, 'B');
son = parentA;
if probability <= crossoverRate then
kp = getCross(get_param(parentA, 'kp'), get_param(parentB, 'kp'));
ki = getCross(get_param(parentA, 'ki'), get_param(parentB, 'ki'));
kd = getCross(get_param(parentA, 'kd'), get_param(parentB, 'kd'));
son = generateIndividual(kp, ki, kd);
end
endfunction
/*
* Executa a mutação de um individuo
* - Determina se é necessário que ocorra a mutação
* - Verifica em qual parametro deve ocorrer a mesma
*/
function mutated = mutation(individual)
kp = get_param(individual, 'kp');
ki = get_param(individual, 'ki');
kd = get_param(individual, 'kd');
mutated = individual;
probability = grand('def');
if probability <= mutateRate * 1/3 then
mutated = generateIndividual(-1, ki, kd);
else if probability <= mutateRate * 2/3 then
mutated = generateIndividual(kp, -1, kd);
else if probability <= mutateRate then
mutated = generateIndividual(kp, ki, -1);
end
end
end
endfunction
/*
* Retorna uma nova geração de individuos
* - A nova geração é gerada por meio de:
* 1 - Cruzamento: dois pais são selecionados para o cruzamento
* onde o filho tem seus parametros compostos por meio de
* herança de ambos os pais
* 2 - Mutação: O individuo sofre mutação e tem um de seus
* parametros alterados de forma aleatória
* 3 - Elitismo: O melhor individuo de cada geração - a elite -
* permanece inalterado para a próxima geração
*/
function newPopulation = getNewGen(population)
probability = normalize(getAllFitness(population));
newPopulation = list();
newPopulation(1) = getBest(population);
for i = 2:popSize
parents = selection(population, probability);
newPopulation(i) = crossover(parents);
newPopulation(i) = mutation(newPopulation(i));
end
endfunction
/*
* Plota o gráfico de resposta ao degrau do
* sistema controlado
*/
function plotResponseGraph(PID)
s = poly(0, 's');
feedback = syslin('c', s/s);
GS = (HS*PID)/.feedback;
t = 0:tSamples:nSamples*tSamples
answer = csim('step', t, GS);
plot(t, answer);
endfunction
/*
* Função que executa todo o processo do algoritmo genetico
* - Deve ser chamada tendo como parametro a
* função de transferencia a ser controlada
*/
function PID = geneticAlgorithm(HS)
timer();
population = generatePopInitial(popSize);
for i = 1:nGenerations
population = getNewGen(population);
if modulo(i, 10) == 0 then
disp(i);
end
end
parameters = getBest(population);
PID = transformToPID(parameters);
plotResponseGraph(PID);
disp(timer());
endfunction
|
562eb7dc41c1faa432eedda0091a51366ebbe1da | 4a9f190afee555b0b80b83855ab62d9c529f5b34 | /Assignment5/code.sce | 1a6362e03592f03847953124533b83ae8e643459 | [] | no_license | imajou/IU-S20-DSP-Assignments | 5ab41f331f996d9764be41a56fb2eee9e7cd5267 | e518c52a1ef988a6871cb078b25e64e75ed0fc95 | refs/heads/master | 2022-10-22T09:24:33.601398 | 2020-06-12T21:24:23 | 2020-06-12T21:24:23 | 271,892,319 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,891 | sce | code.sce | // generate sin signal
function result = sin_signal(Fs, time, freqency, amplitude)
samples = time * Fs
step_size = (2 * %pi * freqency) / samples
x = [0:samples-1] * step_size
result = amplitude * sin(x)
endfunction
// generate cos signal
function result = cos_signal(Fs, time, freqency, amplitude)
samples = time * Fs
step_size = (2 * %pi * freqency) / samples
x = [0:samples-1] * step_size
result = amplitude * cos(x)
endfunction
// Standard DFT algorithm
function result = DFT(signal)
if (size(signal, 1) <> 1) then
signal = conj(signal')
end
N = length(signal)
for k = 1:N
result(k) = 0
for i = 1:N
result(k) = result(k) + signal(i) * exp((-2 * %pi * %i * (i - 1) * (k - 1)) / N)
end
end
endfunction
function plot_results(signal, dft_signal, T)
figure()
// signal
subplot(2, 1, 1)
plot([0 : length(signal) - 1] * T / length(signal), signal, 'o-')
xlabel('time, s')
ylabel('amp')
// frequency response
subplot(2, 1, 2)
plot(0 : length(dft_signal) - 1, abs(dft_signal), 'o-')
xlabel('freq, Hz')
ylabel('amp')
endfunction
function task1()
time = 4
Fs = 64
sin_freq = 8
sin_amp = 1
signal = sin_signal(Fs, time, sin_freq, sin_amp)
dft_custom = DFT(signal)
dft_original = fft(signal)
figure()
subplot(3, 1, 1)
plot([0:length(signal)-1]*time/length(signal), signal, 'o-')
xlabel('Time, sec')
ylabel('amp')
subplot(3, 1, 2)
plot(0:length(signal)-1, abs(dft_custom), 'o-')
xlabel('freq, Hz')
ylabel('amp')
subplot(3, 1, 3)
plot(0:length(signal)-1, abs(dft_original), 'o-')
xlabel('freq, Hz')
ylabel('amp')
endfunction
//// TASK 2 - SPECTRAL LEAKAGE ////
function[signal, dft_signal, time] = task2()
time = 2
Fs = 32
amp = 1
freq1 = 13.37 // leak
freq2 = 22.8 // leak
freq3 = 6 // non-leak
s1 = sin_signal(Fs, time, freq1, amp)
s2 = sin_signal(Fs, time, freq2, amp)
s3 = sin_signal(Fs, time, freq3, amp)
signal = s1 + s2 + s3
dft_signal = fft(signal)
plot_results(signal, dft_signal, time)
endfunction
function task3(signal, dft_signal, time)
signal_window = signal .* window("kr", 64, 8) // window
signal_padding = resize_matrix(signal_window, 1, 256) // padding
dft_signal = fft(signal_padding)
time = time * 4
plot_results(signal_padding, dft_signal, time)
endfunction
function task4()
time = 1
Fs = 1000
freq1 = 190
amp1 = 0.5
freq2 = 10
amp2 = 2
signal = cos_signal(Fs, time, freq1, amp1) + cos_signal(Fs, time, freq2, amp2)
dft_signal = fft(signal)
plot_results(signal, dft_signal, time)
endfunction
task1()
[signal, dft_signal, time] = task2()
task3(signal, dft_signal, time)
task4()
|
b7ff89e52cf5bcce15158df20e8a441d7e8d7f47 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH15/EX15.13/Ex15_13.sce | 5fba06f20a5d77d333276b9efbc2312564d7a187 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 794 | sce | Ex15_13.sce | // Example 15_13
clc;funcprot(0);
// Given data
T=25+273.15;// K
n_C=1;// The stoichiometric coefficient of the reaction
n_H2=2;// The stoichiometric coefficient of the reaction
n_CH4=1;// The stoichiometric coefficient of the reaction
sbar0_CH4=186.256;// kJ/kgmole.K
sbar0_C=5.740;// kJ/kgmole.K
sbar0_H2=130.684;// kJ/kgmole.K
h_f_CH4=-74.873;// MJ/kgmole.K
// Calculation
sbar0_f_CH4=sbar0_CH4-[((n_C/n_CH4)*sbar0_C)+((n_H2/n_CH4)*sbar0_H2)];// kJ/kgmole.K
gbar0_f_CH4=h_f_CH4-(T*sbar0_f_CH4*1/1000);// The specific molar Gibbs function of formation of methane in MJ/kgmole
printf("\nThe molar specific entropy of formation,(sbar0_f)_CH4=%2.3f kJ/kgmole.K \nThe specific molar Gibbs function of formation of methane,(gbar0_f)_CH4=%2.3f MJ/kgmole",sbar0_f_CH4,gbar0_f_CH4);
|
2393419416663b51af273279ff6a0e230df27168 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH2/EX2.17/2_17.sce | 179b056335cd255ef4c54e6215525ac3a4229555 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 3,871 | sce | 2_17.sce | clear;
clc;
funcprot(0);
// Example - 2.17
// Page number - 70
printf("Example - 2.17 and Page number - 70\n\n");
//Given
T = 310.93;//[K] - Temperature
P = 2.76*10^(6);//[N/m^(2)] - Pressure
R = 8.314;//[J/mol*K] - Universal gas constant
y1 = 0.8942;// Mole fraction of component 1 (methane)
y2 = 1-y1;// Mole fraction of component 2 (n-butane)
//For component 1 (methane)
Tc_1 = 190.58;//[K] - Cricitical temperature
Pc_1 = 46.05;//[bar] - Cricitical pressure
Pc_1 = Pc_1*10^(5);//[N/m^(2)]
Zc_1 = 0.288;// Critical compressibility factor
Vc_1 = 99.1;//[cm^(3)/mol]
Vc_1 = Vc_1*10^(-6);//[m^(3)/mol]
w_1 = 0.011;// Acentric factor
//For component 2 (n-butane)
Tc_2 = 425.18;//[K] - Cricitical temperature
Pc_2 = 37.97;//[bar] - Cricitical pressure
Pc_2 = Pc_2*10^(5);// [N/m^(2)]
Zc_2 = 0.274;// Critical compressibility factor
Vc_2 = 255.1;// [cm^(3)/mol]
Vc_2 = Vc_2*10^(-6);// [m^(3)/mol]
w_2 = 0.193;// Acentric factor
// (1)
// Virial equation of state, Z = 1 + (B*P)/(R*T)
// For component 1 (methane)
Tr_1 = T/Tc_1;//Reduced temperature
// At reduced temperature
B1_0 = 0.083 - (0.422/(Tr_1)^(1.6));
B1_1 = 0.139 - (0.172/(Tr_1)^(4.2));
// We know,(B*Pc)/(R*Tc) = B_0+(w*B_1)
B_11 = ((B1_0+(w_1*B1_1))*(R*Tc_1))/Pc_1;//[m^(3)/mol]
//Similarly for component 2
Tr_2 = T/Tc_2;//Reduced temperature
//At reduced temperature Tr_2,
B2_0 = 0.083 - (0.422/(Tr_2)^(1.6));
B2_1 = 0.139 - (0.172/(Tr_2)^(4.2));
B_22 = ((B2_0 + (w_2*B2_1))*(R*Tc_2))/Pc_2;//[m^(3)/mol]
//For cross coeffcient
Tc_12 = (Tc_1*Tc_2)^(1/2);//[K]
w_12 = (w_1 + w_2)/2;
Zc_12 = (Zc_1 + Zc_2)/2;
Vc_12 = (((Vc_1)^(1/3)+(Vc_2)^(1/3))/2)^(3);//[m^(3)/mol]
Pc_12 =(Zc_12*R*Tc_12)/Vc_12;//[N/m^(2)]
//Now we have,(B_12*Pc_12)/(R*Tc_12) = B_0+(w_12*B_1)
//where B_0 and B_1 are to be evaluated at Tr_12
Tr_12 = T/Tc_12;
//At reduced temperature Tr_12
B_0 = 0.083 - (0.422/(Tr_12)^(1.6));
B_1 = 0.139 - (0.172/(Tr_12)^(4.2));
B_12 = ((B_0+(w_12*B_1))*R*Tc_12)/Pc_12;//[m^(3)/mol]
//For the mixture
B = y1^(2)*B_11+2*y1*y2*B_12+y2^(2)*B_22;//[m^(3)/mol]
Z_1 = 1+(B*P)/(R*T);//compressibility factor
printf(" (1).The compressibility factor of mixture using Virial equation of state is %f\n",Z_1);
// (2)
// Pseudo reduced method.
T_pc = (y1*Tc_1)+(y2*Tc_2);//[K] - Cricitical temperature
P_pc = (y1*Pc_1)+(y2*Pc_2);//[N/m^(2)] - Cricitical pressure
w = (y1*w_1)+(y2*w_2);// Acentric factor
T_pr = T/T_pc;// Reduced temperature
P_pr = P/P_pc;// Reduced pressure
//At this value of Tpr,
B0 = 0.083 - (0.422/(T_pr)^(1.6));
B1 = 0.139 - (0.172/(T_pr)^(4.2));
Z0 = 1 + B0*(P_pr/T_pr);
Z1 = B1*(P_pr/T_pr);
Z = Z0 + w*Z1;
printf(" (2).The compressibility factor of mixture using pseudo reduced method is %f\n",Z);
// (3)
// Redlich Kwong equation of state is given by
// P = ((R*T)/(V-b)) - (a/(T^(1/2)*V*(V+b)))
// For methane,component 1
a_1 = (0.42748*(R^(2))*(Tc_1^(2.5)))/Pc_1;//[Pa*m^(6)*K^(1/2)/mol]
b_1 = (0.08664*R*Tc_1)/Pc_1;//[m^(3)/mol]
//For n-butane,component 2
a_2 = (0.42748*(R^(2))*(Tc_2^(2.5)))/Pc_2;//[Pa*m^(6)*K^(1/2)/mol]
b_2 = (0.08664*R*Tc_2)/Pc_2;//[m^(3)/mol]
//For the mixture
a_12 = (a_1*a_2)^(1/2);//[Pa*m^(6)*K^(1/2)/mol]
a = y1^(2)*a_1 + 2*y1*y2*a_12 + y2^(2)*a_2;//[Pa*m^(6)*K^(1/2)/mol]
b = (y1*b_1) + (y2*b_2);//[m^(3)/mol]
// The cubic form of Redlich Kwong equation of state is given by,
// V^(3) - ((R*T)/P)*V^(2) - ((b_1^(2)) + ((b_1*R*T)/P) - (a/(T^(1/2)*P))*V - (a*b)/(T^(1/2)*P) = 0
// Solving the cubic equation
deff('[y]=f(V)','y=V^(3)-((R*T)/P)*V^(2)-((b^(2))+((b*R*T)/P)-(a/(T^(1/2)*P)))*V-(a*b)/(T^(1/2)*P)');
V_1=fsolve(1,f);
V_2=fsolve(10,f);
V_3=fsolve(100,f);
// Thus compressibility factor is
Z_3 = (P*V_1)/(R*T);//compressibility factor
printf(" (3).The compressibility factor of mixture using Redlich Kwong equation of state is %f\n",Z_3);
|
c84b1d4ea2559445d6fc086ccc8b66338e863ef7 | 3497c2d86f407202ec8c351b9e0bc4e68c8bc4e1 | /Algorithms/SGS.sci | a1ce49550a6060a8aafe0eafd0c9438b392a6dc4 | [] | no_license | sparshgupta3/Adam-Optimization-Project | dedc323207d5ca9d403890e7ced90858a15eeb6d | 5b8b3cbb0e331889d2595e04d4ac81ddefe706ab | refs/heads/master | 2020-09-22T10:07:12.106455 | 2019-12-01T11:32:01 | 2019-12-01T11:32:01 | 225,150,301 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 425 | sci | SGS.sci | function f=funcx(x)
f=100*((x(2) - x(1).^2).^2) + (x(1) - 1).^2;
endfunction
function g=grad(x)
g=[-400*x(1)*(x(2) - x(1).^2) + 2*(x(1) - 1);200 * (x(2) - x(1).^2)];
endfunction
x = [4;4];
alpha= 0.0001;
ep = 0.00000001;
d=1;
t=0;
while(d > ep)
g = grad(x)
xnew = x - alpha* grad(x);
t=t+1;
d = abs(funcx(xnew) - funcx(x));
x = xnew;
end
disp(x);
disp(funcx(x));
disp(t);
|
95933257b18c809806aa1bdcda8aae5e73379325 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH3/EX3.4/ex3_4.sce | bfee4143729a36110e7867277b489aac33c34dda | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 836 | sce | ex3_4.sce | // Exa 3.4
clc;
clear;
close;
// Given data
R = 0.29;// in kJ/kg-K
R = R * 10^3;// in J/kg-K
C_p = 1.005;// in kJ/kg-K
T = 185;// in degree C
T = T + 273;// in K
T2 = 70+273;// in K
V1 = 0.23;// in m^3
P = 500;// in kN/m^2
P = P * 10^3;// in N/m^2
m = (P*V1)/(R*T);// in kg
Q = m*C_p*(T2-T);// in kJ
disp(Q,"Heat transferred in kJ is");
disp("i.e. "+string(abs(Q))+" kJ heat has been abstracted from the gas")
V2 = V1*(T2/T);// in m^3
W = P * (V2-V1);// in J
W= W*10^-3;//in kJ
disp(W,"The work done in kJ is");
disp("i.e. "+string(abs(W))+" kJ work has been done on the gas ")
R= R*10^-3;// in kJ/kg-K
C_v = C_p - R;// in kJ/kg-K
I_E = m*C_v*(T2-T);// Change in internal energy in kJ
disp(I_E,"Change in internal energy in kJ is");
disp("i.e. "+string(abs(I_E))+" kJ energy is decrease in internal energy")
|
072d393b43bb36361454aa83f9dcd37975970b5c | bacfa2c3465b51443f9deef6b7990a723462ed6e | /Técnicas computacionais/Exercícios/5/5.sce | dde156d79798070c57929ff4dddda5bc33684b8a | [] | no_license | LuizFelipeNeves/Faculdade | eeeaeaba9413b1ef6fca26c07da7a950da116cd7 | 79b85bcca36a563a572ee9c872b50c5df1c10424 | refs/heads/master | 2022-09-08T05:47:08.502237 | 2022-09-01T01:10:19 | 2022-09-01T01:10:19 | 140,659,561 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 473 | sce | 5.sce | clear(); // Limpas as variaveis do Espaço
clc(); // Limpa o console
// Recebendo os dados
x1 = input("Digite o valor da x1:"); //= 2
y1 = input("Digite o valor de y1:"); //= 3
z1 = input("Digite o valor de z1:"); //= 4
x2 = input("Digite o valor de x2:"); //= 5
y2 = input("Digite o valor de y2:"); //= 6
z2 = input("Digite o valor de z2:"); //= 7
// Calculo da distância
d = sqrt((x1-x2)^2+(y1-y2)^2+(z1-z2)^2);
printf('A distância entre os dois pontos é: %f', d);
|
c28d8e34a03c41e8d0cf079f24449efec4a680b6 | 717ddeb7e700373742c617a95e25a2376565112c | /503/CH5/EX5.4/ch5_4.sci | cc120a890b4c5ea8477e6146015372b47c6e941b | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 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 | 380 | sci | ch5_4.sci | // to calculate flux/pole
clc;
S=42;
p=2;
ph=3;
m=S/(p*ph); //slots/pole/phase
g=180*p/S; //slots angle
K_b=sind(m*g/2)/(m*sind(g/2)); //breadth factor
cp=17;
pp=S/p;
theta_sp=(pp-cp)*g; //short pitch angle
K_p=cosd(theta_sp/2);
N_ph=S*2/(ph*p*2); //2 parallel paths
E_p=2300/sqrt(3);
phi=E_p/(4.44*K_b*K_p*f*N_ph);
disp(phi,'flux/pole(Wb)');
|
a981a5e77cbf986e3fd8cf6e35cf83dede111d1a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH3/EX3.31/EX3_31.sce | 84e8ff63c98f7de710cac367420612a818d7d606 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 231 | sce | EX3_31.sce | //EXAMPLE -3.31 PG NO -193
Zr=3333.33;
Vry=200;
X=16666.66;
Y=346.40; //Y=(300-j173.2)
I=Y/X;
R.V=I*Zr;
disp('i) I = '+string (I)+'<-29.99 A');
disp('ii) READING OF VOLTMETER = '+string (R.V)+' <-30 degree V');
|
689f21b72d028cd28b6fc206b3255ccbce72a5e1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH29/EX29.2/G_2.sce | 7abb28878ce2d53d6ee1e4f7b023957638754852 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 933 | sce | G_2.sce | // sum 29-2
clc;
clear;
//Let reverse speed gear be RSG
RSG=5.5;
//Let T5/T6 = Z1
T1=2;
//Let T3/T7 = Z2
Z2=2.75;
T7=18;
T3=Z2*T7;
T3=50;
//Let T3/T1 =Z3
Z3=2.5;
T1=T3/Z3;
//Let T4/T2 = Z4
Z4=2.25/2;
T2=(T1+T3)/(Z4+1);
T4=T1+T3-T2;
//Let T5/T6=Z5
Z5=2;
T6=(T1+T3)/3;
T5=(T1+T3)-T6;
T7=18;
//let first gear ratio is G1
G1=50*47/(20*23);
//Let 2nd gear ratio is G2
G2=37*47/(33*23);
//Let 3rd gear ratio is G3
G3=1;
//Let reverse gear ratio is R
R=50*47/(18*23);
// printing data in scilab o/p window
printf("T1 is %0.0f ",T1);
printf("\n T2 is %0.0f ",T2);
printf("\n T3 is %0.0f ",T3);
printf("\n T4 is %0.0f ",T4);
printf("\n T5 is %0.0f ",T5);
printf("\n T6 is %0.0f ",T6);
printf("\n T7 is %0.0f ",T7);
printf("\n G1 is %0.3f ",G1);
printf("\n G2 is %0.3f ",G2);
printf("\n G3 is %0.1f ",G3);
printf("\n R is %0.3f ",R);
|
22e37023740843cfbde9b61ca8b589a6a317c42b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2126/CH1/EX1.34/34.sce | 7897ffac0df73428129504c7f3ad5048ac08132f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 560 | sce | 34.sce | clc
clear
//Input data
M=2 //Mach number
h=20 //Altitude in km
Tc=-56 //Ambient temperature in degree Centigrade
Ta=-56+273 //Ambient temperature in K
k=1.4 //Adiabatic constant
R=287 //Specific gas constant in J/kg-k
Cp=1005 //Specific heat capacity at constant pressure in J/kg-K
//Calculation
a=sqrt(k*R*Ta) //Sound velocity in m/s
C=M*a //Velocity of flight in m/s
To=Tc+(C^2/(2*Cp)) //The maximum temperature encountered is %3.1f degree Centigrade
//Output
printf('The maximum temperature encountered is %3.1f degree Centigrade',To)
|
7e93af9db20cb327b48f86703e2031fb7d3bf4a2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3417/CH10/EX10.2.8.5/Ex10_2_8_5.sce | 25615372842177bc5c9e207fa37b10174d4ca257 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,473 | sce | Ex10_2_8_5.sce | //Ex10.2.8.5;heat transfer rate would be involved under these circumstances
del_G_at25degree_celcius=-195500;//unit=cal/gm mole
del_H_at25degree_celcius=-212800;//unit=cal/gm mole
F=(96500/4.184);//since F=96500 coulombs/gm-mole
n=8
E_at25degree_celcius=-del_G_at25degree_celcius/(n*F);//Joules/coulomb
printf(" E_at25degree_celcius=%f volts=1.060 volts",E_at25degree_celcius);
//Max. efficiency nmax=del_Wmax/-(del_H)at25 degree celcuis = -(del_G)T/(-del_H)25
nmax=del_G_at25degree_celcius/del_H_at25degree_celcius;
printf("\n nmax=%f",nmax);
//voltage efficiency nv=on load voltage/open circuit voltage=Operating voltage/Theoretical voltage
Theoretical_voltage=1.060/0.92;
printf("\n Theoretical_voltage=%f volts",Theoretical_voltage);
//power developed=100 kW=100*10^3 W
power_developed=(100*10^3)*0.86;//unit=kcal/hr; since 1 watt=1 joule/sec=0.86 kcal/hr
printf("\n power_developed=%f kcal/hr",power_developed);
del_G=-195500;
//Required flow rate of Methane
R_F_R_O_M=(power_developed*16)/del_G;//kg/hr;
//(methane moles)=16
printf("\n flow rate of Methane=%f kg/hr",R_F_R_O_M);
//Heat transfer Q=T8del_s=del_H+del_w=del_H-del_G
Q=del_H_at25degree_celcius-del_G_at25degree_celcius;
printf("\n The heat transfer is Q=%f kcal/kg mole",Q);
//The value are approximate in the text book to the real calculated value
//value of "Required flow rate of methane" is wrong in the text book.
//value of "Heat transfer" is wrong in the text book.
|
2b88ab50cea1d3a9843673c79e91a1adec3d2b7f | 20253970b7dd99e615215029609de822e2bf855d | /judge/tests/52063/15.tst | d3beca35487b6951c5523485c3ee6527e1567285 | [] | no_license | B-Rich/CATS | d26d6c85cfc1dbdc78fa16f691adbfccc615df03 | d299e328f9e7498ecd9f58f64069fcd57536db00 | refs/heads/master | 2021-01-01T06:10:11.322262 | 2011-06-21T15:06:06 | 2011-06-21T15:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 23 | tst | 15.tst | 9 10
2
6 7 2
3 3 2
|
4bbe94cbe4e0c422f60ab275ca5b6d1381abee80 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4/Unix-Windows/scilab-2.4/macros/m2sci/sci_qz.sci | e0250c86b28c30fd9a14271fc287bd44f524b4d8 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 466 | sci | sci_qz.sci | function [stk,txt,top]=sci_qz()
// Copyright INRIA
txt=[]
if lhs==1 then
stk=list('gschur('+stk(top-1)(1)+','+stk(top)(1)+')','0','?','?','1')
else
stk=list()
s=list('gschur('+stk(top-1)(1)+','+stk(top)(1)+')','-1','?','?','1')
if lhs==5 then
[AA, BB, Q, Z, V]=lhsvarsnames()
txt=[txt;lhsargs([AA, BB, Q, Z, V])+' = mtlb_qz'+..
rhsargs([stk(top-1)(1),stk(top)(1)])]
s=list(' ','-2','0','0','0')
end
for k=1:lhs
stk(k)=s
end
end
|
62f6b6c9508819bd90af5a3d217bf9b3218a8679 | 262ac6443426f24d5d9b13945d080affb0bd6d9b | /opgaves/wisselgeld-2/run-me-first.sce | fb6f4d7b492a516ad4c664aed54600d38372758e | [] | no_license | slegers/Scilab | 9ebd1d486f28cf66e04b1552ad6e94ea4bc98a0b | 1b5dc3434def66355dafeb97c01916736a936301 | refs/heads/master | 2021-01-12T01:42:01.493578 | 2017-01-09T10:54:09 | 2017-01-09T10:54:09 | 78,420,343 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,533 | sce | run-me-first.sce | funcprot(0)
test_cases = list()
test_cases($+1) = struct('input', struct('munten', [], 'doel', 0), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [], 'doel', 1), 'output', struct('mogelijk', %f))
test_cases($+1) = struct('input', struct('munten', [1], 'doel', 1), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1], 'doel', 2), 'output', struct('mogelijk', %f))
test_cases($+1) = struct('input', struct('munten', [1, 1], 'doel', 2), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [3], 'doel', 2), 'output', struct('mogelijk', %f))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 1), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 2), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 3), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 4), 'output', struct('mogelijk', %f))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 5), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 6), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 7), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 8), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 9), 'output', struct('mogelijk', %f))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 10), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 11), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 12), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 13), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 14), 'output', struct('mogelijk', %f))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 15), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 16), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 17), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 18), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 19), 'output', struct('mogelijk', %f))
test_cases($+1) = struct('input', struct('munten', [1, 2, 5, 10, 10], 'doel', 20), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [9, 5, 3, 2], 'doel', 10), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [1, 2, 4, 8, 16, 32, 64, 128], 'doel', 77), 'output', struct('mogelijk', %t))
test_cases($+1) = struct('input', struct('munten', [128, 64, 32, 16, 8, 4, 2, 1], 'doel', 77), 'output', struct('mogelijk', %t))
function Result = test_case(index)
Result = test_cases(index)
endfunction
function Result = test_case_count()
Result = size(test_cases)
endfunction
function show(index)
tc = test_case(index)
disp('Inputs')
disp('munten')
disp(tc.input.munten)
disp('doel')
disp(tc.input.doel)
disp('Outputs')
disp('mogelijk')
disp(tc.output.mogelijk)
endfunction
function Result = check(index)
tc = test_case(index)
[mogelijk] = solve(tc.input.munten, tc.input.doel)
Result = %t
Result = Result & isequal(mogelijk, tc.output.mogelijk)
endfunction
function Result = failures()
n = test_case_count()
failures = []
for index = 1:n
if ~check(index) then
failures = [ failures, index ]
end
end
Result = failures
endfunction
function report()
[temp, n] = size(failures())
disp( strcat( [ "Number of test cases: ", string(test_case_count()) ] ) )
disp( strcat( [ "Number of failures: ", string(n) ] ) )
disp( strcat( [ "Number of successes: ", string(test_case_count() - n) ] ) )
if n == 0 then
disp("SUCCESS")
else
disp("FAIL")
end
endfunction
|
892ba2eff0b76888ee098207888e783ae1337a50 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/falltime/falltime20.sce | c3119bad245b1e8d32cf15dc2df0ae05fd3fb65d | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 354 | sce | falltime20.sce | x=[2.30256624769934;
2.29071803023829;
2.26283604900314;
2.35145015316178;
2.27686291358213;
2.29805616201205;
2.32805830340568;
2.30878734371402;
2.29343801980763;
2.23019030245799*%i];
fs=4e6;
t=(1/fs);
[F,LT,UT,LL]=falltime(x);
disp(F);
disp(LT);
disp(UT);
disp(LL);
////output
//!--error 202
//min: Wrong type for argument #1: Real matrix expected.
|
f97d3c0a3fa5077e38dc07b3e14dca3554bf0652 | 931df7de6dffa2b03ac9771d79e06d88c24ab4ff | /Happy Halloween.sce | 14e62fc602f88567f3641f610b6ebdc4f48b1cf5 | [] | no_license | MBHuman/Scenarios | be1a722825b3b960014b07cda2f12fa4f75c7fc8 | 1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137 | refs/heads/master | 2023-01-14T02:10:25.103083 | 2020-11-21T16:47:14 | 2020-11-21T16:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 50,955 | sce | Happy Halloween.sce | Name=Happy Halloween
PlayerCharacters=HH Player
BotCharacters=HH Target L.bot;HH Target R.bot;HH Target B.bot
IsChallenge=true
Timelimit=30.0
PlayerProfile=HH Player
AddedBots=HH Target L.bot;HH Target R.bot;HH Target B.bot
PlayerMaxLives=0
BotMaxLives=0;0;0
PlayerTeam=1
BotTeams=2;2;2
MapName=happy_halloween_offset.map
MapScale=1.0
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=false
InvincibleBots=false
Timescale=1.0
BlockHealthbars=false
TimeRefilledByKill=0.0
ScoreToWin=1.0
ScorePerDamage=1.0
ScorePerKill=0.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=0.0
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=false
ScoreMultDamageEfficiency=false
ScoreMultKillEfficiency=false
GameTag=Fun
WeaponHeroTag=
DifficultyTag=1
AuthorsTag=pleasewait
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=false
BlockFCT=true
Description=Trick or Aiming
GameVersion=1.0.8.0
ScorePerDistance=0.0
MBSEnable=false
MBSTime1=0.25
MBSTime2=0.5
MBSTime3=0.75
MBSTime1Mult=1.0
MBSTime2Mult=2.0
MBSTime3Mult=3.0
MBSFBInstead=false
MBSRequireEnemyAlive=false
[Aim Profile]
Name=Default
MinReactionTime=0.3
MaxReactionTime=0.4
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=15.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=40.0
ShootFOV=15.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Bot Profile]
Name=HH Target L
DodgeProfileNames=HH Dodging
DodgeProfileWeights=1.0
DodgeProfileMaxChangeTime=100.0
DodgeProfileMinChangeTime=100.0
WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=false
CharacterProfile=HH Target L
SeeThroughWalls=true
NoDodging=false
NoAiming=false
[Bot Profile]
Name=HH Target R
DodgeProfileNames=HH Dodging
DodgeProfileWeights=1.0
DodgeProfileMaxChangeTime=100.0
DodgeProfileMinChangeTime=100.0
WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=false
CharacterProfile=HH Target R
SeeThroughWalls=true
NoDodging=false
NoAiming=false
[Bot Profile]
Name=HH Target B
DodgeProfileNames=HH Dodging
DodgeProfileWeights=1.0
DodgeProfileMaxChangeTime=100.0
DodgeProfileMinChangeTime=100.0
WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=false
CharacterProfile=HH Target B
SeeThroughWalls=true
NoDodging=false
NoAiming=false
[Character Profile]
Name=HH Player
MaxHealth=100.0
WeaponProfileNames=HH Fully-auto;;;;;;;
MinRespawnDelay=0.000001
MaxRespawnDelay=0.000001
StepUpHeight=16.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=36.000
HeadshotOnly=false
DamageKnockbackFactor=0.0
MovementType=Base
MaxSpeed=320.0
MaxCrouchSpeed=160.0
Acceleration=2560.0
AirAcceleration=16000.0
Friction=1.0
BrakingFrictionFactor=0.5
JumpVelocity=256.0
Gravity=1.0
AirControl=0.25
CanCrouch=false
CanPogoJump=false
CanCrouchInAir=false
CanJumpFromCrouch=false
EnemyBodyColor=X=1.000 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=0.000 Y=0.000 Z=1.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=72.0
MainBBRadius=12.0
MainBBHasHead=false
MainBBHeadRadius=10.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=72.0
ProjBBRadius=12.0
ProjBBHasHead=false
ProjBBHeadRadius=10.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=true
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=512.0
VerticalSpawnOffset=0.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Character Profile]
Name=HH Target L
MaxHealth=120.0
WeaponProfileNames=;;;;;;;
MinRespawnDelay=3.0
MaxRespawnDelay=3.0
StepUpHeight=16.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=0.0
MovementType=Base
MaxSpeed=320.0
MaxCrouchSpeed=160.0
Acceleration=2560.0
AirAcceleration=16000.0
Friction=1.0
BrakingFrictionFactor=0.5
JumpVelocity=256.0
Gravity=1.0
AirControl=0.25
CanCrouch=false
CanPogoJump=false
CanCrouchInAir=false
CanJumpFromCrouch=false
EnemyBodyColor=X=1.000 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=0.000 Y=0.000 Z=1.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=72.0
MainBBRadius=12.0
MainBBHasHead=false
MainBBHeadRadius=10.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=72.0
ProjBBRadius=12.0
ProjBBHasHead=false
ProjBBHeadRadius=10.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=true
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=512.0
VerticalSpawnOffset=32.0
SpawnXOffset=-96.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Character Profile]
Name=HH Target R
MaxHealth=120.0
WeaponProfileNames=;;;;;;;
MinRespawnDelay=3.0
MaxRespawnDelay=3.0
StepUpHeight=16.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=0.0
MovementType=Base
MaxSpeed=320.0
MaxCrouchSpeed=160.0
Acceleration=2560.0
AirAcceleration=16000.0
Friction=1.0
BrakingFrictionFactor=0.5
JumpVelocity=256.0
Gravity=1.0
AirControl=0.25
CanCrouch=false
CanPogoJump=false
CanCrouchInAir=false
CanJumpFromCrouch=false
EnemyBodyColor=X=1.000 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=0.000 Y=0.000 Z=1.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=72.0
MainBBRadius=12.0
MainBBHasHead=false
MainBBHeadRadius=10.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=72.0
ProjBBRadius=12.0
ProjBBHasHead=false
ProjBBHeadRadius=10.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=true
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=512.0
VerticalSpawnOffset=32.0
SpawnXOffset=96.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Character Profile]
Name=HH Target B
MaxHealth=120.0
WeaponProfileNames=;;;;;;;
MinRespawnDelay=3.0
MaxRespawnDelay=3.0
StepUpHeight=16.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=0.0
MovementType=Base
MaxSpeed=320.0
MaxCrouchSpeed=160.0
Acceleration=2560.0
AirAcceleration=16000.0
Friction=1.0
BrakingFrictionFactor=0.5
JumpVelocity=256.0
Gravity=1.0
AirControl=0.25
CanCrouch=false
CanPogoJump=false
CanCrouchInAir=false
CanJumpFromCrouch=false
EnemyBodyColor=X=1.000 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=0.000 Y=0.000 Z=1.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Spheroid
MainBBHeight=32.0
MainBBRadius=16.0
MainBBHasHead=false
MainBBHeadRadius=10.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Spheroid
ProjBBHeight=32.0
ProjBBRadius=16.0
ProjBBHasHead=false
ProjBBHeadRadius=10.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=true
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=512.0
VerticalSpawnOffset=-128.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Dodge Profile]
Name=HH Dodging
MaxTargetDistance=100000.0
MinTargetDistance=0.0
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.2
MaxLRTimeChange=0.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.1
BlockedMovementReactionMax=0.1
[Weapon Profile]
Name=HH Fully-auto
Type=Hitscan
ShotsPerClick=1
DamagePerShot=6.0
KnockbackFactor=0.0
TimeBetweenShots=0.05
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=1.0
HeadshotCapable=false
HeadshotMultiplier=2.0
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.1
ReloadTimeFromPartial=0.1
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=6.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Ball
VisualLifetime=0.1
WallParticleEffect=Gunshot
HitParticleEffect=None
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=1.0
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.001
HitSoundCooldown=0.001
HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.0
RecoilNegatable=false
DecalType=0
DecalSize=30.0
DelayAfterShooting=0.0
BeamTracksCrosshair=true
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=true
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=50
ADSFOVOverride=40.0
ADSFOVScale=Vertical (1:1)
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.1
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.095
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Map Data]
reflex map version 8
global
entity
type WorldSpawn
String32 targetGameOverCamera end
UInt8 playersMin 1
UInt8 playersMax 16
brush
vertices
128.000000 256.000000 272.000000
384.000000 256.000000 272.000000
384.000000 256.000000 192.000000
128.000000 256.000000 192.000000
128.000000 240.000000 272.000000
384.000000 240.000000 272.000000
384.000000 240.000000 192.000000
128.000000 240.000000 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
128.000000 432.000000 272.000000
384.000000 432.000000 272.000000
384.000000 432.000000 192.000000
128.000000 432.000000 192.000000
128.000000 416.000000 272.000000
384.000000 416.000000 272.000000
384.000000 416.000000 192.000000
128.000000 416.000000 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
128.000000 416.000000 192.000000
384.000000 416.000000 192.000000
384.000000 416.000000 176.000000
128.000000 416.000000 176.000000
128.000000 256.000000 192.000000
384.000000 256.000000 192.000000
384.000000 256.000000 176.000000
128.000000 256.000000 176.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
112.000000 416.000000 272.000000
128.000000 416.000000 272.000000
128.000000 416.000000 192.000000
112.000000 416.000000 192.000000
112.000000 256.000000 272.000000
128.000000 256.000000 272.000000
128.000000 256.000000 192.000000
112.000000 256.000000 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
128.000000 416.000000 288.000000
384.000000 416.000000 288.000000
384.000000 416.000000 272.000000
128.000000 416.000000 272.000000
128.000000 256.000000 288.000000
384.000000 256.000000 288.000000
384.000000 256.000000 272.000000
128.000000 256.000000 272.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
384.000000 416.000000 272.000000
400.000000 416.000000 272.000000
400.000000 416.000000 192.000000
384.000000 416.000000 192.000000
384.000000 256.000000 272.000000
400.000000 256.000000 272.000000
400.000000 256.000000 192.000000
384.000000 256.000000 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
80.000000 224.000000 656.000000
160.000000 128.000000 656.000000
160.000000 144.000000 624.000000
160.000000 144.000000 656.000000
80.000000 224.000000 624.000000
80.000000 128.000000 624.000000
80.000000 128.000000 656.000000
160.000000 128.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 0 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 1 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 4 2 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 6 5 7 0x00000000
brush
vertices
160.000000 144.000000 656.000000
352.000000 144.000000 656.000000
352.000000 144.000000 624.000000
160.000000 144.000000 624.000000
160.000000 128.000000 656.000000
352.000000 128.000000 656.000000
352.000000 128.000000 624.000000
160.000000 128.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
352.000000 144.000000 656.000000
432.000000 224.000000 656.000000
432.000000 224.000000 624.000000
352.000000 128.000000 624.000000
352.000000 144.000000 624.000000
432.000000 128.000000 656.000000
432.000000 128.000000 624.000000
352.000000 128.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000
brush
vertices
80.000000 416.000000 656.000000
160.000000 416.000000 656.000000
160.000000 416.000000 624.000000
80.000000 288.000000 624.000000
80.000000 416.000000 624.000000
96.000000 288.000000 656.000000
96.000000 288.000000 624.000000
80.000000 288.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000
brush
vertices
160.000000 416.000000 656.000000
352.000000 416.000000 656.000000
352.000000 416.000000 624.000000
224.000000 288.000000 624.000000
160.000000 416.000000 624.000000
288.000000 288.000000 656.000000
288.000000 288.000000 624.000000
224.000000 288.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000
brush
vertices
320.000000 224.000000 656.000000
352.000000 224.000000 656.000000
352.000000 224.000000 624.000000
320.000000 224.000000 624.000000
320.000000 208.000000 656.000000
352.000000 208.000000 656.000000
352.000000 208.000000 624.000000
320.000000 208.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
288.000000 160.000000 656.000000
320.000000 160.000000 656.000000
320.000000 160.000000 624.000000
288.000000 160.000000 624.000000
288.000000 144.000000 656.000000
320.000000 144.000000 656.000000
320.000000 144.000000 624.000000
288.000000 144.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
192.000000 160.000000 656.000000
224.000000 160.000000 656.000000
224.000000 160.000000 624.000000
192.000000 160.000000 624.000000
192.000000 144.000000 656.000000
224.000000 144.000000 656.000000
224.000000 144.000000 624.000000
192.000000 144.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
160.000000 224.000000 656.000000
192.000000 224.000000 656.000000
192.000000 224.000000 624.000000
160.000000 224.000000 624.000000
160.000000 208.000000 656.000000
192.000000 208.000000 656.000000
192.000000 208.000000 624.000000
160.000000 208.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
80.000000 416.000000 672.000000
432.000000 416.000000 672.000000
432.000000 416.000000 656.000000
80.000000 416.000000 656.000000
80.000000 288.000000 672.000000
432.000000 288.000000 672.000000
432.000000 288.000000 656.000000
80.000000 288.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
352.000000 416.000000 656.000000
432.000000 416.000000 656.000000
432.000000 416.000000 624.000000
416.000000 288.000000 624.000000
352.000000 416.000000 624.000000
432.000000 288.000000 656.000000
432.000000 288.000000 624.000000
416.000000 288.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000
brush
vertices
273.777710 448.000031 659.555542
284.444397 448.000031 670.222229
284.444397 480.000061 670.222229
256.000000 448.000031 688.000000
256.000000 480.000061 688.000000
273.777710 480.000061 659.555542
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 3 4 0x00000000
brush
vertices
256.000000 448.000000 656.000000
273.777710 448.000031 659.555542
273.777649 480.000061 659.555542
256.000000 448.000031 688.000000
255.999924 480.000061 688.000000
255.999924 480.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 5 0x00000000
brush
vertices
284.444397 448.000031 670.222229
288.000000 448.000000 688.000000
288.000000 480.000000 688.000061
256.000000 448.000000 688.000000
256.000000 480.000000 688.000061
284.444397 480.000061 670.222290
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 5 0x00000000
brush
vertices
238.222244 448.000031 659.555603
256.000000 448.000000 656.000000
256.000061 480.000000 656.000000
256.000000 448.000000 688.000000
256.000061 480.000000 688.000000
238.222290 480.000061 659.555603
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 5 0x00000000
brush
vertices
227.555573 448.000031 670.222290
238.222244 448.000031 659.555603
238.222244 480.000061 659.555603
256.000000 448.000031 688.000000
256.000000 480.000061 688.000000
227.555573 480.000061 670.222290
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 3 4 0x00000000
brush
vertices
224.000000 448.000000 688.000000
227.555573 448.000031 670.222290
227.555542 480.000061 670.222351
256.000000 448.000031 688.000000
255.999969 480.000061 688.000061
223.999969 480.000000 688.000061
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 5 0x00000000
brush
vertices
227.555603 448.000031 705.777771
224.000000 448.000000 688.000000
224.000000 480.000000 687.999939
256.000000 448.000000 688.000000
256.000000 480.000000 687.999939
227.555603 480.000061 705.777710
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 5 0x00000000
brush
vertices
238.222290 448.000031 716.444458
227.555603 448.000031 705.777771
227.555603 480.000061 705.777771
256.000000 448.000031 688.000000
256.000000 480.000061 688.000000
238.222290 480.000061 716.444458
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 3 4 0x00000000
brush
vertices
256.000000 448.000000 720.000000
238.222290 448.000031 716.444458
238.222366 480.000061 716.444458
256.000000 448.000031 688.000000
256.000061 480.000061 688.000000
256.000061 480.000000 720.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 5 0x00000000
brush
vertices
273.777771 448.000031 716.444397
256.000000 448.000000 720.000000
255.999939 480.000000 720.000000
256.000000 448.000000 688.000000
255.999939 480.000000 688.000000
273.777710 480.000061 716.444397
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 5 0x00000000
brush
vertices
284.444458 448.000031 705.777710
273.777771 448.000031 716.444397
273.777771 480.000061 716.444397
256.000000 448.000031 688.000000
256.000000 480.000061 688.000000
284.444458 480.000061 705.777710
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 3 4 0x00000000
brush
vertices
288.000000 448.000000 688.000000
284.444458 448.000031 705.777710
284.444427 480.000061 705.777649
256.000000 448.000031 688.000000
256.000031 480.000061 687.999939
288.000031 480.000000 687.999939
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 5 0x00000000
brush
vertices
80.000000 416.000000 784.000000
432.000000 416.000000 784.000000
432.000000 416.000000 768.000000
80.000000 416.000000 768.000000
80.000000 128.000000 784.000000
432.000000 128.000000 784.000000
432.000000 128.000000 768.000000
80.000000 128.000000 768.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
128.000000 448.000000 784.000000
384.000000 448.000000 784.000000
384.000000 448.000000 624.000000
64.000000 416.000000 624.000000
128.000000 448.000000 624.000000
448.000000 416.000000 784.000000
448.000000 416.000000 624.000000
64.000000 416.000000 784.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000
brush
vertices
64.000000 416.000000 784.000000
80.000000 416.000000 784.000000
80.000000 416.000000 624.000000
64.000000 416.000000 624.000000
64.000000 128.000000 784.000000
80.000000 128.000000 784.000000
80.000000 128.000000 624.000000
64.000000 128.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
432.000000 416.000000 784.000000
448.000000 416.000000 784.000000
448.000000 416.000000 624.000000
432.000000 416.000000 624.000000
432.000000 128.000000 784.000000
448.000000 128.000000 784.000000
448.000000 128.000000 624.000000
432.000000 128.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
64.000000 128.000000 784.000000
448.000000 128.000000 784.000000
448.000000 128.000000 624.000000
96.000000 96.000000 624.000000
64.000000 128.000000 624.000000
416.000000 96.000000 784.000000
416.000000 96.000000 624.000000
96.000000 96.000000 784.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000
brush
vertices
256.000000 288.000000 768.000000
432.000000 288.000000 768.000000
432.000000 288.000000 624.000000
432.000000 240.000000 768.000000
256.000000 288.000000 624.000000
272.000000 240.000000 624.000000
272.000000 240.000000 768.000000
432.000000 240.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 0 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 3 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 4 2 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000
brush
vertices
80.000000 288.000000 768.000000
256.000000 288.000000 768.000000
256.000000 288.000000 624.000000
80.000000 240.000000 624.000000
80.000000 288.000000 624.000000
240.000000 240.000000 768.000000
240.000000 240.000000 624.000000
80.000000 240.000000 768.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000
brush
vertices
80.000000 240.000000 768.000000
432.000000 240.000000 768.000000
432.000000 240.000000 624.000000
80.000000 240.000000 624.000000
80.000000 224.000000 768.000000
432.000000 224.000000 768.000000
432.000000 224.000000 624.000000
80.000000 224.000000 624.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
80.000000 224.000000 704.000000
432.000000 224.000000 704.000000
432.000000 224.000000 656.000000
80.000000 224.000000 656.000000
80.000000 128.000000 704.000000
432.000000 128.000000 704.000000
432.000000 128.000000 656.000000
80.000000 128.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
80.000000 224.000000 768.000000
144.000000 224.000000 768.000000
144.000000 224.000000 704.000000
80.000000 224.000000 704.000000
80.000000 128.000000 768.000000
144.000000 128.000000 768.000000
144.000000 128.000000 704.000000
80.000000 128.000000 704.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
368.000000 224.000000 768.000000
432.000000 224.000000 768.000000
432.000000 224.000000 704.000000
368.000000 224.000000 704.000000
368.000000 128.000000 768.000000
432.000000 128.000000 768.000000
432.000000 128.000000 704.000000
368.000000 128.000000 704.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
80.000000 416.000000 768.000000
104.000000 416.000000 768.000000
104.000000 416.000000 672.000000
80.000000 416.000000 672.000000
80.000000 288.000000 768.000000
104.000000 288.000000 768.000000
104.000000 288.000000 672.000000
80.000000 288.000000 672.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
408.000000 416.000000 768.000000
432.000000 416.000000 768.000000
432.000000 416.000000 672.000000
408.000000 416.000000 672.000000
408.000000 288.000000 768.000000
432.000000 288.000000 768.000000
432.000000 288.000000 672.000000
408.000000 288.000000 672.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
104.000000 416.000000 768.000000
208.000000 416.000000 768.000000
208.000000 416.000000 736.000000
104.000000 416.000000 736.000000
104.000000 288.000000 768.000000
208.000000 288.000000 768.000000
208.000000 288.000000 736.000000
104.000000 288.000000 736.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
208.000000 416.000000 768.000000
304.000000 416.000000 768.000000
304.000000 416.000000 672.000000
208.000000 416.000000 672.000000
208.000000 288.000000 768.000000
304.000000 288.000000 768.000000
304.000000 288.000000 672.000000
208.000000 288.000000 672.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
304.000000 416.000000 768.000000
408.000000 416.000000 768.000000
408.000000 416.000000 736.000000
304.000000 416.000000 736.000000
304.000000 288.000000 768.000000
408.000000 288.000000 768.000000
408.000000 288.000000 736.000000
304.000000 288.000000 736.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
entity
type CameraPath
UInt8 posLerp 2
UInt8 angleLerp 2
entity
type PlayerSpawn
Vector3 position 256.000000 256.000000 256.000000
Bool8 teamB 0
Bool8 initialSpawn 0
Bool8 modeCTF 0
Bool8 modeFFA 0
Bool8 modeTDM 0
Bool8 mode1v1 0
Bool8 modeRace 0
Bool8 mode2v2 0
entity
type PlayerSpawn
Vector3 position 256.000000 256.000000 704.000000
Vector3 angles 180.000000 0.000000 0.000000
Bool8 teamA 0
Bool8 initialSpawn 0
Bool8 modeCTF 0
Bool8 modeFFA 0
Bool8 modeTDM 0
Bool8 mode1v1 0
Bool8 modeRace 0
Bool8 mode2v2 0
|
b8790ceb611f6664ae9eaf8bd4e8a9c9ac0114d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1580/CH3/EX3.4/Ch03Ex4.sce | 846e4555c9a18097a2a9966bf39cdba667828c00 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 691 | sce | Ch03Ex4.sce | // Scilab Code Ex3.4 : Page-3.7 (2010)
clc;clear;
a = 0.27e-9; // Lattice constant for BCC, metre
c = 0.494e-9; // Height of the unit cell, metre
M = 65.37; // Atomic weight of zn, kg
N = 6.02e+26; // Avogadro number per k mol
m = 6*M/N; // Mass per unit cell in HCP structure, kg
V = 3*sqrt(3)*a^2*c/2; // Volume of unit cell in HCP, metre cube
rho = m/V; // Density of HCP Zn structure, kg per metrecube
printf("\nVolume of HCP Zn structure = %4.3e metrecube", V);
printf("\nDensity of HCP Zn structure = %4.0f kg per metrecube", rho);
// Result
// Volume of HCP Zn structure = 9.356e-29 metrecube
// Density of HCP Zn structure = 6963 kg per metrecube
|
3feb447eb5fdccdf87f522b1915088b2e20960f9 | 6c7a728e11a427c93b15669517131a79a0703108 | /api/pdb_root/install/scripts/start_daemon.tst | e43b2ac9ed827ea57362b9e778bed0628e819a28 | [] | no_license | ZVlad1980/adm_scripts | 0b9fe4ff166213dc649d555c81e8d65b858074e4 | 9978a098c8140f5722b51e799969b76e2d68b42e | refs/heads/master | 2020-03-31T08:45:49.405822 | 2019-04-30T05:04:03 | 2019-04-30T05:04:03 | 152,071,490 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 235 | tst | start_daemon.tst | PL/SQL Developer Test script 3.0
9
-- Created on 27.04.2018 by V.ZHURAVOV
declare
-- Local variables here
i integer;
begin
--dbms_session.reset_package; return;
-- Test statements here
pdb_daemon_api.start_daemon;
end;
0
0
|
174d5362a9b373863fcdb874602b4bcb9a4d4701 | efa427de3490f3bb884d8ac0a7d78829ec7990f9 | /square.sce | d1435a2007af1a40109969bb12f05e655a52c0b6 | [] | no_license | letyrobueno/Scilab | a47648473aa681556561d5cea20659d143e4f492 | 2f23623dccea89a3ab2db12ec1f615186f785aa4 | refs/heads/master | 2020-09-01T19:00:30.804237 | 2019-11-01T17:45:22 | 2019-11-01T17:45:22 | 219,031,973 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 199 | sce | square.sce | x = input("Give the square side length: ")
area = x^2
perimeter = 4*x
diagonal = sqrt(2)*x
printf("The area is %2.2f\n The perimeter is %2.2f\n The diagonal is %2.2f",area,perimeter,diagonal)
|
42efd330a0c4308dd44126edaa2c2398653ae64d | 872b5ff8852c926ca1261037de07449db7ac51db | /area-01/metodo_ponto_fixo.sce | 4b6526bd57bc06f878e534e13de1862858e27fb1 | [] | no_license | BerdaSantos/numeric-calculus | 20e4c50d9f66f8582e89533a5101f597df6665ec | 0698409e7fa4158d6f7dd7e4d60f8a38538b3335 | refs/heads/master | 2020-05-14T18:07:02.017600 | 2018-11-23T01:50:38 | 2018-11-23T01:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 270 | sce | metodo_ponto_fixo.sce | // funcao
function y=f(x)
y = x^6 - 3*x^5 + 30*x + 1
endfunction
// gráfico
x=-2:0.1:2
plot(x,f(x),'r.-'); xgrid
// numero de pontos fixos e' quantas vezes passa pelo zero
// raizes reais no caso
x = 2 // chute
for n=1:10
x=-1/(x^2 - x -2)
disp ( x )
end
|
1791546b9e44358323d871fa4f4b4208ec072c90 | 449d555969bfd7befe906877abab098c6e63a0e8 | /615/CH2/EX2.15/2_15.sce | a3453f692c39730dadb129fa6d038f14217230cc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 240 | sce | 2_15.sce | //acids and bases//
//example 2.15//
M1=0.2;//molarity of acetic acid//
M2=0.2;//molarity of sodium acetate//
K=1.8*10^-5;
pH=-log10(K)+log10(M2/M1);//by using Henderson's equation//
printf("The pH value of buffer solution is %f",pH); |
c31eaba1397bb54824424f6d0865f233a82f0675 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3683/CH5/EX5.4/Ex5_4.sce | 7192c51ccc8522326f592d1ef8ca7c3cb2bee351 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 616 | sce | Ex5_4.sce | sigma_cc=4//in MPa
sigma_sc=130//in MPa
Asc=6*0.785*12^2//six 12 mm dia bars, in sq mm
D=200//dia of column, in mm
Ag=0.785*D^2//in sq mm
Ac=Ag-Asc//in sq mm
P=sigma_cc*Ac+sigma_sc*Asc//in N
dia=6//dia of links used, in mm
//spacing of links
s1=D//in mm
s2=16*12//in mm
s3=48*dia//in mm
s=min(s1,s2,s3)
mprintf("Permissible load on the column = %f kN\nProvide %d mm dia links at spacing equal to least of (i)Least lateral dimension = %d mm, (ii) 16 times longitudinal bar dia = %d mm, (iii) 48 times link bar dia = %d mm, i.e., %d mm\nHence, spacing or pitch = %d mm", P/10^3, dia,D,16*12, 48*dia,s,s)
|
e753b0ee74d9ea24c6866f897b378cf32514ca82 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH3/EX3.5/example3_5.sce | 4793a9525dde63240d21c25046a72f60aa2e1957 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 737 | sce | example3_5.sce | //example3.5
clc
disp("The given values are, R1=2.5 ohm, R2=0.01 ohm")
k=400/6600
disp(k,"K=400/6600=")
disp("While finding eqivalent resistance referred to primary, transfer R2 to primary as R2'',")
r=0.01/((0.0606)^2)
disp(r,"R2''(in ohm)=R2/K^2=")
r=2.5+2.7225
format(7)
disp(r,"Therefore, (R_1e)[in ohm]=R1+R2''=")
disp("It can be observed that primary is high voltage hence high resistance side hence while transferring R2 from low voltage to R2'' on high voltage, its value increses.")
disp("To find total equivalent resistance referred to secondary, first calculate R1'',")
r=2.5*(0.0606)^2
format(8)
disp(r,"R1''(in ohm)=(K^2)*R1=(0.0606^2)*2.5=")
r=0.01+0.00918
disp(r,"(R_2e)(in ohm)=R2*R1''=0.01*0.00918=")
|
145b9bf076111ce380815aba46433ffb81ce8c7f | 10009b400a1cb3f79eac088e0da3485079ab5ef5 | /matlab/1/balka.sce | 027d256948c44118854ae0b32bd8dd1b57618ce3 | [] | no_license | Paimon97/7-semestr | 36e14102688103ead95b2d515ce926929893e642 | 99d21228b1c5b0fa08cf35f5aee5eb38eed7084d | refs/heads/master | 2020-07-31T10:57:10.938684 | 2019-12-24T15:22:54 | 2019-12-24T15:22:54 | 210,580,371 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 203 | sce | balka.sce | clear
L = 10;
EI=100;
function u = bendingUnderForces(xf)
u = xf(:,1);
R = -sum(xf(:,2));
M = xf(:,1)'*xf(:,2);
endfunction
bendingUnderForces([..
1, 10;..
2, 20;..
3, 30;..
])
|
c016f79684e1d2eba0b10614af4c42e278172b22 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1466/CH23/EX23.1/23_1.sce | 6ede43c3639c5973f9ce734fea93646aecfe93b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 481 | sce | 23_1.sce |
clc
//initialisation of variables
h= 28 //ft
g= 32.2 //ft/sec^2
v1= 45.4 //ft/sec
A= 45 //degrees
Q= 1700 //ft^3/sec
w= 6.24 //lb/ft^3
c= 0.65
a= 60 //ft^2
r1= 10 //in
r2= 5 //in
//CALCULATIONS
V= v1-(Q/(w*a*c*tand(A)))
e= h*g*100/(V*v1)
a1= atand(Q*2/(v1*w*a*c*tand(A)))
w= sqrt(2*g*h*144/(r1^2-r2^2))*30/%pi
//RESULTS
printf ('Efficiency = %.1f per cent',e)
printf ('\n Inlet angle = %.1f degrees',a1)
printf ('\n Least speed of starting = %.f r.p.m',w-2)
|
309ca98f70f749e9412d9010e132be79f6d69f4a | 449d555969bfd7befe906877abab098c6e63a0e8 | /23/CH5/EX5.7/Example_5_7.sce | 850ae5e217d27af4851b7ede37df6979b61209aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 988 | sce | Example_5_7.sce | clear;
clc;
//Example 5.7
//Caption : Program to Find the Maximum Work obtained in a Steady state Flow
//To find Approx Value
function[A]=approx(V,n)
A=round(V*10^n)/10^n;//V-Value n-To what place
funcprot(0)
endfunction
function[Q]=ICPH(T0,T,A,B,C,D)
t=T/T0;
Q=(A+((B/2)*T0*(t+1))+((C/3)*T0*T0*((t^2)+t+1))+(D/(t*T0*T0)))*(T-T0)
funcprot(0);
endfunction
function[Q]=ICPS(T0,T,A,B,C,D)
t=T/T0;
Q=((A)*log(t))+(((B*T0)+(((C*T0*T0)+(D/(t*t*T0*T0)))*(t+1)/2))*(t-1))
funcprot(0);
endfunction
//Given Values
P1=50;//bar
P2=1.013;//bar
T1=800;//[K]
T2=300;//[K]
R=8.314;
//del_H=intergral(CpdT) in the limits T1 and T2
A=3.280;
B=0.593*(10^-3);
C=0;
D=0.040*(10^5);
del_H=R*ICPH(T1,T2,A,B,C,D);//[J/mol]
//del_S=integral[Cp(dT/T)] -Rln(P2/P1) btw the limits T1,T2
del_S=(R*ICPS(T1,T2,A,B,C,D))-(R*log(P2/P1));//[J/mol/K]
W_ideal=approx(del_H-(T2*del_S),0);//[J/mol]
disp('J/mol',W_ideal,'Maximum Work')
//End |
78eff34da9ee61122cdd79987dffe5b98521850e | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.2/macros/auto/minss.sci | d94882d740606c5d86626b9859303ba3be410a2e | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 539 | sci | minss.sci | function [Slmin]=minss(Sl,tol)
[lhs,rhs]=argn(0)
if Sl(1)<>'lss' then error(91,1),end
select rhs
case 1 then tol=[]
case 2 then tol=tol
else error('1 or 2 inputs: sl [,tol]')
end;
[a,b,c,d,x0,dom]=Sl(2:7)
//
if tol<>[] then
[nc,u1]=contr(a',c',tol)
else
[nc,u1]=contr(a',c')
end
u=u1(:,1:nc)
c=c*u;a=u'*a*u;b=u'*b,x0=u'*x0;
if tol<>[] then
[no,u2]=contr(a,b,tol)
else
[no,u2]=contr(a,b)
end
u=u2(:,1:no)
a=u'*a*u;b=u'*b;c=c*u
if lhs=1 then Slmin=tlist('lss',a,b,c,d,u'*x0,dom),end
//Would be nice to return U=U1*U2
|
72ca3684fc21824153687f67b5378678bf37c412 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3793/CH4/EX4.1/exp_4_1.sce | dc020b3cc103f75415eb5c5f4b9927b4162b216c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 519 | sce | exp_4_1.sce | clear;
clc;
R=.11;
L=1.5;
c=.01;
l=150;
P=50;
V=complex(72128.8,0);
z=complex(.11,.471);
Y=complex(0,(3.14*10^(-6)));
Zc=complex(389.9,-44.925)
gama=sqrt(Y*z);
Ir=complex(230.94,-173.21);
a=gama*l;
sine=complex(.0148,.179);
cosi=complex(.9838,.0027);
Vs=(V*cosi)+(Zc*sine*Ir);
mprintf("sending end voltage is = ")
disp(Vs);
Is=((V*sine)/Zc)+(cosi*Ir);
mprintf("sending end current is = ")
disp(Is);
S=Vs*conj(Is)*10^(-6);
effi=(P/(3*real(S)))*100;
mprintf("efiiciency is = %f percentage",effi)
|
684c9a2cf797ed9b2750eb2256925ba0a3d6f035 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3755/CH5/EX5.2/Ex5_2.sce | 586b8b3f188fe74469f9642dc97fa7693219d661 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 281 | sce | Ex5_2.sce | clear
//
//
//
//Variable declaration
T=1500; //temperature(K)
lamda=5500; //wavelength(m)
lamda_m=20000; //wavelength(m)
//Calculations
T_dash=lamda_m*T/lamda; //temperature of sun(K)
//Result
printf("\n temperature is %0.0f K",T_dash)
|
5a00bf9950a06160abd0bb8bed6cf4a737d0a249 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3556/CH3/EX3.9/Ex3_9.sce | 06717fe13f81d132d95c12f3628f2d729a217be9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,741 | sce | Ex3_9.sce | clc
// Fundamental of Electric Circuit
// Charles K. Alexander and Matthew N.O Sadiku
// Mc Graw Hill of New York
// 5th Edition
// Part 1 : DC Circuits
// Chapter 3: Methods of Analysis
// Example 3 - 9
clear; clc; close;
//
// Given data
// Diagonal term of R
R11 = 9.00;
R22 = 10.00;
R33 = 9.00;
R44 = 8.00;
R55 = 4.00;
// Off Diagonal term of R
R12 = -2.00; R13 = -2.00; R14 = 0.00; R15 = 0.00;
R21 = -2.00; R23 = -4.00; R24 = -1.00; R25 = -1.00;
R31 = R13; R32 = R23; R34 = 0.00; R35 = 0.00;
R41 = R14; R42 = R24; R43 = R34; R45 = -3.00;
R51 = R15; R52 = R25; R53 = R35; R54 = R45;
// Input Voltage
V1 = 4.00;
V2 = 6.00;
V3 = -6.00;
V4 = 0.00;
V5 = -6.00;
//
// Calculations
// Calculations I1, I2, I3, I4 and I5
R = [ R11 R12 R13 R14 R15;
R21 R22 R23 R24 R25;
R31 R32 R33 R34 R35;
R41 R42 R43 R44 R45;
R51 R52 R53 R54 R55];
V = [ V1; V2; V3; V4; V5];
I = inv(R)*V;
//
// Display the result
disp("Example 3-9 Solution : ");
printf(" \n I1 = Current for Mesh 1 = %.3f A",I(1))
printf(" \n I2 = Current for Mesh 2 = %.3f A",I(2))
printf(" \n I3 = Current for Mesh 3 = %.3f A",I(3))
printf(" \n I4 = Current for Mesh 4 = %.3f A",I(4))
printf(" \n I5 = Current for Mesh 5 = %.3f A",I(5))
R
|
55b56ee2ae29d506471f26ad0c24e345f0d94d9b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2870/CH4/EX4.12/Ex4_12.sce | 22dce4421227ca241187280cefe263575563c4f8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 511 | sce | Ex4_12.sce | clc;clear;
//Example 4.12
//given dara
mi=50;
T1i=80;//suffix i for iron
Vw=0.5;
T1w=25;//suffix w for water
v=0.001;//specific volume of liquid water at or about room temperature
//from Table A–3
ci=0.45;
cw=4.18;
//calculations
mw=Vw/v;
//Ein - Eout = Esystem
// du = 0 i.e (mcdT)iron + (mcdT)water = 0
// mi * ci * (T - T1i) + mw *cw * (T-T1w)
//on rearranging above equn
T= (mi*ci*T1i + mw*cw*T1w)/(mi*ci+mw*cw);
disp(T,'the temperature when thermal equilibrium is reached in C')
|
9d97eb210bb1bb3e9513ea61c8bc8269d5e7e0ec | 4038e640183a33a5edcfa99a2f4dcfe5153a500e | /interpolationLagrange.sce | bb4676f285ec0661e64c198aee68320b65fb5cd9 | [] | no_license | BrenoPeixotobr/scilabcodes | 2da4518cb6449942e39fae5b3319ed99ea226c43 | 213bdae495fc97ff24b7625a2be30449798e5e4d | refs/heads/master | 2020-07-11T12:43:20.753002 | 2019-09-17T14:58:34 | 2019-09-17T14:58:34 | 204,541,979 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 336 | sce | interpolationLagrange.sce | function y0 = lagrange_interp(x, y, x0)
/*x é a entrada obeservada.
y são os pontos medidos.
x0 ponto a ser interpolado
% y0 o valor interpolado
*/
y0 = 0;
n = length(x);
for j = 1 : n
t = 1;
for i = 1 : n
if i~=j
t = t * (x0-x(i))/(x(j)-x(i));
end
end
y0 = y0 + t*y(j);
end
endfunction
|
18e6cde2710741064165f10b62ece5af3b778935 | 57e3f1898d0364ee8f61b3eebfb77304d7b59bee | /DFP.sce | 1f40e94b225c76ba7f8c4d70aa7d9f9c8919638b | [] | no_license | Arma-X/Metodos-de-Otimizacao | 74d3cfebc74224ebda1c738273a29232c2317e74 | 599b0d1d50238bc27a612983ce63fb8d02e85219 | refs/heads/main | 2023-08-04T07:27:42.937906 | 2021-09-16T16:42:58 | 2021-09-16T16:42:58 | 407,217,368 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,729 | sce | DFP.sce | // @ metodo Davidon-Fletcher-Powell (DFP) @
global d;
global x;
x = [-5,-5];
global lamb;
lamb = 1 ;
global N ;
N = 2 ;
global p ;
global q ;
function z =f(x)
z = ((x(1)-5)^2 +(x(2)-350)^4) ;
endfunction
function dfdx = derivadaParcial_x(x)
h = 1e-6 ;
h2 = [h, 0] ;
dfdx = (f(x+h2)-f(x))/h
endfunction
function dfdy = derivadaParcial_y(x)
h = 1e-6 ;
h2 =[0, h] ;
dfdy = (f(x+h2)-f(x))/h
endfunction
function result = gradiente(x)
result = [derivadaParcial_x(x),derivadaParcial_y(x)] ;
endfunction
function y = flamb(lamb)
global d ;
global x ;
y = f(x + lamb*d);
endfunction
function y1 = primeiraDerivada()
global lamb;
h = 1e-6 ;
y1 = (flamb(lamb+h)-flamb(lamb))/h
endfunction
function y2 = segundaDerivada()
global lamb ;
h = 1e-3 ;
y2 = (flamb(lamb+h)-2*flamb(lamb)+flamb(lamb-h))/h^2 ;
endfunction
function Newton(lamb)
global lamb ;
for (i=1:100)
lamb = lamb -(primeiraDerivada()/segundaDerivada())
end
endfunction
function DFP()
global lamb ;
global p ;
global d ;
global x ;
global q ;
for(k=1:100)
q = gradiente(x)';
for(j=1:N)
D = [1,0;0,1];
if(j==2)
q = gradiente(x)' - q ;
p = (lamb*d)' ;
D = D + ((p*p')/(p'*q)) - ((D*q*q'*D)/(q'*D*q)) ;
end
d = (-D*gradiente(x)')' ;
Newton(lamb);
x = x +lamb*d
end
end
mprintf("\n O ultimo Ponto é : (%.7f,%.7f)",x(1),x(2));
mprintf("\n O valor de f no ponto é : %.7f",f(x));
endfunction
//--------------------------------main------------------------------
DFP() ;
|
0258f8664ebd676344ea003f2374104606c0f1e0 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/mtlb/mtlb_is.sci | 91d5d0130dcc04f448ec030dc2c77be1e096a01e | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 998 | sci | mtlb_is.sci | function str=mtlb_is(sto,sfrom,i,j)
//emulate the matlab syntax sto(i [,j])=sfrom for strings
[lhs,rhs]=argn()
[mto,nto]=size(sto)
// convert sto to a regular matrix
if type(sto)==10 then
if nto<>1 then error('First argument is not a Matlab vector of strings'),end
if mto==1 then
lnto=length(sto)
sto=ascii(sto)
else
lnto=max(length(sto))
sto=matrix(ascii(part(sto,1:lnto)),lnto,mto)'
end
typeout=10
else
typeout=1
end
[mfrom,nfrom]=size(sfrom)
// convert sfrom to a regular matrix
if type(sfrom)==10 then
if nfrom<>1 then error('First argument is not a Matlab vector of strings'),end
if mfrom==1 then
lnfrom=length(sfrom)
sfrom=ascii(sfrom)
else
lnfrom=max(length(sfrom))
sfrom=matrix(ascii(part(sfrom,1:lnfrom)),lnfrom,mfrom)'
end
end
//insert
if rhs==4 then
sto(i,j)=sfrom
else
sto(i)=sfrom
if sfrom==[] then sto=sto',end
end
if typeout==10 then
// convert back
str=[]
for k=1:size(sto,1)
str=[str;ascii(sto(k,:))]
end
end
|
0c6160b8c05119c9685c6e26a2828c1e59c16d65 | 8d551e72c6940ca7341e78e63c9e6288225be46e | /algorithmes/Q5_Exemple_Cholesky.sce | b863f28e7b8d9ff4cac6dd1020036fbef047b703 | [] | no_license | aurelienpepin/Ensi_MethodesNumeriques | 8c3199d810285f610d060360ccbd23edee5abfcf | c80f9ad3da32aa0e65f62d5d1a327da40f01b5e8 | refs/heads/master | 2021-03-27T09:08:50.259386 | 2017-05-20T08:23:02 | 2017-05-20T08:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,560 | sce | Q5_Exemple_Cholesky.sce | // :::::::::::::::::::::::::::::::::::::::::
// :: ::
// :: Question 5. Cholesky, exemple ::
// :: ::
// :::::::::::::::::::::::::::::::::::::::::
funcprot(0);
exec("Q3_Factorisation_Cholesky.sce");
exec("Q4_Descente_Cholesky.sce");
exec("Q5_Remontee_Cholesky.sce");
// On résout le système MX = B
// où M, X et B sont les matrices définies dans
// la réponse à la question 5 du compte-rendu.
function exemple5()
matrice_M_diag = [1, 2, 2, 2, 2];
matrice_M_inf = [-1, -1, -1, -1];
matrice_B = [10, 20, 30, 40, 50];
// On procède classiquement en trois phases :
// - Factorisation (rapide car M est tridiagonale) ;
// - Descente (idem, facilitée par la structure de la factorisation) ;
// - Remontée (idem, facilitée par la structure de la factorisation) ;
[matrice_F_diag, matrice_F_inf] = factorise(matrice_M_diag, matrice_M_inf);
m_descente = descente(matrice_F_diag, matrice_F_inf, matrice_B);
matrice_X = remonte(matrice_F_diag, matrice_F_inf, m_descente);
disp("La matrice résultat est : ");
disp(matrice_X);
disp("Le résultat attendu en comparaison est :");
disp([350; 340; 310; 250; 150]);
// Vérification sommaire sur une calculatrice externe.
// Taper la ligne ci-dessous sur WolframAlpha :
// {{1, -1, 0, 0, 0}, {-1, 2, -1, 0, 0}, {0, -1, 2, -1, 0}, {0, 0, -1, 2, -1}, {0, 0, 0, -1, 2}} . {{a}, {b}, {c}, {d}, {e}} = {{10}, {20}, {30}, {40}, {50}}
endfunction
exemple5()
|
f79f278161553d04433e0ad652dc622cbe8dc444 | 4476b6191b3546790b04ec8f975366bad6adce1d | /GRAM_SCHMIDT_ORTHOGONALIZATION.sce | c318f024e19dafcc6f90e1a7b399ad75ae10c097 | [] | no_license | shaazin19/linear_algebra_assignment4 | 1090bf931e0809874995b64cbb1a3c08b2717a7d | 6cb89739bf8876b988956f1801c7ef33a7da949f | refs/heads/master | 2023-07-12T20:20:40.495896 | 2021-08-21T08:22:25 | 2021-08-21T08:22:25 | 253,995,661 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 646 | sce | GRAM_SCHMIDT_ORTHOGONALIZATION.sce | clear;close;clc;
disp('Please enter the matrix A');
//Taking input of Matrix A
a11=input("Enter a11: ");
a12=input("Enter a12: ");
a13=input("Enter a13: ");
a21=input("Enter a21: ");
a22=input("Enter a22: ");
a23=input("Enter a23: ");
a31=input("Enter a31: ");
a32=input("Enter a32: ");
a33=input("Enter a33: ");
A=[a11,a12,a13;a21,a22,a23;a31,a32,a33];
//independent vectors stored in columns of A
disp(A,'A=');
[m,n]=size(A);
for k=1:n
V(:,k)=A(:,k);
for j=1:k-1
R(j,k)=V(:,j)'*A(:,k);
V(:,k)=V(:,k)-R(j,k)*V(:,j);
end
R(k,k)=norm(V(:,k));
V(:,k)=V(:,k)/R(k,k);
end
disp(V,'O=');
|
f6277e18017bb7938583d9eb8a463e4260a75c9a | 4483ff664b4d01c53114a7fc535625c197c8f989 | /green routing/reloading36.sce | 6ccbd9e6e74d5961b3b201d14374e9a584a31aba | [] | no_license | winash1618/myproject | be9b77d4a405edce7e625a999803016b50ab99d0 | 2132e76e6a996bee19f356a2b68af827fa6c621b | refs/heads/master | 2022-12-06T06:09:06.487979 | 2020-08-20T02:00:54 | 2020-08-20T02:00:54 | 288,880,158 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 15,063 | sce | reloading36.sce | clc
clear
x=8
z=25
pop=20
iter=200000
a=zeros(pop,z)
rag=zeros(iter)
rag=zeros(iter)
cap=[288 95 115 133 107 22 34 28 186 190 33 56 100 90 82 143 68 166 44 73 72 60 68 8 20
]
tim=[0 12 6.2 5.6 27 17 20 29 44 18 16 23 24 34 11 9 11 11 13 17 14 30 25 28 27;
12 0 5.2 9.9 39 29 32 40 52 29 27 34 36 46 23 20 23 15 18 24 21 37 32 36 34;
6.2 5.2 0 5.7 35 25 28 36 48 19 22 30 32 41 18 16 19 11 14 21 18 34 28 32 31;
5.6 9.9 5.7 0 29 19 22 30 42 19 17 26 26 36 13 10 13 5.5 8.8 15 12 28 23 26 25;
27 39 35 29 0 6.5 4.5 7.5 41 15 12 10 9.7 6.8 17 18 18 27 29 22 29 34 31 32 21;
17 29 25 19 6.5 0 2.9 13 35 9.6 3.7 7.6 6.9 12 7 8.3 8.5 17 79 18 19 25 21 23 14;
20 32 28 22 4.5 2.9 0 11 34 13 6.6 6.2 5.5 10 10 11 11 20 21 18 22 23 20 22 12;
29 40 36 30 7.5 13 11 0 44 23 19 16 16 10 21 22 23 31 32 28 33 38 35 36 22;
44 52 48 42 41 35 34 44 0 54 6.6 6.2 5.5 10 10 11 11 20 21 18 21 23 20 22 12;
18 29 19 19 15 9.6 13 23 54 0 5.6 17 17 22 9.6 9.5 13 22 23 22 24 40 34 38 23;
16 27 22 17 12 3.7 6.6 19 6.6 5.6 0 11 11 19 5.6 6.8 7 16 17 16 18 34 28 32 18;
23 34 30 26 10 7.6 6.2 16 6.2 17 11 0 0.7 5.8 15 16 12 23 22 12 15 18 15 16 6.8;
24 36 32 26 9.7 6.9 5.5 16 5.5 17 11 0.7 0 5.1 14 15 12 23 22 13 15 18 14 16 6.9;
34 46 41 36 6.8 12 10 10 10 22 19 5.8 5.1 0 24 25 17 28 27 18 20 23 21 21 9.8;
11 23 18 13 17 7 10 21 10 9.6 5.6 15 14 24 0 5.2 2.1 11 12 12 13 29 24 27 18;
9 20 16 10 18 8.3 11 22 11 9.5 6.8 16 15 25 5.2 0 5.7 13 14 18 15 31 25 29 21;
11 23 19 13 18 8.5 11 23 11 13 7 12 12 17 2.1 5.7 0 11 13 9.4 11 23 18 21 15;
11 15 11 5.5 27 17 20 31 20 22 16 23 23 28 11 13 11 0 7.4 11 8 24 19 22 21;
13 18 14 8.8 29 79 21 32 21 23 17 22 22 27 12 14 13 7.4 0 9.8 6.8 23 18 21 20;
17 24 21 15 22 18 18 28 18 22 16 12 13 18 12 18 9.4 11 9.8 0 3.4 15 9.7 13 11;
14 21 18 12 29 19 22 33 21 24 18 15 15 20 13 15 11 8 6.8 3.4 0 17 11 15 14;
30 37 34 28 34 25 23 38 23 40 34 18 18 23 29 31 23 24 23 15 17 0 8 2.3 14;
25 32 28 23 31 21 20 35 20 34 28 15 14 21 24 25 18 19 18 9.7 11 8 0 6.1 11;
28 36 32 26 32 23 22 36 22 38 32 16 16 21 27 29 21 22 21 13 15 2.3 6.1 0 12;
27 34 31 25 21 14 12 22 12 23 18 6.8 6.9 9.8 18 21 15 21 20 11 14 14 11 12 0;
]
dib=[5 12 6.8 7.4 23 15 18 30 48 12 14 23 22 29 15 9.3 15 13 16 22 19 35 30 33 30;
5 12 6.8 7.4 23 15 18 30 48 12 14 23 22 29 15 9.3 15 13 16 22 19 35 30 33 30;
13 20 14 16 15 8.1 11 23 50 5.1 5.5 16 15 22 5.6 5.3 11 18 19 23 20 36 31 34 22;
13 20 14 16 15 8.1 11 23 50 5.1 5.5 16 15 22 5.6 5.3 11 18 19 23 20 36 31 34 22;
23 34 29 24 8.6 4.9 4.1 15 4.1 14 8.5 3.1 2.4 7.4 12 13 13 22 23 15 18 20 17 19 9.3;
16 27 23 14 23 13 14 24 14 17 11 7.4 8.1 13 6.3 9.8 4.2 14 13 5.5 6.9 19 14 18 11;
25 33 29 23 30 20 19 31 19 35 29 13 13 18 21 26 18 19 18 10 12 4.7 3.3 2.9 9.1;
25 33 29 23 30 20 19 31 19 35 29 13 13 18 21 26 18 19 18 10 12 4.7 3.3 2.9 9.1;
]
cad=rand(pop,z)
for i=1:pop
for j=1:z
for k=1:z
if cad(i,k)==min(cad(i,:))
a(i,j)=k
cad(i,k)=10000
break
end
end
end
end
disp (a)
best=a
function [grp,sis,fis] =finddis(a,bkom)
temp=zeros(pop,x)
dis=zeros(pop,x)
fis=zeros(pop,x)
for ka=1:pop
po=zeros(x,z)
kom=bkom(ka,:)
kos=kom
i=1
for k=1:x
r=1
while i<min(kom) & i<=z
po(k,r)=a(ka,i)
r=r+1
if i<=z
i=i+1
end
end
for g=1:x-1
if kom(g)==min(kom)
kom(g)=100
break
end
end
end
kom=kos
//disp(bkom(ka,:))
//disp(po)
jio=ones(1,x)
for k=1:x
for i=1:z
if i~=25
if po(k,i+1)~=0
jio(1,k)=jio(1,k)+cap(1,po(k,i))
dis(ka,k)=dis(ka,k)+tim(po(k,i),po(k,i+1))
fis(ka,k)=fis(ka,k)+0.249*tim(po(k,i),po(k,i+1))*jio(1,k)
end
else
break
end
end
end
for k=1:x
for i=1:z
if(po(k,i)~=0)
temp(ka,k)=temp(ka,k)+1
end
end
if temp(ka,k)>0
jio(1,k)=jio(1,k)+cap(1,po(k,temp(ka,k)))
dis(ka,k)=dis(ka,k)+dib(k,po(k,1))+dib(k,po(k,temp(ka,k)))
fis(ka,k)=fis(ka,k)+0.249*dib(k,po(k,1))+0.249*dib(k,po(k,temp(ka,k)))*jio(1,k)
end
end
end
grp=temp
sis=dis
//disp(jio)
endfunction
function [n] = mutate(b,grd)
gnd=ones(pop,x)
for k=1:pop
for i=1:x
if i==1
gnd(k,i)=0
else
gnd(k,i)=gnd(k,i-1)+grd(k,i-1)
end
end
oll=rand(1,1)
if oll<(y/iter) then
r=1
for i=1:x
poll=rand(1,1)
if i==1
mut1=1+round((grd(k,i)-1)*rand(1,1))
mut2=1+round((grd(k,i)-1)*rand(1,1))
if poll<0.2 & mut1>0 & mut2>0 & mut1~=mut2
temper=b(k,mut2)
b(k,mut2)=b(k,mut1)
b(k,mut1)=temper
r=r+1
end
else
mut1=gnd(k,i)+round((grd(k,i)-1)*rand(1,1))
mut2=gnd(k,i)+round((grd(k,i)-1)*rand(1,1))
if poll<0.2 & mut1>0 & mut2>0 & mut1~=mut2
temper=b(k,mut2)
b(k,mut2)=b(k,mut1)
b(k,mut1)=temper
r=r+1
end
end
if r~=1
break;
end
end
else
mut1=1+round((z-1)*rand(1,1))
mut2=1+round((z-1)*rand(1,1))
temper=b(k,mut2)
b(k,mut2)=b(k,mut1)
b(k,mut1)=temper
end
end
n=b
endfunction
function [rkom,glg,gog] =roulewheel(dis,a,gpd,bkom)
tdis=zeros(1,pop)
pdis=zeros(1,pop)
cdis=zeros(1,pop)
calm=a
calp=gpd
gkom=bkom
for i=1:pop
tdis(i)=dis(i)
end
for i=1:pop
pdis(i)=tdis(i)/(sum(tdis))
end
for i=1:pop
if i==1
cdis(i)=cdis(i)+pdis(i)
else
cdis(i)=cdis(i-1)+pdis(i)
end
end
for i=1:pop/2
jin=rand(1,1)
for j=1:pop
if j==1
if jin<cdis(j)
calm(i,:)=a(j,:)
calp(i,:)=gpd(j,:)
gkom(i,:)=bkom(j,:)
break
end
else
if cdis(j-1)<jin & jin<=cdis(j)
calm(i,:)=a(j,:)
calp(i,:)=gpd(j,:)
gkom(i,:)=bkom(j,:)
break
end
end
end
end
rkom=gkom
gog=calm
glg=calp
endfunction
toper=1000
esup=zeros(1,z)
egd=zeros(1,x)
bkom=[5.0 23.0 16.0 21.0 22.0 13.0 10.0;
20.0 14.0 16.0 5.0 22.0 8.0 21.0;
8.0 21.0 23.0 14.0 5.0 16.0 24.0;
23.0 9.0 16.0 21.0 5.0 24.0 12.0;
14.0 5.0 21.0 10.0 11.0 22.0 18.0;
5.0 14.0 18.0 11.0 21.0 23.0 10.0;
23.0 15.0 12.0 21.0 5.0 22.0 9.0;
24.0 23.0 11.0 14.0 5.0 9.0 20.0;
5.0 21.0 16.0 12.0 10.0 23.0 22.0;
10.0 23.0 20.0 5.0 14.0 21.0 13.0;
12.0 10.0 21.0 24.0 5.0 25.0 15.0;
23.0 23.0 5.0 13.0 14.0 21.0 10.0;
21.0 5.0 23.0 17.0 9.0 14.0 12.0;
5.0 15.0 21.0 23.0 11.0 19.0 10.0;
21.0 22.0 14.0 5.0 20.0 16.0 10.0;
21.0 25.0 5.0 18.0 23.0 14.0 10.0;
19.0 16.0 5.0 14.0 24.0 10.0 21.0;
5.0 14.0 10.0 14.0 23.0 18.0 21.0;
12.0 10.0 23.0 14.0 25.0 20.0 5.0
7.0 21.0 14.0 5.0 11.0 23.0 17.0;
]
fis2=zeros(pop,x)
bbom=zeros(pop,(x-1))
gpd=zeros(pop,x)
ratio=zeros(pop,x)
for y=1:iter
//disp(bkom)
//bkom=1+round((z-1)*rand(pop,(x-1)))
[gp,dis,fis2]=finddis(a,bkom)
mog=zeros(1,pop)
mig=zeros(1,pop)
mug=ones(1,2*pop)
mug1=ones(1,pop)
for i=1:pop
mog(i)=sum(dis(i,:))
mig(i)=sum(fis2(i,:))
end
vu=zeros(2*pop,z)
vu1=zeros(2*pop)
vu2=zeros(2*pop)
vu3=zeros(2*pop,x)
vu4=zeros(2*pop,x-1)
//disp(gp,gpd)
for i=1:pop
vu(i,:)=a(i,:)
vu1(i)=mog(i)
vu2(i)=mig(i)
vu3(i,:)=gp(i,:)
vu4(i,:)=bkom(i,:)
end
if y==1
best=[24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 15.0 11.0 6.0 17.0 10.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 18.0 4.0 8.0 12.0 16.0 15.0 11.0 10.0 17.0 6.0 14.0 7.0 5.0 13.0 9.0 22.0 19.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 18.0 4.0 8.0 19.0 16.0 15.0 11.0 10.0 17.0 6.0 14.0 7.0 5.0 13.0 9.0 22.0 12.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 15.0 17.0 6.0 11.0 10.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 15.0 11.0 10.0 17.0 6.0 5.0 13.0 7.0 14.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 15.0 11.0 10.0 17.0 6.0 14.0 5.0 7.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 8.0 25.0 19.0 4.0 18.0 15.0 16.0 17.0 10.0 11.0 6.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 17.0 11.0 10.0 15.0 6.0 14.0 5.0 7.0 13.0 22.0 12.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 15.0 16.0 17.0 10.0 11.0 6.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
25.0 2.0 3.0 1.0 24.0 17.0 19.0 18.0 4.0 8.0 16.0 15.0 10.0 11.0 6.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
25.0 2.0 3.0 1.0 24.0 8.0 19.0 18.0 4.0 17.0 16.0 15.0 10.0 11.0 6.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 17.0 15.0 16.0 10.0 11.0 6.0 14.0 13.0 5.0 7.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 15.0 17.0 10.0 11.0 6.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 21.0 20.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 15.0 11.0 17.0 10.0 6.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 15.0 11.0 10.0 17.0 6.0 14.0 5.0 7.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 15.0 17.0 16.0 10.0 11.0 6.0 14.0 13.0 5.0 7.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 17.0 11.0 10.0 6.0 15.0 14.0 5.0 7.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 15.0 11.0 10.0 17.0 6.0 5.0 14.0 7.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 17.0 11.0 10.0 15.0 6.0 14.0 5.0 7.0 13.0 20.0 12.0 9.0 22.0 21.0 23.0;
24.0 2.0 3.0 1.0 25.0 8.0 19.0 18.0 4.0 16.0 11.0 15.0 10.0 17.0 6.0 14.0 7.0 5.0 13.0 12.0 22.0 9.0 20.0 21.0 23.0;
]
mog1=[385.09999999999997 370.29999999999995 399.3 398.2 363.59999999999997 373.1 396.8 403.5 386.3 373.7 391.0 360.0 398.7 367.2 349.59999999999997 369.4 360.09999999999997 360.7 356.1 391.99999999999994
]
mig1=[7623.7077 7632.472500000001 7709.4384 7723.5816 7744.0992 7744.198799999999 7843.499999999999 7926.018600000001 7960.679399999999 7975.221 7975.3206 7991.5803 8026.515 8064.1887 8095.0647 8096.8326 8108.635200000001 8137.718399999999 8163.4899000000005 8163.5148
]
gpd=[4.0 5.0 3.0 3.0 5.0 1.0 1.0 3.0;
4.0 3.0 6.0 2.0 4.0 1.0 1.0 4.0;
4.0 3.0 6.0 2.0 5.0 2.0 1.0 2.0;
4.0 4.0 3.0 4.0 5.0 2.0 1.0 2.0;
4.0 5.0 1.0 3.0 4.0 3.0 1.0 4.0;
4.0 5.0 1.0 3.0 4.0 3.0 2.0 3.0;
4.0 4.0 3.0 3.0 6.0 1.0 1.0 3.0;
4.0 4.0 2.0 3.0 6.0 3.0 1.0 2.0;
4.0 5.0 2.0 4.0 5.0 1.0 1.0 3.0;
4.0 5.0 3.0 1.0 6.0 1.0 2.0 3.0;
4.0 5.0 2.0 3.0 6.0 3.0 1.0 1.0;
4.0 5.0 3.0 1.0 7.0 2.0 0.0 3.0;
4.0 4.0 3.0 2.0 3.0 4.0 2.0 3.0;
4.0 5.0 1.0 4.0 4.0 2.0 2.0 3.0;
4.0 5.0 4.0 2.0 4.0 1.0 1.0 4.0;
4.0 5.0 4.0 4.0 3.0 2.0 2.0 1.0;
4.0 5.0 4.0 2.0 3.0 2.0 3.0 2.0;
4.0 5.0 4.0 0.0 4.0 3.0 2.0 3.0;
4.0 5.0 2.0 2.0 6.0 3.0 2.0 1.0;
4.0 2.0 4.0 3.0 3.0 4.0 2.0 3.0;
]
bbom=[5.0 23.0 16.0 21.0 22.0 13.0 10.0;
20.0 14.0 16.0 5.0 22.0 8.0 21.0;
8.0 21.0 23.0 14.0 5.0 16.0 24.0;
23.0 9.0 16.0 21.0 5.0 24.0 12.0;
14.0 5.0 21.0 10.0 11.0 22.0 18.0;
5.0 14.0 18.0 11.0 21.0 23.0 10.0;
23.0 15.0 12.0 21.0 5.0 22.0 9.0;
24.0 23.0 11.0 14.0 5.0 9.0 20.0;
5.0 21.0 16.0 12.0 10.0 23.0 22.0;
10.0 23.0 20.0 5.0 14.0 21.0 13.0;
12.0 10.0 21.0 24.0 5.0 25.0 15.0;
23.0 23.0 5.0 13.0 14.0 21.0 10.0;
21.0 5.0 23.0 17.0 9.0 14.0 12.0;
5.0 15.0 21.0 23.0 11.0 19.0 10.0;
21.0 22.0 14.0 5.0 20.0 16.0 10.0;
21.0 25.0 5.0 18.0 23.0 14.0 10.0;
19.0 16.0 5.0 14.0 24.0 10.0 21.0;
5.0 14.0 10.0 14.0 23.0 18.0 21.0;
12.0 10.0 23.0 14.0 25.0 20.0 5.0
7.0 21.0 14.0 5.0 11.0 23.0 17.0;
]
end
for i=pop+1:2*pop
vu(i,:)=best(i-pop,:)
vu1(i)=mog1(i-pop)
vu2(i)=mig1(i-pop)
vu3(i,:)=gpd(i-pop,:)
vu4(i,:)=bbom(i-pop,:)
end
for i=1:2*pop
for j=1:2*pop
if vu1(i)<vu1(j)
if vu2(i)<vu2(j)
mug(i)=mug(i)+3
end
end
end
end
//disp(mug,vu1,vu2)
for i=1:pop
for j=1:2*pop
if mug(j)==max(mug)
best(i,:)=vu(j,:)
mog1(i)=vu1(j)
mig1(i)=vu2(j)
gpd(i,:)=vu3(j,:)
bbom(i,:)=vu4(j,:)
mug1(i)=mug(j)
mug(j)=0
break
end
end
if mig1(i)<5000
esup=best(i,:)
egd=gpd(i,:)
total=mig1(i)
end
end
//disp(mug,mug1,mog1,mig1)
a=best
gp=gpd
rag(y)=min(mog1)
ryg(y)=min(mig1)
//[bkom,gp,a]=roulewheel(mug1,a,gp,bkom)
[a]=mutate(a,gp)
end
plot(ryg,rag)
for ii=1:pop
sup=best(ii,:)
gd=gpd(ii,:)
tomp=zeros(x)
for j=1:x
if(j==1)
tomp(j)=gd(j)
else
tomp(j)=tomp(j-1)+gd(j)
end
end
fine=zeros(x,z)
for j=1:x
if j==1 then
for k=1:tomp(j)
fine(j,k)=sup(k)
end
else
i=1
for k=tomp(j-1)+1:tomp(j)
fine(j,i)=sup(k)
i=i+1
end
end
end
namer=['CHEDIKULAM' 'URUPUMKUTTY' 'EDAPUZHA' 'EDOOR' 'KOLAYAD' 'VELLARVALLY' 'ARYAPARAMBA' 'PERUVA' 'KAPPAD' 'ATTENCHERY' 'PERAVOOR' 'MALOOR' 'THRIKADARIPOIL' 'THODEEKKALAM' 'EDATHOTTY' 'PALAPPUZHA' 'THALIPPOYIL' 'VATTIARA' 'PERUMPARAMBU' 'PADIKACHAL' 'PUNNAD' 'KODOLIPRAM' 'MARUTHAYI' 'VELLIYAMPARAMBA KSS LTD' 'KANHILERI'
]
bmc=["KEEZHPALLY" "KEEZHPALLY" "ODEMTHODE" "ODEMTHODE" "THOLUMBRA" "THILLANKERI" "PAZHASSI RAJA NAGAR" "PAZHASSI RAJA NAGAR"
]
yum=0
for i=1:1:x
for j=1:z
if fine(i,j)>0
if j==1
disp(bmc(i))
disp(dib(i,fine(i,j)))
yum=yum+dib(i,fine(i,j))
end
disp(namer(fine(i,j)))
if j~=gd(i) then
disp(tim(fine(i,j),fine(i,j+1)))
yum=yum+tim(fine(i,j),fine(i,j+1))
end
if j==gd(i)
disp(dib(i,fine(i,j)))
yum=yum+dib(i,fine(i,j))
disp(bmc(i))
end
end
end
end
disp(yum)
end
|
fcc9de5394c1b2bb2e36f96f106e05b29c32c359 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3651/CH3/EX3.2/2.sce | 80b44eaf38a7dc502bbad1b235d573d9f64a9b0d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 205 | sce | 2.sce |
//Variable declaration
F_500=1*10**-10
T1=500+273
T2=1000+273
//Calculations
lnx=log(F_500)*T1/T2;
x=exp(lnx)
printf('Fraction of vacancies at 1000 degrees C =%0.3f *10**-7\n',(x*10**7))
|
60ee06d35a003b05d75f5d6f893f3f99087db2b1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /43/CH2/EX2.26.b/ex2_26b.sce | 6776548002bd02cc698e269958420ef6fa861be6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 60 | sce | ex2_26b.sce | syms s;
x=ilaplace((2*s+3)/((s^2+4*s+5)*(s+1)));
disp (x); |
3ee6b50f3eb6fdc4ac06ca07c86e9acc2083b93c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3772/CH6/EX6.8/Ex6_8.sce | 337ee732e73d7ddf5f0aa8d63850f4323f597c88 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 472 | sce | Ex6_8.sce | // Problem no 6.8,Page No.159
clc;clear;
close;
L=6 //m //Length of beam
d=0.15 //m //diameter
y_max=1.035*10**-2 //m //Deflection
E=210*10**9
//Calculations
I=%pi*64**-1*d**4 //M.I of Beam
W=y_max*48*E*(L**3)**-1 //Point Load
theta_A=3*y_max*L**-1
theta_B=-theta_A
//Result
printf("The Heaviest central Point Load placed is %.2f N",W)
printf("\n Slope at supports are:theta_A = %.5f radian",theta_A)
printf("\n :theta_B = %.5f radian",theta_B)
|
df0d787aeca586532d4155517875d728e95156a8 | 57c454f881e3b3a28a3583edfb2fdc31f6ac4fa3 | /projects/06/add/Add.tst | b6487916f47f7ad92f87bd25f485de088a0010ec | [] | no_license | simmonmt/nand2tetris | 4d982f791ea90e1b53287790d209de1b3ddc3424 | b469c4a90cbadbdae9e4c066effdb68a530e3b91 | refs/heads/master | 2020-12-25T15:08:50.146240 | 2016-06-12T18:32:39 | 2016-06-12T18:32:39 | 60,982,292 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 118 | tst | Add.tst | load Add.hack,
output-file Add.out,
compare-to Add.cmp,
output-list RAM[0]%D2.6.2;
repeat 50 {
ticktock;
}
output;
|
3e44dc0e5c3262997c7a9647ae849d72470f4b13 | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH24/EX24.4/RD_4.sce | 4abf5219f1c5ca0804a1c2b4d44c6ade602bb7cb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 228 | sce | RD_4.sce | // sum 24-4
clc;
clear;
sigut=1770;
Pb=0.0018*sigut;
W=4000;
a=2.5/2;
Ws=90*0.5;
Wa=(W+Ws)*a/9.81;
Weff=W+Wa;
d=sqrt(Weff*2/(23*Pb));
d=12;
// printing data in scilab o/p window
printf("d is %0.0f mm ",d);
|
4fae86afdfa935656539d855c9d55362fd247888 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2522/CH7/EX7.5/exm7_5.sce | d5b8b41b36463d521a2ce13060e47b6be10ce465 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 437 | sce | exm7_5.sce | //page no 224
//example no 7.5
// INCREMENT A NUMBER.
clc;
disp('LXI B,2050H'); //loads the data 2050H in BC register pair.
disp('B=20H C=50H');
B=20;
C=50;
disp('INX B');
C=C+1;
printf('B= %d C= %d \n',B,C);
disp('The contents of BC register pair will be 2051H');
disp('INR B');
B=B+1;
printf('B= %d \n',B);
disp('INR C');
C=50;
C=C+1;
printf('C= %d \n',C);
disp('The contents of BC register pair will be 2151H');
|
50a7b1e020559df864486371a0bff2100b315a75 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2507/CH10/EX10.12/Ex10_12.sce | cbe7ab638d885ce8e43ae3727b6c4f06bbbc5ae3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 678 | sce | Ex10_12.sce | clc
clear
printf("Example 10.12 | Page number 361 \n\n");
//Find the work and heat interactions during the expansion process
//Given data
m =0.1 //kg
p1 = 10 //bar
p2 = 1 //bar
//Solution
//From saturated steam table
v1 = 0.1944 //m^3/kg
v2 = (p1/p2)^(1/1.3)*v1 //m^3/kg
W = m*(p1*v1-p2*v2)*100/(1.3-1) //kJ
printf("Work during expansion process = %.2f kJ\n",W)
h1 = 2778.1 //kJ/kg
u1 = (h1 - p1*v1*100) //kJ/kg
vf = 0.001043 //m^3/kg
vg = 1.694 //m^3/kg
x2 = (v2-vf)/(vg-vf) //Dryness fraction
hf = 417.33 //kJ/kg
hg = 2675.5 //kJ/kg
h2 = (1-x2)*hf + x2*hg //kJ/kg
u2 = h2 - p2*v2*100 //kJ/kg
printf("Heat rejected from steam = %.2f kJ",W+m*(u2-u1))
|
3e6ad1052f24c7ddc5d0398d6769138e83a5b832 | 127061b879bebda7ce03f6910c80d0702ad1a713 | /bin/PIL_r_nb.sci | a166867f70e50713d55883dd2677bed88974db82 | [] | no_license | pipidog/PiLib-Scilab | 961df791bb59b9a16b3a32288f54316c6954f128 | 125ffa71b0752bfdcef922a0b898263e726db533 | refs/heads/master | 2021-01-18T20:30:43.364412 | 2017-08-17T00:58:50 | 2017-08-17T00:58:50 | 100,546,695 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,116 | sci | PIL_r_nb.sci | // **** Purpose ****
// It generates the full space sites and their surrounding sites which
// helps you generate a Hamiltoian in real space
// **** Variables ****
// [surr_site]: total_nb x 9 x total_sublatt , real
// <= variable generated by PIL_uc_nb
// [r_mesh]: 1x3, integer
// <= how many unntcell along each primitive vector, each direction
// must larger than nn_order+1. ex:nn_order=2, [r_mesh]>=[3,3,3]
// [site_list]: total_site x 4, integer
// => each unitcell is specified by r=n1*a1+n2*a2+n3*a3
// it tells how we label each site by [sublatt_label,n1,n2,n3]
// [r_nb_list]: total_nb x 7 x total_sublatt x total_uc, real
// => the surrounding sites of that (unitcell,sublatt) up to N-th order
// [distant, unitcell label, sublattice label, n1, n2, n3, cell_label, site_label]
// **** Version ****
// 05/01/2014 first built
// 05/24/2014 full rewrite the code
// **** Comment ****
// 1. this function includes periodic bounary condition
// 2. Since the xyz coordinates are not important in real-space Hamailtonian,
// it won't tell you their coordinate. Instead, it tells you their label.
function [site_list,r_nb_list]=PIL_r_nb(surr_site,r_mesh)
select length(r_mesh)
case 1
r_mesh=[r_mesh,1,1];
case 2
r_mesh=[r_mesh,1];
end
// construct unitcell label
tot_uc=prod(r_mesh);
tot_sublatt=size(surr_site);
select length(tot_sublatt);
case 2
tot_sublatt=1;
case 3
tot_sublatt=tot_sublatt(3);
end
uc_label=zeros(tot_uc,3);
uc_count=0;
uc_label=PIL_nest_loop(cat(2,ones(r_mesh)',r_mesh'))-1;
site_list=zeros(tot_uc*tot_sublatt,4);
// calculate list for all sublattice in all unitcell
// r_nb_list=[nn_order,dist,sublatt,n1,n2,n3,unit_cell_label,site_label]
surr_site_len=length(surr_site(:,1));
r_nb_list=zeros(surr_site_len,8,tot_sublatt,tot_uc);
for n=1:length(uc_label(:,1))
for m=1:tot_sublatt
r_nb_list(:,1:6,m,n)=surr_site(:,1:6,m);
r_nb_list(:,4:6,m,n)=r_nb_list(:,4:6,m,n)+repmat(uc_label(n,:),surr_site_len,1);
// if [n1,n2,n3] overlarge or oversmall, apply PBC
for p=1:3
oversmall_uc=find(r_nb_list(:,p+3,m,n)<0);
r_nb_list(oversmall_uc,p+3,m,n)=r_nb_list(oversmall_uc,p+3,m,n)+r_mesh(p);
overlarge_uc=find(r_nb_list(:,p+3,m,n)>r_mesh(p)-1);
r_nb_list(overlarge_uc,p+3,m,n)=r_nb_list(overlarge_uc,p+3,m,n)-r_mesh(p);
end
site_list(2*(n-1)+m,:)=[r_nb_list(1,3:6,m,n)];
end
end
// generate site_label
for n=1:length(uc_label(:,1))
for m=1:tot_sublatt
for p=1:surr_site_len
// site_label
r_nb_list(p,8,m,n)=find((site_list(:,1)==r_nb_list(p,3,m,n)) & (site_list(:,2)==r_nb_list(p,4,m,n))...
& (site_list(:,3)==r_nb_list(p,5,m,n)) & (site_list(:,4)==r_nb_list(p,6,m,n)));
// unitell_label
r_nb_list(p,7,m,n)=ceil(r_nb_list(p,8,m,n)/tot_sublatt);
end
end
end
endfunction
|
f46159a5c372b0b868f90d1b575b6e2342d6c330 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH1/EX1.11/Chapter1_Example11.sce | 329cb1ff6d480433f6595a4400fdcaa13ac04609 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,133 | sce | Chapter1_Example11.sce | //Chapter-1, Illustration 11, Page 24
//Title: Fuels and Combustion
//=============================================================================
clc
clear
//INPUT DATA
H2=0.5;//Percentage composition of H2 by volume
CO2=0.1;//Percentage composition of CO2 by volume
CO=0.05;//Percentage composition of CO by volume
CH4=0.25;//Percentage composition of CH4 by volume
N2=0.1;//Percentage composition of N2 by volume
pCO2=8;//Percentage volumetric analysis of CO2
pO2=6;//Percentage volumetric analysis of O2
pN2=86;//Percentage volumetric analysis of N2
//CALCULATIONS
v=(2.38*(H2+CO))+(9.52*CH4);//Volume of air required for complete combustion in (m^3)
vN2=v*0.79;//Volume of nitrogen in the air in m^3
a=CO+CH4+CO2;//CO2 formed per m^3 of fuel gas burnt
b=vN2+N2;//N2 formed per m^3 of fuel gas burnt
vt=a+b;//Total volume of dry flue gas formed in m^3
ve=(pO2*vt)/(21-pO2);//Excess air supplied in m^3
V=v+ve;//Total quantity of air supplied in m^3
//OUTPUT
mprintf('Air-fuel ratio by volume is %3.3f:1',V)
//==============================END OF PROGRAM=================================
|
e8edb80ef3dec426caf1c3d22591efcf4cf8780f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH15/EX15.13/Ex15_13.sce | 10bd065d4cdf0f8d57f1d9cfbedefafb94a08830 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 238 | sce | Ex15_13.sce | // Initilization of variables
W=10 // N // Weight of the ball
// Calculations
// consider the eq'n derived to find the reaction, given as
R=W*(1+((2*%pi^2)/9)) // N
// Results
clc
printf('The value of the reaction is %f N \n',R)
|
176e6c281be9d36318be76e3c9231d40417a3608 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH3/EX3.1/3_1.sce | ec62bb9f4c000e82606cdacc17eea8470b72cbfa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 771 | sce | 3_1.sce | //chapter 3
//example 3.1
//page 70
clear;
clc ;
//given
alphadc=0.98; //common base current gain factor
Icbo=5 ; //collector to base leakage current
Ib=100; //base current
//calculating collector current
Ic=((alphadc * Ib)+ Icbo)/(1-alphadc);
Ic=Ic/1000;
printf('\ncollector current is %.2f mA',Ic);
//relation between Ie and Ic
Ib=Ib/1000;
Ie=Ic+Ib;
printf('\nemitter current is %.2f mA',Ie);
//taking ratio of Ic and Ie which is alphadc
a =Ic/Ie
printf('\nIc/Ie=%.2f',a)
printf('\nthus Ic/Ie is approximately equal to alphadc') ;
|
2f2704cbe9e8a68b222d5c2523522bc779d4753b | 449d555969bfd7befe906877abab098c6e63a0e8 | /281/CH6/EX6.7/example6_7.sce | 0b1ab2fc8b2508d3211dd37aec014690227a3cdc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,074 | sce | example6_7.sce | disp('chapter 6 ex6.7')
disp('given')
disp("design a instrument amplifier circuit ")
disp("overall gain=900")
Av=900
disp("i/p signal amplitude=15mV")
Vi=0.015
disp("Supply voltage=15")
Vcc=15
disp("For stage 1")
disp("Äv1=Av2")
Av1=sqrt(Av)
Av2=Av1
disp(Av1,"Av1=Av2=")
disp("I2>>Ibmax")
disp("Ibmax=500nA")
Ibmax=500*10^(-9)
disp("I2=100*Ibmax")
I2=100*Ibmax
disp('amperes',I2)
disp("R2=Vi/I2")
R2=Vi/I2
disp('ohms',R2)
disp("use R2=270ohms std value")
disp("Avdif=(2R1+R2)/R2")
R2=270
disp("R1=R2(Av1-1)/2")
R1=R2*(Av1-1)/2
disp('ohms',R1)
disp("Use R1=3.9Kohm std value")
R1=3900
disp("R3=R1")
R3=R1
disp("For stage 2")
disp("Vo=Av*Vi")
Vo=Av*Vi
disp('volts',Vo)
disp("I5>>Ibmax")
disp("Ibmax=500nA")
disp("I2=100*Ibmax")
I5=100*Ibmax
disp('amperes',I5)
disp("R5=Vo/I5")
R5=Vo/I5
disp('ohms',R5)
disp("R4=R5/Av2")
R4=R5/Av2
disp('ohms',R4)
disp("R6=R4")
R6=R4
disp("R7=R5+-20%")
R7=R5+0.2*R5
disp('ohms',R7)
R7=R5-0.2*R5
disp('ohms',R7)
disp("use 220kohm fixed resistor and 100kohm resistor variable")
|
6ef993efda27089df02166ae9730833d6c8407fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1523/CH4/EX4.2/ex4_2.sce | c7b748db1b671a99de6762602f82d90d5f7360b3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 304 | sce | ex4_2.sce | //AC Circuits:example 4.2:(pg4.4)
f=50;
Im=100;
i1=86.6;
t=(1/600);
pi=3.14;
disp("f=50 c/s");
disp("Im=100 A");
// part(a)
disp("i=Im*sin(2*pi*f*t)");
i=Im*sin(2*pi*f*t);
printf("i=%.f A",i);
// part (b)
disp("i=Im*sin(2*pi*f*t1)");
t1=(asind(i1/Im)/(2*pi*f));
printf("t1=%.e second",t1); |
6d45c75e80107cdd7dcf13ac79bf1b3366860d96 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH9/EX9.19/19.sci | 4ac2a64b2be041c63565759ae4ae8020f6a1b50e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 486 | sci | 19.sci | clc;
clear all;
disp("heat transfer coefficient")
m=1800/3600;// kg/s
d=8/1000;//m
ts=24;// degree C
tsat=45.8;// degree C
rhov=0.0676;// kg/m^3
hf=2393*10^(3);// J/kg
rhol=993.95;// kg/m^3
k=62.53*10^(-2);// W/m.C
mu=728.15*10^(-6);// kg/m.s
n=400;
N=n^0.5;
h=0.725*(rhol*(rhol-rhov)*k^3*g*hfg/(N*mul*(tsat-ts)*d));
disp("W/m^2.C",h,"Average heat transfer coefficient =")
Q=m*hfg;
L=Q/(%pi*d*h*(tsat-ts));
disp("m",L,"Length of each tube, assuming single pass =")
|
5da5b37bd747537816c14f8cc0796ae6dd83325c | 449d555969bfd7befe906877abab098c6e63a0e8 | /182/CH5/EX5.5/example5_5.sce | f5403b3ff9db6daefa9c4f25b5eb50b22efe7ba7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 626 | sce | example5_5.sce | //To find the number of pulses counted
//example5-5 in page 131
clc;
//data given
Vr=1.25;//peak voltage of ramp in volts
tr=125e-3;//time period of the ramp=1.25 ms
T=1/(1e+6);// frequency =1 Mhz and time period of the clock pulses is 1/f
for Vi=0.75:(0.9-0.75):0.9,// analog input voltages for which clock pulses has to b found
t1=(tr/Vr)*Vi;//time period of the comparator high out put
N=t1/T;// pulses counted
printf("number of pulses counted for Vi=%.2f V are %d\n",Vi,N/100);
end
//result
//number of pulses counted for Vi=0.750000 V are 750
//number of pulses counted for Vi=0.900000 V are 900 |
104aafa1b8354fd5516d3d7a227b53f2f1e9334f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2969/CH5/EX5.9/Ex5_9.sce | 1465579c055ff98d24cc67d310e413b522a13244 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 706 | sce | Ex5_9.sce | clc
clear
//DATA GIVEN
T1=400+273; //temp. in K
T2=T1;
T3=40+273; //temp. in K
T4=T3;
W=130; //work produced in kJ
ETAth=(T1-T3)/T1; //Engine thermal efficiency
//ETAth=Work done/Heat added
Ha=W/ETAth; //Heat added in kJ
Hr=Ha-W; //Heat rejected in kJ
//Heat rejected=T3(S3-S4)
S34=Hr/T3; //Entropy change during the heat rejection process
printf(' (i) The Engine thermal efficiency is: %1.3f or %2.1f percent. \n',ETAth,(ETAth*100));
printf(' (ii) The Heat added is: %3.0f kJ. \n',Ha);
printf('(iii) The Entropy change during the heat rejection process is: %1.3f kJ/K. \n',S34);
|
d846b8fe349a79183314831f1d838f1fbe0be229 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2273/CH5/EX5.1/ex5_1.sce | d2a6891af81bf3a5b116c100f7d5c5195d561a14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 538 | sce | ex5_1.sce | //Find voltage at sending end, percentage regulation and transmission efficiency
clear;
clc;
//soltion
//given
P=3300;//kW//power
Vr=33000;//kV//recieving voltage
pf=0.8;//peak factor
R=2;//ohm//resistance
X=3;//ohm//loop reactance
I=P*1000/(Vr*pf);
Vs=sqrt((Vr*pf+I*R)^2+((Vr*sind(acosd(pf)))+I*X)^2);
printf("Voltage at sending end(Vs)= %.3fV\n",Vs);
Pr=((Vs-Vr)*100)/Vr;
printf("Percentage regulation= %f percent\n",Pr);
Ll=I*I*R/1000;//line losses
nt=P*100/(P+Ll);
printf("Transmission efficiency= %.2f percent",nt)
|
7b06283a4d4ea4bc93a1f2efb854617d0efe8570 | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH9/EX9.12/example9_12.sce | 0535f7aa5cf541c797fb777a2f39b54a1a7b499d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 163 | sce | example9_12.sce | //Chapter 9
//Example 9_12
//Page 225
clear;clc;
r=1.25/2;
d=200;
e0=8.854*1e-12;
c=2*%pi*e0/log(d/r);
printf("Capacitance of the line = %.4f uF/km \n", c*1e9);
|
1770f814a2baa269048b460e423ae05b89b54ae7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH9/EX9.5a/eg9_5a.sce | e5d3e2ffbe38a763bbd23dad90d07461b5592867 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 487 | sce | eg9_5a.sce | x= [60 62 64 65 66 67 68 70 72 74];
y= [63.6 65.2 66 65.5 66.9 67.1 67.4 68.3 70.1 70];
xbar = mean(x);
ybar= mean(y);
n= 10;
SxY = 0;
for i= 1:n
SxY = SxY + (x(i)*y(i)) - (xbar*ybar);
end
Sxx = 0;
for i=1:n
Sxx= Sxx + (x(i)*x(i)) - (xbar*xbar);
end
SYY = 0;
for i=1:n
SYY = SYY + (y(i)*y(i)) - (ybar*ybar);
end
B = SxY/Sxx;
A = ybar - (B*xbar);
SSR = ((Sxx*SYY)- (SxY*SxY))/Sxx ;
R2 = 1 - (SSR/SYY);
disp(R2, "The coefficient of determination is") |
83d3b7d3b1feeaabbfcbff7d72a4790eee11f9c4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1379/CH8/EX8.1.5/example8_5.sce | 1ea6d5392343dc528607e947049371367def4cb2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 832 | sce | example8_5.sce |
//exapple 8.4
clc; funcprot(0);
// Initialization of Variable
t=60*0.3/0.5;//time of 1 revollution
d=34/1000000;
S=6/d;
e=0.415;
J=0.154;
P=34.8*1000;
mu=1.17/1000;
L=2.35/1000;
rho=999;//density of water
rhos=4430;//density of barium carbonate
//calculation
//part1
nu=J*rho/((1-J)*(1-e)*rhos-J*e*rho);
r=5*S^2*(1-e)^2/e^3;
//quadratic in l
//in the form of ax^2+bx+c=0
c=-t;
b=r*mu*L/nu/P;
a=r*mu/2/nu/P;
y=poly([c b a],'l','coeff');
l=roots(y);
disp(l(2),"thickness of filter cake in (m):");
//part2
d=1.2;
l1=2.6;
pi=3.1428;
u=pi*d*0.5/60;
Q=u*l1*l(2);
mnet=Q*(1-e)*rhos+Q*e*rho;
disp(mnet,"rate at which wet cake will be scrapped in (kg/s):");
//part3
md=Q*(1-e)*rhos;//rate at which solid scrapped from the drum
r=md/0.154;
disp(r*3600,"rate of which slurry is treated is (kg/h):")
|
18a152e5c4b2a09905e408191d232faaefca9a7c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3504/CH2/EX2.2/Ex2_2.sce | c40ec64031bc1fdbe9e03a8406144a9e905eade1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,388 | sce | Ex2_2.sce | //To calculate the current through each resistor,the voltage across each resistor and the voltage at each node of the circuit.
clc;
R_1=25
R_2=10
R_3=15
R_4=50
R_5=25
R_6=100
R_7=500
R_8=125
//Given resistances in kilo-ohm.
Req_123=R_1+R_2+R_3 //Equivalent of(R_1,R_2,R_3)
Req_1234=(Req_123*R_4)/(Req_123+R_4) //Equivalent of(R_1,R_2,R_3,R_4)
Req_678=(R_6*R_7*R_8)/((R_7*R_8)+(R_6*R_8)+(R_6*R_7)) //Equivalent of(R_6,R_7,R_8)
Req=Req_1234+R_5+Req_678
disp(Req,'Equivalent resistance in kilo-ohm')
V=100 //Volts
i=V/Req //mA
i_1=i/2 //Current through R_1,R_2 andR_3(mA)
i_2=i_1 //Current through R_4(mA)
V_R1=R_1*i_1 //Volts
V_R2=R_2*i_1 //Volts
V_R3=R_3*i_1 //Volts
V_R4=R_4*i_2 //Volts
V_R5=R_5*i //Volts
V_R6=Req_678*i //Volts
V_R7=V_R6 //Volts
V_R8=V_R6 //Volts
i_3=V_R6/(100) //Current through R_6(mA)
i_4=V_R7/(500) //Current through R_7(mA)
i_5=V_R8/(125) //Current through R_8(mA)
V_a=V
V_b=V_a-V_R1
V_c=V_b-V_R2
V_d=V_c-V_R3
V_e=V_d-V_R5
|
ca9dbad2b5384c777b8038b38f9c911bdfbcaec0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2708/CH16/EX16.6/ex_16_6.sce | 200b88673f9dbace6b018086bdd1f2421758a19f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 334 | sce | ex_16_6.sce | //Example 16.6 //energy of photoelectrons emitted
clc;
clear;
//given data :
h=6.62D-34;// plank's constant in joules-sec
c=3D8;//speed of ight
lamda=6D-7;// Threshlod wavelength in m
v=6D14;// frequency in Hz
E=h*(v-c/lamda);// energy in joules
E=E/1.6D-19;// to convert in eV
disp(E,"energy of electrons emitted in eV")
|
62849fa3deb6bb663c096c2fb667646c225b6673 | f73ec22855f1c67e0dd31fff77c4f02c78300cad | /home/pi/Desktop/Test Progs/PACMAN_BOOT.TST | f2d4e32b704ab831049cd23d01698f4d1f8c4984 | [] | no_license | silverfox0786/Arcade-Tester-AR81 | 61c442b29c26e98be345ff3e8bbd74b7a878c741 | ad11a45f4f1071bc03ac60cdd60dfa206412e77b | refs/heads/master | 2020-02-26T15:39:45.970905 | 2019-01-06T13:56:26 | 2019-01-06T13:56:26 | 69,001,576 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 504 | tst | PACMAN_BOOT.TST | !SADDR 5555 15 10000.000.00 52
!SDATA 2F 15 10000.000.00 52
!M2716 6E 1 7 Address line fault 0.00 10000.0011
!M2716 6E 2 15Address line fault 10000.000.00 52
!M2716 6E 3 15 0.00 10000.0051
!M2716 6E 4 15Address line fault 10000.000.00 52
!M74LS08 5D 4 15Check A6 4678.33 1592.67 63
|
4434e0bb6a70acebf0abc32c6b8d12cf1433d503 | 1168058644cd46df6b33f34aefae3d0c3218206c | /examples/ediorder.tst | 598be06cd84fd276ecbf4fa1352b93f4b9ae6d17 | [] | no_license | gitpan/Edi2SGML | 25e70092b6457025e9d17103d07e5f47efd5709a | 84e482f7a2510358e26d234279432af213d4934c | refs/heads/master | 2016-08-07T11:08:39.693024 | 1998-12-11T00:15:10 | 2014-10-21T00:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,033 | tst | ediorder.tst | UNA:+.? 'UNB+UNOC:2+STUB+BLA+960209:0843+72'UNH+0000090001+ORDERS:D:93A:UN:EAN00
7'BGM+220+B00404'DTM+137:19960209:102'NAD+BY+++STADT- UND UNIVERSITAETSBIBLIOTHE
K:FRANKFURT+BOCKENHEIMER LANDSTR. 134-138+FRANKFURT+++DE'RFF+API:DE114110388'RFF
+IT:STUB'NAD+SU+++B.H.BLACKWELL'CUX+2:GBP:9'LIN+1'PIA+5+0471949086:IB'QTY+21:1'F
TX+ACB+3++TEST EDILIBE'PRQ+YYY:37.5:CA:SRP'RFF+QNB:00023302:10'DTM+171:19960208:
102'RFF+LI:8216'RFF+BFN:S.KON.41'LIN+2'PIA+5+0471949000:IB'IMD+F+010+:::Cherry'I
MD+F+011+:::Gordon E'IMD+F+050+:::Birmingham'IMD+F+060+:::a study in geography,
hislanning'IMD+F+110+:::Chichester'IMD+F+120+:::Wiley(John)(W Sussex)'IMD+F+170+
:::1994'IMD+F+180+:::254p'IMD+F+181+:::?: ill ; 24cm. - Bibl.?: P.237-244.'IMD+F
+270+:::39100200?:Urban studies'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:37.5:CA
:SRP'RFF+QNB:00023302:9'DTM+171:19960208:102'RFF+LI:8217'RFF+BFN:S.KON.39'LIN+3'
PIA+5+0471957542:IB'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:45:CA:SRP'RFF+QNB:0
0023302:11'DTM+171:19960208:102'RFF+LI:8218'RFF+BFN:S.KON.41'LIN+4'PIA+5+0521435
145:IB'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:65:CA:SRP'RFF+QNB:00023302:13'DT
M+171:19960208:102'RFF+LI:8220'RFF+BFN:S.KON.07'LIN+5'PIA+5+0077090632:IB'IMD+F+
010+:::Wenlock'IMD+F+011+:::Alison'IMD+F+050+:::The AS/400'IMD+F+060+:::built fo
r business'IMD+F+110+:::London'IMD+F+120+:::McGraw-Hill Book Co in Europe'IMD+F+
170+:::1995'IMD+F+180+:::134p'IMD+F+181+:::; 25cm. - Index'IMD+F+190+:::The IBM
McGraw-Hill series'IMD+F+270+:::61100200?:Computers'IMD+F+300+:::1st Series Id?:
E1678043'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:24.95:CA:SRP'RFF+QNB:00023302:
1'DTM+171:19960208:102'RFF+LI:8221'RFF+BFN:S.KON.41'LIN+6'PIA+5+0521474620:IB'QT
Y+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:65:CA:SRP'RFF+QNB:00023302:14'DTM+171:199
60208:102'RFF+LI:8222'RFF+BFN:S.KON.41'LIN+7'PIA+5+0133361993:IB'IMD+F+010+:::Sh
epperd'IMD+F+011+:::Martin'IMD+F+050+:::Foundations of software measurement'IMD+
F+110+:::Hemel Hempstead'IMD+F+120+:::Prentice-Hall Interl Inc'IMD+F+170+:::1995
'IMD+F+180+:::234p'IMD+F+181+:::; 24cm. - Bibls. - Index'IMD+F+270+:::61305050?:
Software engineering'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:19.95:CA:SRP'RFF+Q
NB:00023302:3'DTM+171:19960208:102'RFF+LI:8224'RFF+BFN:S.KON.13'LIN+8'PIA+5+0198
549512:IB'IMD+F+010+:::Evans'IMD+F+011+:::Julian'IMD+F+050+:::A wood of our own'
IMD+F+110+:::Oxford'IMD+F+120+:::Oxford University Press'IMD+F+170+:::1995'IMD+F
+180+:::158p'IMD+F+181+:::?: ill ; 25cm'IMD+F+270+:::76020000?:Forestry'IMD+F+30
0+:::Note?:Julian Evans ; with illustrati:ions by John White and Stephen Evan'IM
D+F+300+:::s'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:17.99:CA:SRP'RFF+QNB:00023
302:4'DTM+171:19960208:102'RFF+LI:8225'RFF+BFN:S.KON.23'LIN+9'PIA+5+0333628896:I
B'IMD+F+010+:::Barraclough'IMD+F+011+:::Solon L'IMD+F+050+:::Forests and livelih
oods'IMD+F+060+:::the social dynamics of den in devel:oping countries'IMD+F+110+
:::London'IMD+F+120+:::Macmillan Publishers'IMD+F+170+:::1995'IMD+F+180+:::259p'
IMD+F+181+:::; 23cm. - Bibl.?: p.245-253. - Inde'IMD+F+270+:::76302500?:Tropical forests'IMD+F+300+:::Note?:by Solon L. Barraclough and Kr:rishna B. Ghimire'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:45:CA:SRP'RFF+QNB:00023302:6'DTM+171:19960208:102'RFF+LI:8227'RFF+BFN:S.KON.23'LIN+10'PIA+5+0333645545:IB'IMD+F+010+:::Tyrrell'IMD+F+011+:::A J'IMD+F+050+:::Eiffel object-oriented programming'IMD+F+110+:::London'IMD+F+120+:::Macmillan Publishers'IMD+F+170+:::1995'IMD+F+180+:::283p'IMD+F+181+:::; 24cm. - Bibl.?: p.281. - Index'IMD+F+190+:::Macmillan computer science series'IMD+F+270+:::61305015?:Object-oriented programmin:g'IMD+F+300+:::1st Series Id?:E1108662'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:16.99:CA:SRP'RFF+QNB:00023302:7'DTM+171:19960208:102'RFF+LI:8228'RFF+BFN:S.KON.13'UNS+S'CNT+2:10'UNT+165+0000090001'UNH+0000170001+ORDERS:D:93A:UN:EAN007'BGM+224+B00405'DTM+137:19960209:102'NAD+BY+++STADT- UND UNIVERSITAETSBIBLIOTHEK:FRANKFURT+BOCKENHEIMER LANDSTR. 134-138+FRANKFURT+++DE'RFF+API:DE114110388'RFF+IT:STUB'NAD+SU+++B.H.BLACKWELL'CUX+2:GBP:9'LIN+1'PIA+5+0471960047:IB'QTY+21:1'FTX+ACB+3++TEST EDILIBE'PRI+YYY:40:CA:SRP'RFF+QNB:00023302:12'DTM+171:19960208:102'RFF+LI:8219'RFF+BFN:S.KON.E.631'LIN+2'PIA+5+0126487200:IB'IMD+F+050+:::The Multimedia dictionary'IMD+F+110+:::London'IMD+F+120+:::Academic Press'IMD+F+170+:::1995'IMD+F+180+:::351p'IMD+F+181+:::; ; 23cm'IMD+F+270+:::61756500?:Multi-media applications'IMD+F+300+:::Note?:edited by H. Sleurink'QTY+21:1'FTX+ACB+3++TEST EDLIBE'PRI+YYY:19.95:CA:SRP'RFF+QNB:00023302:2'DTM+171:19960208:102'RFF+LI:8223'RFF+BFN:S.KON.13'LIN+3'PIA+5+0333556453:IB'IMD+F+010+:::Medema'IMD+F+011+:::Steven G'IMD+F+050+:::Ronald H. Coase'IMD+F+110+:::London'IMD+F+120+:::Macmillan Publishers'IMD+F+170+:::1994'IMD+F+180+:::205p'IMD+F+181+:::; 23cm. - Bibl.?: p.192-203. - Inde'IMD+F+270+:::27651202?:Economic analysis/theory'QTY+21:1'FTX+ACB+3++TEST EDLIBE'PRI+YYY:40:CA:SRP'RFF+QNB:00023302:5'DTM+171:19960208:102'RFF+LI:8226'RFF+BFN:S.KON.07'UNS+S'CNT+2:3'UNT+55+0000170001'UNZ+2+72'
|
645fa356475dff18cf4ae34a10b8d2db04216d1b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2342/CH5/EX5.15/EX5_15.sce | f85fbc7e737b6c801bb9f5b6d3d68fb93b66e24e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 553 | sce | EX5_15.sce | // Exa 5.15
format('v',6)
clc;
clear;
close;
// Given data
k= 0.05;// in mA/V^2
V_T= 1;// in V
V_DD= 6;// in V
R_S= 9.1;//in kΩ
//V_GS= V_DD-I_D*R_S
//I_D= k*(V_DD-I_D*R_S)^2
//I_D^2*R_S^2-I_D*(2*V_DD*R_S+1/k)+V_DD^2
A= R_S^2;// assumed
B=-(2*V_DD*R_S+1/k);// assumed
C= V_DD^2;// assumed
I_D= [A B C];
I_D= roots(I_D);// in mA
I_D= I_D(2);// in mA
V_GS= V_DD-I_D*R_S;// in V
V_DS= V_GS;// in V
disp(I_D,"The value of I_D in mA is : ")
disp(V_GS,"The value of V_GS in volts is : ")
disp(V_DS,"The value of V_DS in volts is : ")
|
979d8e954a5240ecdb9109c8019176f7164e96c2 | 8627886261b3eddf8440c0b470cd9ee25c762d97 | /сайлаб/20_lab_rabota.sce | 88597285c25e751cb0c073417d74d2a62fd6d074 | [] | no_license | timurzotov/pvis | ba75cf86fae91b6adc8dd3fe9cd2672eea561cca | d60e8e241d6ce0ad3a9b2a75c8771f92a9b039ba | refs/heads/master | 2020-09-08T07:59:31.719500 | 2019-11-11T21:14:13 | 2019-11-11T21:14:13 | 221,070,925 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,365 | sce | 20_lab_rabota.sce | clc;
f=figure();
set(f,'position',[200,20,400,400]);
set(f,'figure_name','Лабораторная работа №20');
set(f,'BackgroundColor',[0,1,1]);
button1=uicontrol(f,'style','pushbutton','string','Закрыть приложение.','position',[200,10,150,30],'CallBack','a1');
function a1
close(f);
endfunction
a=0;
while (a==0)
Str1=uicontrol(f,'style','text','position',[125,280,150,60],'string','Метка 1','Visible','off');
xpause(700000);
Str1.Visible='on';
Str1.HorizontalAlignment='left';
Str1.VerticalAlignment='top';
Str1.ForeGroundColor='0|0|1';
Str1.BackGroundColor='1|1|1';
Srt1.FontAngle='italic';
Str1.FontSize=15;
Str2=uicontrol(f,'style','text','position',[125,190,150,60],'string','Метка 2','Visible','off');
xpause(700000);
Str2.Visible='on';
Str2.HorizontalAlignment='center';
Str2.VerticalAlignment='middle';
Str2.ForeGroundColor='1|0|0';
Str2.BackGroundColor='0|1|0';
Srt2.FontAngle='serif';
Str2.FontSize=20;
Str3=uicontrol(f,'style','text','position',[125,100,150,60],'string','Метка 3','Visible','off');
xpause(700000);
Str3.Visible='on';
Str3.HorizontalAlignment='right';
Str3.VerticalAlignment='bottom';
Str3.ForeGroundColor='1|1|0';
Str3.BackGroundColor='1|0|1';
Srt3.FontAngle='normal';
Str3.FontSize=25;
Str1.Visible='off';
xpause(700000);
Str2.Visible='off';
xpause(700000);
Str3.Visible='off';
end
|
54e7fa67807930b499e535d6b16750ab9326a8e1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /623/CH7/EX2.6.2/U2_C6_2.sce | f64d6fe6ab744298ba14d1bf33574e6d43b1470e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 225 | sce | U2_C6_2.sce | //variable initialization
x=0:.001:(1/3);
y=0:.001:(1/3);
x0=0;
x1=1/3;
y0=0;
y1=1/3;
p=4*integrate('(sin(%pi*x))^2','x',x0,x1)*integrate('(sin(%pi*y))^2','y',y0,y1);
printf("The required probability = %.2f",p);
|
40d6b4e2b5bd01a3cf27c767ed0613ba487e0230 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3363/CH11/EX11.3/Ex11_3.sce | 8c9a51a6448afb12279d13d97e420eb799aa1921 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 172 | sce | Ex11_3.sce | //Example 11.3, page 410
clc
h=6.6*10^-34//in J-s
v=1*10^7//per sec
K=1.4*10^-23//in J-K
T=300//in K
n=exp(-((h*v)/(K*T)))
printf("\n The Boltzan factor is %e Tesla",1-n) |
95f88dc998b53b4c8547ebe913bc9e0ffd823a23 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3159/CH16/EX16.4/Ex16_4.sce | 37b5d3ead0d96356c3b67832337679049fb5a46d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 370 | sce | Ex16_4.sce | // Calculation of hysteresis loss
clc
v = 0.01 // volume in m^3
x = 1e-4 // axis intercept
y = 1e2 // axis intercept
a = 60000 // Hysteresis loop area
f = 50 // frequency in Hz
printf("\n Example 16.4")
e = x*y*a // Energy loss in one loop
E = e*v // energy loss in core in one cycle
P = E*f // Power loss
printf("\n Power loss due to hysteresis is %d W",P)
|
a50e26aa9a3419bd58b3ef46cd5380779192ee78 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3768/CH12/EX12.9/Ex12_9.sce | 7dbb272b9149a30670ea8ebaa2e9302fc08c7ee5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 283 | sce | Ex12_9.sce | //Example number 12.9, Page number 266
clc;clear;
close;
//Variable declaration
n2=1.3; //Cladding refractive index
delta=0.140; //fractional index change
//Calculation
n1=n2/(1-delta); //Core refractive index
//Result
printf("refractive index of core is %.2f",n1)
|
ec76968fbc0ce5cfb439cd74000b0a66eff29027 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3665/CH6/EX6.11/Ex6_11.sce | 491d26b033f61379f7eda7833e32c4b10f3b5e2b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 368 | sce | Ex6_11.sce | clc//
//
//
//Variable declaration
m=9.1*10^-31; //mass of electron(kg)
h=6.626*10^-34; //planck's constant
lamda=1.66*10^-10; //wavelength(m)
//Calculation
v=h/(m*lamda); //velocity(m/s)
KE=(1/2)*m*v^2; //kinetic energy(eV)
//Result
printf("\n velocity is %0.0f km/s",v/10^3)
printf("\n kinetic energy is %0.2f eV",KE/(1.6*10^-19))
|
59fe95914590f580fa227201bf8d76993a159e6c | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/PY1.prev.tst | e8c5843a695bebc4c9fa535f7d7aa519f6aca68c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 132 | tst | PY1.prev.tst | getMatrix(1) = [[1,-2,2],[2,-1,2],[2,-2,3]]
getMatrix(2) = [[1,2,2],[2,1,2],[2,2,3]]
getMatrix(3) = [[-1,2,2],[-2,1,2],[-2,2,3]]
|
4182a18775ad5b6259cabfa68d26a26f9ad0a448 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3821/CH11/EX11.14/Example11_14.sce | 39afce846c4d9d3421958487854c030a371ea66b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,083 | sce | Example11_14.sce | ///Chapter No 11 Steam Boilers
////Example 11.14 Page No 245
///Find Theoretical draught in millimeters of water
//Input data
clc;
clear;
H=24; //Chimney height in m
Ta=25+273; //Ambient temperature in degree celsius
Tg=300+273; //Temperature of fuel gases in degree celsius
ma=20; //Combustion space of fuel burnt in Kg/Kgof fuel
g=9.81;
//Calculation
hw=((353*H)*((1/Ta)-((1/Tg)*((ma+1)/ma))));//Theoretical draught in millimeters of water in mm
H1=H*((Tg/Ta)*(ma/(ma+1))-1); //Theoretical draught produced in hot gas column in m
H2=H1-9.975; //Draught lost in friction at the grate and passage in m
V=round(sqrt(2*g*H2)); //Actual draught produced in hot gas column in m
///Output
printf('Theoretical draught in millimeters of water= %f mm \n',hw);
printf('Theoretical draught produced in hot gas column=%f m \n',H1);
printf('Draught lost in friction at the grate and passage=%f m \n',H2);
printf('Actual draught produced in hot gas column= %f m \n ',V);
|
b50a2b43a20cbca993892d569a08302f632a0637 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2534/CH13/EX13.3/Ex13_3.sce | 65974b03c9f81a0785465cf466354a120c2bb7d3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 251 | sce | Ex13_3.sce | //Ex13_3
clc
Rf = 1.5*10^6//feeback resistance
Cf = 1*10^-9//capacitance across feedback
f0 = 1/(2*%pi*Rf*Cf)//frequency of oscillation
disp("Rf = "+string(Rf)+"ohm")
disp("Cf = "+string(Cf)+"F")
disp("f0 = 1/(2*pi*Rf*Cf) = "+string(f0)+"Hz")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.