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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64ef956e0a0fd9a3dc469e321db6fb161f080dbf
|
a8447bb190e75c3452a418bcdffbb356b7f3ec43
|
/LTP RAP 3.0napls/comMMNa.sce
|
35093a28e250aef93ada18938eac7aa33d811a59
|
[] |
no_license
|
br-bieegl/napls3-erpTasks
|
d7014b2716bced6d1b70af760b8f0508f02724be
|
5d3297776af95b2ba8981fe5ebbb8672831061a0
|
refs/heads/master
| 2021-01-22T09:58:19.920934
| 2015-02-18T21:10:10
| 2015-02-18T21:10:10
| 25,929,348
| 2
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 17,431
|
sce
|
comMMNa.sce
|
#it does not match the risto "optimum MMN" paper
scenario = "PS3_roving_combination_MMNa_01072015";
#adapted from "nvMMNa5_napls06122009";
#attenuation updated for ER1 insert earphones and X-fi gamer card
#Note: this is based on the baldeweg-style of pitch deviance with
#the additional constraint that a transition be no more than 300Hz
#---
#Modified Jan 2015 to include the new sequences where we have 3, 8, and 33
#standards preceding deviants instead of the previously used 2, 6, and 36
pcl_file = "nvMMNCommands.pcl";
scenario_type = trials ;
write_codes = true ;
response_matching = simple_matching ;
active_buttons = 2;
button_codes = 64, 10;
target_button_codes = 255,11;
pulse_width = 1 ;
default_trial_type = fixed ;
default_background_color = 0,0,0 ;
begin ;
#standard tone:
sound{ wavefile {filename = "s50.wav" ;} ; attenuation = 0.3 ;} s633 ;
#700Hz
sound{ wavefile {filename = "f700Hz.wav" ;} ; attenuation = 0.3 ;} f700Hz ;
#750Hz
sound{ wavefile {filename = "f750Hz.wav" ;} ; attenuation = 0.3 ;} f750Hz ;
#800Hz
sound{ wavefile {filename = "f800Hz.wav" ;} ; attenuation = 0.3 ;} f800Hz ;
#850Hz
sound{ wavefile {filename = "f850Hz.wav" ;} ; attenuation = 0.3 ;} f850Hz ;
#900Hz
sound{ wavefile {filename = "f900Hz.wav" ;} ; attenuation = 0.3 ;} f900Hz ;
#950Hz
sound{ wavefile {filename = "f950Hz.wav" ;} ; attenuation = 0.3 ;} f950Hz ;
#1000Hz
sound{ wavefile {filename = "f1000Hz.wav" ;} ; attenuation = 0.3 ;} f1000Hz ;
#1050Hz
sound{ wavefile {filename = "f1050Hz.wav" ;} ; attenuation = 0.3 ;} f1050Hz ;
#1100Hz
sound{ wavefile {filename = "f1100Hz.wav" ;} ; attenuation = 0.3 ;} f1100Hz ;
#1150Hz
sound{ wavefile {filename = "f1150Hz.wav" ;} ; attenuation = 0.3 ;} f1150Hz ;
#1200Hz
sound{ wavefile {filename = "f1200Hz.wav" ;} ; attenuation = 0.3 ;} f1200Hz ;
#1250Hz
sound{ wavefile {filename = "f1250Hz.wav" ;} ; attenuation = 0.3 ;} f1250Hz ;
#long duration tones:
#700Hz
sound{ wavefile {filename = "f700Hz100ms.wav" ;} ; attenuation = 0.3 ;} f700Hz100ms ;
#750Hz
sound{ wavefile {filename = "f750Hz100ms.wav" ;} ; attenuation = 0.3 ;} f750Hz100ms ;
#800Hz
sound{ wavefile {filename = "f800Hz100ms.wav" ;} ; attenuation = 0.3 ;} f800Hz100ms ;
#850Hz
sound{ wavefile {filename = "f850Hz100ms.wav" ;} ; attenuation = 0.3 ;} f850Hz100ms ;
#900Hz
sound{ wavefile {filename = "f900Hz100ms.wav" ;} ; attenuation = 0.3 ;} f900Hz100ms ;
#950Hz
sound{ wavefile {filename = "f950Hz100ms.wav" ;} ; attenuation = 0.3 ;} f950Hz100ms ;
#1000Hz
sound{ wavefile {filename = "f1000Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1000Hz100ms ;
#1050Hz
sound{ wavefile {filename = "f1050Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1050Hz100ms ;
#1100Hz
sound{ wavefile {filename = "f1100Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1100Hz100ms ;
#1150Hz
sound{ wavefile {filename = "f1150Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1150Hz100ms ;
#1200Hz
sound{ wavefile {filename = "f1200Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1200Hz100ms ;
#1250Hz
sound{ wavefile {filename = "f1250Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1250Hz100ms ;
#silence tone placeholder
sound{ wavefile {filename = "s50.wav" ;} ; attenuation = 1 ;} silence ;
picture{text { caption = "+" ;
font_size = 48 ;
font_color = 255,255,255 ;} ;
x = 0 ; y = 0 ;
} default;
trial {
stimulus_event {
picture{text { caption = "3" ;
font_size = 48 ;
font_color = 255,255,255 ;} ;
x = 0 ; y = 0 ;} ;
duration = 1500 ;
code = "83" ;
port_code = 128 ;
} ;
stimulus_event {
picture{text { caption = "2" ;
font_size = 48 ;
font_color = 255,255,255 ;} ;
x = 0 ; y = 0 ;} ;
time = 2000 ;
duration = 1500 ;
code = "82" ;
} ;
stimulus_event {
picture{text { caption = "1" ;
font_size = 48 ;
font_color = 255,255,255 ;} ;
x = 0 ; y = 0 ;} ;
time = 4000 ;
duration = 1500 ;
code = "81" ;
} ;
} ;
constant_force {
duration = 100;
axes = 7;
direction = 0;
magnitude = 1.0; # constant force for 125 ms
gain = 1.0;
} T;
constant_force {
duration = 100;
axes = 7,8;
direction = 0;
magnitude = 1.0; # constant force for 175 ms
gain = 1.0;
#envelope params
#attack_level = 0.7;
#attack_time = 100;
#fade_level = 0.0;
#fade_time = 100;
} N;
constant_force {
duration = 200;
axes = 8;
direction = 0;
magnitude = 1.0; # constant force for 250 ms
} S;
TEMPLATE "ps3MMNrov400.tem"{
#pic word picPort wordPort targResp picTime wrdTime snd1 s1Port snd2 s2Port snd3 s3Port snd4 s4Port snd5 s5Port snd6 s6Port ;
pic picPort targResp picTime snd1 s1Port snd2 s2Port snd3 s3Port snd4 s4Port;
S 50 2 407 f1100Hz 101 f1100Hz 2 f1100Hz 3 f1100Hz 4 ;
N 200 2 453 f1100Hz 5 f1100Hz 6 f1100Hz 7 f1100Hz 8 ;
S 50 2 63 f900Hz100ms 1 f900Hz100ms 2 f900Hz100ms 3 f800Hz 1 ;
S 50 2 457 f800Hz 2 f800Hz 3 f700Hz100ms 1 f700Hz100ms 2 ;
S 50 2 316 f700Hz100ms 3 f850Hz 1 f850Hz 2 f850Hz 3 ;
S 50 2 49 f850Hz 4 f850Hz 5 f850Hz 6 f850Hz 7 ;
T 100 1 139 f850Hz 8 f950Hz100ms 1 f950Hz100ms 2 f950Hz100ms 3 ;
S 50 2 273 f950Hz100ms 4 f950Hz100ms 5 f950Hz100ms 6 f950Hz100ms 7 ;
S 50 2 479 f950Hz100ms 8 f950Hz100ms 9 f950Hz100ms 10 f950Hz100ms 11 ;
S 50 2 482 f950Hz100ms 12 f950Hz100ms 13 f950Hz100ms 14 f950Hz100ms 15 ;
S 50 2 79 f950Hz100ms 16 f950Hz100ms 17 f950Hz100ms 18 f950Hz100ms 19 ;
S 50 2 485 f950Hz100ms 20 f950Hz100ms 21 f950Hz100ms 22 f950Hz100ms 23 ;
T 100 1 479 f950Hz100ms 24 f950Hz100ms 25 f950Hz100ms 26 f950Hz100ms 27 ;
S 50 2 243 f950Hz100ms 28 f950Hz100ms 29 f950Hz100ms 30 f950Hz100ms 31 ;
S 50 2 300 f950Hz100ms 32 f950Hz100ms 33 f750Hz 1 f750Hz 2 ;
S 50 2 71 f750Hz 3 f750Hz 4 f750Hz 5 f750Hz 6 ;
N 200 2 211 f750Hz 7 f750Hz 8 f750Hz 9 f750Hz 10 ;
S 50 2 458 f750Hz 11 f750Hz 12 f750Hz 13 f750Hz 14 ;
S 50 2 396 f750Hz 15 f750Hz 16 f750Hz 17 f750Hz 18 ;
S 50 2 480 f750Hz 19 f750Hz 20 f750Hz 21 f750Hz 22 ;
S 50 2 328 f750Hz 23 f750Hz 24 f750Hz 25 f750Hz 26 ;
S 50 2 18 f750Hz 27 f750Hz 28 f750Hz 29 f750Hz 30 ;
S 50 2 425 f750Hz 31 f750Hz 32 f750Hz 33 f1000Hz100ms 1 ;
N 200 2 467 f1000Hz100ms 2 f1000Hz100ms 3 f1200Hz 1 f1200Hz 2 ;
S 50 2 339 f1200Hz 3 f1200Hz 4 f1200Hz 5 f1200Hz 6 ;
S 50 2 379 f1200Hz 7 f1200Hz 8 f1050Hz100ms 1 f1050Hz100ms 2 ;
T 100 1 372 f1050Hz100ms 3 f1050Hz100ms 4 f1050Hz100ms 5 f1050Hz100ms 6 ;
S 50 2 196 f1050Hz100ms 7 f1050Hz100ms 8 f1050Hz100ms 9 f1050Hz100ms 10 ;
S 50 2 328 f1050Hz100ms 11 f1050Hz100ms 12 f1050Hz100ms 13 f1050Hz100ms 14 ;
S 50 2 86 f1050Hz100ms 15 f1050Hz100ms 16 f1050Hz100ms 17 f1050Hz100ms 18 ;
S 50 2 353 f1050Hz100ms 19 f1050Hz100ms 20 f1050Hz100ms 21 f1050Hz100ms 22 ;
S 50 2 16 f1050Hz100ms 23 f1050Hz100ms 24 f1050Hz100ms 25 f1050Hz100ms 26 ;
S 50 2 138 f1050Hz100ms 27 f1050Hz100ms 28 f1050Hz100ms 29 f1050Hz100ms 30 ;
T 100 1 23 f1050Hz100ms 31 f1050Hz100ms 32 f1050Hz100ms 33 f900Hz 1 ;
S 50 2 49 f900Hz 2 f900Hz 3 f900Hz 4 f900Hz 5 ;
S 50 2 412 f900Hz 6 f900Hz 7 f900Hz 8 f900Hz 9 ;
T 100 1 347 f900Hz 10 f900Hz 11 f900Hz 12 f900Hz 13 ;
S 50 2 159 f900Hz 14 f900Hz 15 f900Hz 16 f900Hz 17 ;
S 50 2 475 f900Hz 18 f900Hz 19 f900Hz 20 f900Hz 21 ;
S 50 2 17 f900Hz 22 f900Hz 23 f900Hz 24 f900Hz 25 ;
S 50 2 219 f900Hz 26 f900Hz 27 f900Hz 28 f900Hz 29 ;
S 50 2 191 f900Hz 30 f900Hz 31 f900Hz 32 f900Hz 33 ;
S 50 2 383 f1200Hz100ms 1 f1200Hz100ms 2 f1200Hz100ms 3 f1200Hz100ms 4 ;
T 100 1 398 f1200Hz100ms 5 f1200Hz100ms 6 f1200Hz100ms 7 f1200Hz100ms 8 ;
S 50 2 93 f1200Hz100ms 9 f1200Hz100ms 10 f1200Hz100ms 11 f1200Hz100ms 12 ;
S 50 2 245 f1200Hz100ms 13 f1200Hz100ms 14 f1200Hz100ms 15 f1200Hz100ms 16 ;
S 50 2 223 f1200Hz100ms 17 f1200Hz100ms 18 f1200Hz100ms 19 f1200Hz100ms 20 ;
S 50 2 323 f1200Hz100ms 21 f1200Hz100ms 22 f1200Hz100ms 23 f1200Hz100ms 24 ;
N 200 2 355 f1200Hz100ms 25 f1200Hz100ms 26 f1200Hz100ms 27 f1200Hz100ms 28 ;
S 50 2 377 f1200Hz100ms 29 f1200Hz100ms 30 f1200Hz100ms 31 f1200Hz100ms 32 ;
S 50 2 138 f1200Hz100ms 33 f950Hz 1 f950Hz 2 f950Hz 3 ;
T 100 1 340 f950Hz 4 f950Hz 5 f950Hz 6 f950Hz 7 ;
S 50 2 328 f950Hz 8 f950Hz 9 f950Hz 10 f950Hz 11 ;
S 50 2 81 f950Hz 12 f950Hz 13 f950Hz 14 f950Hz 15 ;
S 50 2 59 f950Hz 16 f950Hz 17 f950Hz 18 f950Hz 19 ;
N 200 2 249 f950Hz 20 f950Hz 21 f950Hz 22 f950Hz 23 ;
S 50 2 480 f950Hz 24 f950Hz 25 f950Hz 26 f950Hz 27 ;
S 50 2 170 f950Hz 28 f950Hz 29 f950Hz 30 f950Hz 31 ;
S 50 2 293 f950Hz 32 f950Hz 33 f1250Hz100ms 1 f1250Hz100ms 2 ;
S 50 2 112 f1250Hz100ms 3 f1250Hz100ms 4 f1250Hz100ms 5 f1250Hz100ms 6 ;
S 50 2 376 f1250Hz100ms 7 f1250Hz100ms 8 f1250Hz100ms 9 f1250Hz100ms 10 ;
S 50 2 128 f1250Hz100ms 11 f1250Hz100ms 12 f1250Hz100ms 13 f1250Hz100ms 14 ;
S 50 2 253 f1250Hz100ms 15 f1250Hz100ms 16 f1250Hz100ms 17 f1250Hz100ms 18 ;
T 100 1 350 f1250Hz100ms 19 f1250Hz100ms 20 f1250Hz100ms 21 f1250Hz100ms 22 ;
S 50 2 445 f1250Hz100ms 23 f1250Hz100ms 24 f1250Hz100ms 25 f1250Hz100ms 26 ;
N 200 2 480 f1250Hz100ms 27 f1250Hz100ms 28 f1250Hz100ms 29 f1250Hz100ms 30 ;
S 50 2 274 f1250Hz100ms 31 f1250Hz100ms 32 f1250Hz100ms 33 f1150Hz 1 ;
T 100 1 69 f1150Hz 2 f1150Hz 3 f950Hz100ms 1 f950Hz100ms 2 ;
S 50 2 75 f950Hz100ms 3 f950Hz100ms 4 f950Hz100ms 5 f950Hz100ms 6 ;
S 50 2 129 f950Hz100ms 7 f950Hz100ms 8 f1050Hz 1 f1050Hz 2 ;
S 50 2 420 f1050Hz 3 f1050Hz 4 f1050Hz 5 f1050Hz 6 ;
S 50 2 127 f1050Hz 7 f1050Hz 8 f1050Hz 9 f1050Hz 10 ;
S 50 2 407 f1050Hz 11 f1050Hz 12 f1050Hz 13 f1050Hz 14 ;
S 50 2 122 f1050Hz 15 f1050Hz 16 f1050Hz 17 f1050Hz 18 ;
S 50 2 465 f1050Hz 19 f1050Hz 20 f1050Hz 21 f1050Hz 22 ;
N 200 2 175 f1050Hz 23 f1050Hz 24 f1050Hz 25 f1050Hz 26 ;
S 50 2 98 f1050Hz 27 f1050Hz 28 f1050Hz 29 f1050Hz 30 ;
S 50 2 126 f1050Hz 31 f1050Hz 32 f1050Hz 33 f850Hz100ms 1 ;
S 50 2 308 f850Hz100ms 2 f850Hz100ms 3 f750Hz 1 f750Hz 2 ;
S 50 2 237 f750Hz 3 f750Hz 4 f750Hz 5 f750Hz 6 ;
S 50 2 176 f750Hz 7 f750Hz 8 f1050Hz100ms 1 f1050Hz100ms 2 ;
S 50 2 415 f1050Hz100ms 3 f1050Hz100ms 4 f1050Hz100ms 5 f1050Hz100ms 6 ;
N 200 2 293 f1050Hz100ms 7 f1050Hz100ms 8 f850Hz 1 f850Hz 2 ;
S 50 2 275 f850Hz 3 f850Hz 4 f850Hz 5 f850Hz 6 ;
S 50 2 459 f850Hz 7 f850Hz 8 f1050Hz100ms 1 f1050Hz100ms 2 ;
S 50 2 143 f1050Hz100ms 3 f1050Hz100ms 4 f1050Hz100ms 5 f1050Hz100ms 6 ;
T 100 1 379 f1050Hz100ms 7 f1050Hz100ms 8 f850Hz 1 f850Hz 2 ;
S 50 2 377 f850Hz 3 f1150Hz100ms 1 f1150Hz100ms 2 f1150Hz100ms 3 ;
S 50 2 190 f1150Hz100ms 4 f1150Hz100ms 5 f1150Hz100ms 6 f1150Hz100ms 7 ;
S 50 2 284 f1150Hz100ms 8 f900Hz 1 f900Hz 2 f900Hz 3 ;
S 50 2 38 f900Hz 4 f900Hz 5 f900Hz 6 f900Hz 7 ;
S 50 2 27 f900Hz 8 f750Hz100ms 1 f750Hz100ms 2 f750Hz100ms 3 ;
S 50 2 265 f750Hz100ms 4 f750Hz100ms 5 f750Hz100ms 6 f750Hz100ms 7 ;
S 50 2 390 f750Hz100ms 8 f750Hz100ms 9 f750Hz100ms 10 f750Hz100ms 11 ;
S 50 2 467 f750Hz100ms 12 f750Hz100ms 13 f750Hz100ms 14 f750Hz100ms 15 ;
T 100 1 65 f750Hz100ms 16 f750Hz100ms 17 f750Hz100ms 18 f750Hz100ms 19 ;
S 50 2 284 f750Hz100ms 20 f750Hz100ms 21 f750Hz100ms 22 f750Hz100ms 23 ;
S 50 2 235 f750Hz100ms 24 f750Hz100ms 25 f750Hz100ms 26 f750Hz100ms 27 ;
S 50 2 166 f750Hz100ms 28 f750Hz100ms 29 f750Hz100ms 30 f750Hz100ms 31 ;
S 50 2 169 f750Hz100ms 32 f750Hz100ms 33 f1050Hz 1 f1050Hz 2 ;
N 200 2 81 f1050Hz 3 f1050Hz 4 f1050Hz 5 f1050Hz 6 ;
S 50 2 397 f1050Hz 7 f1050Hz 8 f1200Hz100ms 1 f1200Hz100ms 2 ;
S 50 2 156 f1200Hz100ms 3 f1200Hz100ms 4 f1200Hz100ms 5 f1200Hz100ms 6 ;
S 50 2 264 f1200Hz100ms 7 f1200Hz100ms 8 f1000Hz 1 f1000Hz 2 ;
S 50 2 83 f1000Hz 3 f1000Hz 4 f1000Hz 5 f1000Hz 6 ;
N 200 2 301 f1000Hz 7 f1000Hz 8 f1000Hz 9 f1000Hz 10 ;
S 50 2 131 f1000Hz 11 f1000Hz 12 f1000Hz 13 f1000Hz 14 ;
S 50 2 327 f1000Hz 15 f1000Hz 16 f1000Hz 17 f1000Hz 18 ;
S 50 2 345 f1000Hz 19 f1000Hz 20 f1000Hz 21 f1000Hz 22 ;
N 200 2 374 f1000Hz 23 f1000Hz 24 f1000Hz 25 f1000Hz 26 ;
S 50 2 225 f1000Hz 27 f1000Hz 28 f1000Hz 29 f1000Hz 30 ;
S 50 2 42 f1000Hz 31 f1000Hz 32 f1000Hz 33 f1250Hz100ms 1 ;
T 100 1 114 f1250Hz100ms 2 f1250Hz100ms 3 f1000Hz 1 f1000Hz 2 ;
S 50 2 457 f1000Hz 3 f1200Hz100ms 1 f1200Hz100ms 2 f1200Hz100ms 3 ;
S 50 2 76 f1100Hz 1 f1100Hz 2 f1100Hz 3 f800Hz100ms 1 ;
S 50 2 413 f800Hz100ms 2 f800Hz100ms 3 f950Hz 1 f950Hz 2 ;
S 50 2 269 f950Hz 3 f950Hz 4 f950Hz 5 f950Hz 6 ;
S 50 2 498 f950Hz 7 f950Hz 8 f950Hz 9 f950Hz 10 ;
S 50 2 39 f950Hz 11 f950Hz 12 f950Hz 13 f950Hz 14 ;
S 50 2 221 f950Hz 15 f950Hz 16 f950Hz 17 f950Hz 18 ;
N 200 2 53 f950Hz 19 f950Hz 20 f950Hz 21 f950Hz 22 ;
S 50 2 481 f950Hz 23 f950Hz 24 f950Hz 25 f950Hz 26 ;
S 50 2 222 f950Hz 27 f950Hz 28 f950Hz 29 f950Hz 30 ;
S 50 2 387 f950Hz 31 f950Hz 32 f950Hz 33 f1250Hz100ms 1 ;
T 100 1 409 f1250Hz100ms 2 f1250Hz100ms 3 f1250Hz100ms 4 f1250Hz100ms 5 ;
S 50 2 434 f1250Hz100ms 6 f1250Hz100ms 7 f1250Hz100ms 8 f1000Hz 1 ;
S 50 2 42 f1000Hz 2 f1000Hz 3 f1000Hz 4 f1000Hz 5 ;
S 50 2 200 f1000Hz 6 f1000Hz 7 f1000Hz 8 f900Hz100ms 1 ;
S 50 2 130 f900Hz100ms 2 f900Hz100ms 3 f1150Hz 1 f1150Hz 2 ;
N 200 2 500 f1150Hz 3 f1250Hz100ms 1 f1250Hz100ms 2 f1250Hz100ms 3 ;
S 50 2 216 f1250Hz100ms 4 f1250Hz100ms 5 f1250Hz100ms 6 f1250Hz100ms 7 ;
S 50 2 455 f1250Hz100ms 8 f1100Hz 1 f1100Hz 2 f1100Hz 3 ;
S 50 2 91 f1100Hz 4 f1100Hz 5 f1100Hz 6 f1100Hz 7 ;
S 50 2 132 f1100Hz 8 f1100Hz 9 f1100Hz 10 f1100Hz 11 ;
N 200 2 73 f1100Hz 12 f1100Hz 13 f1100Hz 14 f1100Hz 15 ;
S 50 2 68 f1100Hz 16 f1100Hz 17 f1100Hz 18 f1100Hz 19 ;
S 50 2 435 f1100Hz 20 f1100Hz 21 f1100Hz 22 f1100Hz 23 ;
S 50 2 290 f1100Hz 24 f1100Hz 25 f1100Hz 26 f1100Hz 27 ;
S 50 2 275 f1100Hz 28 f1100Hz 29 f1100Hz 30 f1100Hz 31 ;
S 50 2 72 f1100Hz 32 f1100Hz 33 f950Hz100ms 1 f950Hz100ms 2 ;
S 50 2 427 f950Hz100ms 3 f800Hz 1 f800Hz 2 f800Hz 3 ;
N 200 2 311 f800Hz 4 f800Hz 5 f800Hz 6 f800Hz 7 ;
S 50 2 175 f800Hz 8 f800Hz 9 f800Hz 10 f800Hz 11 ;
S 50 2 257 f800Hz 12 f800Hz 13 f800Hz 14 f800Hz 15 ;
T 100 1 201 f800Hz 16 f800Hz 17 f800Hz 18 f800Hz 19 ;
S 50 2 38 f800Hz 20 f800Hz 21 f800Hz 22 f800Hz 23 ;
S 50 2 120 f800Hz 24 f800Hz 25 f800Hz 26 f800Hz 27 ;
T 100 1 62 f800Hz 28 f800Hz 29 f800Hz 30 f800Hz 31 ;
S 50 2 92 f800Hz 32 f800Hz 33 f1100Hz100ms 1 f1100Hz100ms 2 ;
S 50 2 120 f1100Hz100ms 3 f1100Hz100ms 4 f1100Hz100ms 5 f1100Hz100ms 6 ;
S 50 2 451 f1100Hz100ms 7 f1100Hz100ms 8 f1200Hz 1 f1200Hz 2 ;
S 50 2 472 f1200Hz 3 f1200Hz 4 f1200Hz 5 f1200Hz 6 ;
S 50 2 245 f1200Hz 7 f1200Hz 8 f1050Hz100ms 1 f1050Hz100ms 2 ;
N 200 2 245 f1050Hz100ms 3 f800Hz 1 f800Hz 2 f800Hz 3 ;
S 50 2 169 f800Hz 4 f800Hz 5 f800Hz 6 f800Hz 7 ;
S 50 2 450 f800Hz 8 f800Hz 9 f800Hz 10 f800Hz 11 ;
T 100 1 185 f800Hz 12 f800Hz 13 f800Hz 14 f800Hz 15 ;
S 50 2 56 f800Hz 16 f800Hz 17 f800Hz 18 f800Hz 19 ;
S 50 2 390 f800Hz 20 f800Hz 21 f800Hz 22 f800Hz 23 ;
S 50 2 195 f800Hz 24 f800Hz 25 f800Hz 26 f800Hz 27 ;
T 100 1 121 f800Hz 28 f800Hz 29 f800Hz 30 f800Hz 31 ;
S 50 2 202 f800Hz 32 f800Hz 33 f950Hz100ms 1 f950Hz100ms 2 ;
S 50 2 48 f950Hz100ms 3 f950Hz100ms 4 f950Hz100ms 5 f950Hz100ms 6 ;
S 50 2 66 f950Hz100ms 7 f950Hz100ms 8 f950Hz100ms 9 f950Hz100ms 10 ;
S 50 2 471 f950Hz100ms 11 f950Hz100ms 12 f950Hz100ms 13 f950Hz100ms 14 ;
S 50 2 478 f950Hz100ms 15 f950Hz100ms 16 f950Hz100ms 17 f950Hz100ms 18 ;
S 50 2 288 f950Hz100ms 19 f950Hz100ms 20 f950Hz100ms 21 f950Hz100ms 22 ;
N 200 2 30 f950Hz100ms 23 f950Hz100ms 24 f950Hz100ms 25 f950Hz100ms 26 ;
S 50 2 117 f950Hz100ms 27 f950Hz100ms 28 f950Hz100ms 29 f950Hz100ms 30 ;
S 50 2 177 f950Hz100ms 31 f950Hz100ms 32 f950Hz100ms 33 f1100Hz 1 ;
S 50 2 411 f1100Hz 2 f1100Hz 3 f1100Hz 4 f1100Hz 5 ;
S 50 2 8 f1100Hz 6 f1100Hz 7 f1100Hz 8 f1100Hz 9 ;
S 50 2 22 f1100Hz 10 f1100Hz 11 f1100Hz 12 f1100Hz 13 ;
S 50 2 84 f1100Hz 14 f1100Hz 15 f1100Hz 16 f1100Hz 17 ;
N 200 2 325 f1100Hz 18 f1100Hz 19 f1100Hz 20 f1100Hz 21 ;
S 50 2 366 f1100Hz 22 f1100Hz 23 f1100Hz 24 f1100Hz 25 ;
S 50 2 324 f1100Hz 26 f1100Hz 27 f1100Hz 28 f1100Hz 29 ;
S 50 2 225 f1100Hz 30 f1100Hz 31 f1100Hz 32 f1100Hz 33 ;
T 100 1 274 f800Hz100ms 1 f800Hz100ms 2 f800Hz100ms 3 f700Hz 1 ;
S 50 2 148 f700Hz 2 f700Hz 3 f700Hz 4 f700Hz 5 ;
S 50 2 372 f700Hz 6 f700Hz 7 f700Hz 8 f700Hz 9 ;
S 50 2 94 f700Hz 10 f700Hz 11 f700Hz 12 f700Hz 13 ;
S 50 2 343 f700Hz 14 f700Hz 15 f700Hz 16 f700Hz 17 ;
N 200 2 92 f700Hz 18 f700Hz 19 f700Hz 20 f700Hz 21 ;
S 50 2 184 f700Hz 22 f700Hz 23 f700Hz 24 f700Hz 25 ;
S 50 2 313 f700Hz 26 f700Hz 27 f700Hz 28 f700Hz 29 ;
S 50 2 390 f700Hz 30 f700Hz 31 f700Hz 32 f700Hz 33 ;
S 50 2 41 f900Hz100ms 1 f900Hz100ms 2 f900Hz100ms 3 f900Hz100ms 4 ;
S 50 2 465 f900Hz100ms 5 f900Hz100ms 6 f900Hz100ms 7 f900Hz100ms 8 ;
S 50 2 388 f700Hz 1 f700Hz 2 f700Hz 3 f850Hz100ms 1 ;
S 50 2 243 f850Hz100ms 2 f850Hz100ms 3 f850Hz100ms 4 f850Hz100ms 5 ;
N 200 2 218 f850Hz100ms 6 f850Hz100ms 7 f850Hz100ms 8 f850Hz100ms 9 ;
S 50 2 223 f850Hz100ms 10 f850Hz100ms 11 f850Hz100ms 12 f850Hz100ms 13 ;
S 50 2 153 f850Hz100ms 14 f850Hz100ms 15 f850Hz100ms 16 f850Hz100ms 17 ;
S 50 2 254 f850Hz100ms 18 f850Hz100ms 19 f850Hz100ms 20 f850Hz100ms 21 ;
S 50 2 255 f850Hz100ms 22 f850Hz100ms 23 f850Hz100ms 24 f850Hz100ms 25 ;
N 200 2 409 f850Hz100ms 26 f850Hz100ms 27 f850Hz100ms 28 f850Hz100ms 29 ;
S 50 2 397 f850Hz100ms 30 f850Hz100ms 31 f850Hz100ms 32 f850Hz100ms 33 ;
} ;
trial {
stimulus_event {
picture{ text { caption = "+";
font_size = 28;
font_color = 255,255,255;
};
x = 0; y = 0;
};
time = 2000;
duration = 1000;
port_code = 129;
};
};
|
b8228fa0c2ffd4f0d13eafab06fb37e2d697feaf
|
717ddeb7e700373742c617a95e25a2376565112c
|
/3428/CH23/EX14.23.30/Ex14_23_30.sce
|
157ef4c65964fcf47988ab2754a7cd8f70a75340
|
[] |
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
| 243
|
sce
|
Ex14_23_30.sce
|
//Section-14,Example-2,Page no.-PC.129
//To find the Molarity of given sulphuric acid solution.
clc;
N_T=0.1354
V_T=42.20
V_S=50.00
//N_S=N_H_2SO_4(let) and M_S=M_H_2SO_4
N_S=(N_T*V_T)/V_S
M_S=(N_S/2)
disp(M_S,'Molarity of H_2SO_4')
|
835d4efb8525b1711ebbc7ab5c7d42aa46cf37c8
|
e4fb5d5b74926250f6730bfa3995e52ea55e4dc4
|
/examples/autotrans/autotrans.tst
|
28cf76ef0da5ec686b8d06d6f1deddc2d4d1d811
|
[
"BSD-2-Clause"
] |
permissive
|
maxvonhippel/S3CAMX
|
7629225410eaae455148e7ec0512c9575829b17c
|
03f63f84e6e1e18598edff52a901f669c2fee342
|
refs/heads/master
| 2022-12-07T09:44:14.519479
| 2016-06-21T05:21:27
| 2016-06-21T05:21:27
| 292,167,603
| 0
| 0
| null | 2020-09-02T03:20:25
| 2020-09-02T03:20:24
| null |
UTF-8
|
Scilab
| false
| false
| 2,620
|
tst
|
autotrans.tst
|
inf = float('inf')
# sampling time
delta_t = 0.5
# pvt simulator state required for initializing the simulator
plant_pvt_init_data = None
#############################
# P1: Property Description
#############################
# Time Horizon
T = 30.0
# Rectangular bounds on initial plant states X0[0, :] <= X <= X0[1, :]
# [plant outputs, plant states]
# vehicle speed[output], wheel speed, engine rpm
initial_set = [[0.0, 10.0, 1000.0], [0.0, 10.0, 1000.0]]
# Unsafe Boxed Region
error_set = [[-inf, -inf, 3000.0], [inf, inf, 4000.0]]
# rectangular bounds on exogenous inputs to the contorller. Such as, controller
# disturbance: Throttle, Brake Torque
ci = [[0.0, 0.0],[100.0, 300]]
############################
# Results Scratchpad:
# vio = _/100k took _ mins [plotting, logging?]
# SS = falsified in _ [plotting, logging?]
# grid_eps = <[0.0, 0.0]>
# num_samples = <2>
# SS + symex: falsified in _ [plotting, logging?]
########################
# Abstraction Params
########################
# initial abstraction grid size
grid_eps = [100.0, 5.0, 1000.0]
min_smt_sample_dist = 1.0;
# number of samples at every scatter step
num_samples = 1
# maximum iteration before SS iter outs.
MAX_ITER = 5
# minDist=0.05
########################
# initial controller states which are C ints
# temporalCounter_i1, is_active_c1_shift_controller, is_gear_state, is_active_gear_state,
# is_selection_state, is_active_selection_state
initial_controller_integer_state = [0]*6
# initial controller states which are C doubles
# disturbance[0], disturbance[1], Gear
initial_controller_float_state = [0.0]*3
# number of control inputs to the plant
num_control_inputs = 3
################################
# Unimplemented
################################
# Initial plant discrete state: List all states
initial_discrete_state = [0]
# Rectangularly bounded exogenous inputs to the plant (plant noise).
pi = [[],[]]
# Initial pvt simulator state, associated with with an execution trace.
initial_pvt_states = []
################################
################
# Simulators
################
## Plant ##
# is the plant simulator implemented in Python(python) or Matlab(matlab)?
plant_description = 'matlab'
# relative/absolute path for the simulator file containing sim()
plant_path = 'plant.m'
## Controller ##
# relative/absolute path for the controller .so
controller_path = 'autotrans_controller.so'
# relative path for the directory containing smt2 files for each path
controller_path_dir_path = './paths'
###############
################
# DO NOT MODIFY
################
#CONVERSION_FACTOR = 1.0
refinement_factor = 2.0
|
923acc6fab9c55f39d616399736f5d45e00f2f2f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1592/CH4/EX4.5/example_4_5.sce
|
39d744bfafff34c4b5757e1a71b55abcc8cb147e
|
[] |
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
| 613
|
sce
|
example_4_5.sce
|
//Scilab Code for Example 4.5 of Signals and systems by
//P.Ramakrishna Rao
//x(t)=cos pi*t, |t|>0.5, zero otherwise
clear;
clc;
//Fourier Transform
for f=-20:1:20;
X(f+21)=integrate('cos(%pi*t)*cos(2*%pi*f*t)','t',-0.5,0.5);
end
disp(X,'X(0)-->X(20)');
t=-0.5:0.01:0.5;
q=cos(%pi*t);
a = gca ();
a.y_location ="origin";
a.x_location ="origin";
plot(t,q);
xlabel ( 'Time in Seconds' );
title ('Signal x(t)');
figure(1);
a = gca ();
a.y_location ="origin";
a.x_location ="origin";
f=-20:1:20;
plot (f, X);
xlabel ( 'Frequency in Hz ' );
title ('Continuous Time Fourier Transform X(jW)');
|
87b486cdcc0b9e193fe507e03887421270ccf3c9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/147/CH2/EX2.10/Example2_10.sce
|
d37d6959c9dfda170fc3a26b9da57f469ddf9038
|
[] |
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
| 243
|
sce
|
Example2_10.sce
|
//Resistance R, Voltage V
close();
clear;
clc;
V = 110;//V
//From previous question
Rao = 1.5;//ohm
Rbo = 1;
Rco = 3;
Rcd = 3;
Rth = Rao + Rbo*(Rco+Rcd)/(Rbo+Rco+Rcd);
//For maximum power
Rad = Rth;
mprintf('Rad = %0.2f ohm',Rad);
|
26dc12821ea5f96e9f4877f6879cfcc5026c8c12
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2504/CH12/EX12.4/12_4.sce
|
a0d86c7294b14f674d9d81d41f9b8808da08b15c
|
[] |
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
| 342
|
sce
|
12_4.sce
|
clc
//initialisation of variables
clear
W= 38 //rev/sec
w= 62.4 //lbf/ft^3
m= 2000 //lbm/sec
g= 32.2 //ft/sec^2
ps= 5000 //lbf/ft^2
S3= 4.6
e= 0.91
//CALCULATIONS
S1= W*(w*m^2/(g*ps)^3)^0.25
D= S3*(m^2/(w*g*ps))^0.25
//RESULTS
printf ('S1 = %.3f',S1)
printf ('\n Diameter = %.2f ft',D)
printf ('\n efficiency = %.2f ',e)
|
7ff39cd85342557fbee1ed40f03aeea480908c3b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3515/CH1/EX1.26/Ex_1_26.sce
|
bc111402e7861ec3611f6df0fec1da0a6fd95f61
|
[] |
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
| 701
|
sce
|
Ex_1_26.sce
|
// Exa 1.26
format('v',7);
clc;
clear;
close;
// Given data
// omega_t= Ao*omega_b
// 2*%pi*f_t = Ao*2*%pi*f_b
// f_t= Ao*f_b
// Part (i)
Ao1= 10^5;
f_b1= 10^2;// in Hz
f_t1= Ao1*f_b1;// in Hz
// Part (ii)
Ao2= 10^6;
f_t2= 10^6;// in Hz
f_b2= f_t2/Ao2;// in Hz
// Part (iii)
f_b3= 10^3;// in Hz
f_t3= 10^8;// in Hz
Ao3= f_t3/f_b3;
// Part (iv)
f_b4= 10^-1;// in Hz
f_t4= 10^6;// in Hz
Ao4= f_t4/f_b4;
// Part (v)
Ao5= 2*10^5;
f_b5= 10;// in Hz
f_t5= Ao5*f_b5;// in Hz
disp(f_t1,"The value of f_t1 in Hz is : ")
disp(f_b2,"The value of f_b2 in Hz is : ")
disp(Ao3,"The value of Ao3 is : ")
disp(Ao4,"The value of Ao4 is : ")
disp(f_t5,"The value of f_t5 in Hz is : ")
|
5280270785b7cd25e57d37b4441cbcb9a8459477
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/257/CH13/EX13.21/Example_13_21.sce
|
36cd80e800cf3e77dd97a1f67a91ff6948fd9688
|
[] |
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
| 209
|
sce
|
Example_13_21.sce
|
syms s U
T=(2*s^2+s+5)/(s^3+6*s^2+11*s+4)
disp("state modle is")
A=[0 1 0; 0 0 1; -4 -11 -6]
B=[0;0;1]*U
X=[X1;X2;X3]
C=[5 1 2]
D=0
disp(A*X+B,"[diff(X1);diff(X2);diff(X3)]=")
disp(C*X+D,"and Y = ")
|
08fb6727bea4e414c1c5599cdfaaa81bababaa3a
|
9545443abf3ba785ea80d459f01efa5be8df2087
|
/cfs/apps/fm/test_and_ground/asist/image/FMRENAMESTRESS.TST
|
c366eda2162fdd575d623802b700474919e982e3
|
[
"Apache-2.0",
"NASA-1.3"
] |
permissive
|
anthonyneedles/WISE-HEADACHE-JASH
|
9ab8f1bcd87a45ddc11fc115e512a5b4465e81e3
|
28199218a8855db88adc43c3daa4a5a832571012
|
refs/heads/master
| 2023-07-15T04:26:19.817108
| 2020-08-18T01:34:00
| 2020-08-18T01:34:00
| 272,212,651
| 2
| 1
|
Apache-2.0
| 2021-09-02T03:58:33
| 2020-06-14T13:57:03
|
C
|
UTF-8
|
Scilab
| false
| false
| 1,257
|
tst
|
FMRENAMESTRESS.TST
|
This is the test file for the fm_filerename_stress test
Garbage to follow...
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
|
a56a99adee7dd43492bb21a97abfc4de01775aad
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1073/CH3/EX3.2/3_2.sce
|
d84452ac54d7ffb3e15065eb8cfa5c0555ef231f
|
[] |
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
| 460
|
sce
|
3_2.sce
|
clc;
clear;
//Example3.2
//Given
mu=15*10^-6 //sq m /s
v=2 //m/s
L=2 //[m] length of plate
Nre_x=3*10^5
xc=Nre_x*mu/v //critical length at whihc the transition takes place
//Since xc is less than 2 m.Therefore the flow is laminar
//at any distance x,.it is calculated from
//del/x=4.64/(sqrt(NRe,x))
//At x=L=2 m
Nre_l=v*L/mu
del_l=4.64*L/sqrt(Nre_l)
del_l=del_l*1000 //[mm]
printf("Boundary layerthickness at the trailing edge is %f mm",del_l);
|
3e8a7ead468330a554284916043b970c5394a5d6
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3872/CH4/EX4.3/Ex4_3.sce
|
41173d8d46314fbc37d6d71d2787c614f677337c
|
[] |
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,176
|
sce
|
Ex4_3.sce
|
// Book - Power System: Analysis & Design 5th Edition
// Authors - J. Duncan Glover, Mulukutla S. Sharma, Thomas J. Overbye
// Chapter - 4 : Example 4.3
// Scilab Version 6.0.0 : OS - Windows
clc;
clear;
f = 60; // Single Phase line operating fruquency in Hz
S = 12; // Strand Copper conductors
Dxy = 5; // Geometrical Mean Distance between conductor centers in ft
Dxx =0.01750; // Geometrical Mean Radiance of Copper Conductor in feet from Table A.3
Dyy = Dxx;
l = 20; // Line length in miles
Lx = (2*10^-7)*log(Dxy/Dxx)*1609*l; // Line Inductance in Henry per conductor
Ly = Lx;
L = Lx+Ly; // Total Inductance in Henry per Circuit
Xl = (2*%pi*f*L); // Total Inductive Reactance in Ohm per circuit
printf('Line Inductance is (Lx) = %f H per conductor',Lx);
printf('\nTotal Inductance is (L) = %0.5f H per circuit',L);
printf('\nTotal Inductive Reactance is (Xl) = %0.2f Ohm per circuit',Xl);
|
1963f0cdf3ddc4fe396579df6cd2ccdc96aef353
|
b9117a375dfd4994834bffe24f28414f4599c02e
|
/test/parse_right_nullable.tst
|
b6266c1d887d7e7a30e90a23e28778a6cf0bbbc4
|
[] |
no_license
|
mdolgun/NLPParser
|
2a7e1ab5f820c902ecb7ecd05a90a9caca7fb4bf
|
54d8494a8799efb94ff0dfa21c8c46292dd9cb22
|
refs/heads/master
| 2021-07-16T08:32:55.973580
| 2020-10-17T20:28:51
| 2020-10-17T20:28:51
| 218,727,320
| 2
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 164
|
tst
|
parse_right_nullable.tst
|
###grammar
S -> a B C
B -> b
B ->
C -> c
C ->
###input
a
###pformat
S(
a
B()
C()
)
###pformat_ext
S(
#1
a
B(
#3
)
C(
#5
)
)
|
1273333ab69d0e732af33f30a2fd0daa0341c073
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1382/CH7/EX7.16/EX_7_16.sce
|
af65c24e5c0449d140db326e093a6fe4965358b1
|
[] |
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
| 646
|
sce
|
EX_7_16.sce
|
// Example 7.16:oscillation frequency
clc;
clear;
close;
C1=120;//capacitance of tunned circuit in PICO farad
C2=1500;//capacitance of tunned circuit in pico farad
C3=15;//capacitance of tunned circuit in pico farad
Cx=(C1*C2)/(C1+C2);//capacitance in pico farad
Ct=(Cx*C3)/(Cx+C3);//total capacitance in pico farad
L=10;//INDUCTANCE of tunned circuit in micro henry
fo=(1/(2*%pi*sqrt(L*10^-6*Ct*10^-12)))*10^-6;//tunned frequency in mega hertz
foa= (1/(2*%pi*sqrt(L*10^-6*C3*10^-12)))*10^-6;//actual resonant frequency in mega hertz
disp(fo,"tunned frequency in killo mega is")
disp(foa,"actual resonant frequency in mega hertz")
|
d01508a7ffe96f5483c0c57da1c6f53535b45978
|
1897ae5489b64fae9aa083d62f51254cfe52d26f
|
/III semester/numerical-algorithms/labovi/LV1/vjezba1.sce
|
d0ea129fd06b438ceae9f68353d2362e6e2a86b0
|
[
"Unlicense",
"LicenseRef-scancode-proprietary-license"
] |
permissive
|
MasovicHaris/etf-alles
|
f1bfe40cab2de06a26ceb46bdb5c47de2e6db73e
|
0ab1ad83d00fafc69b38266edd875bce08c1fc9e
|
refs/heads/main
| 2022-01-01T18:22:54.072030
| 2021-12-22T09:05:05
| 2021-12-22T09:05:05
| 138,169,714
| 9
| 15
|
Unlicense
| 2020-03-29T23:36:50
| 2018-06-21T12:50:51
|
C++
|
UTF-8
|
Scilab
| false
| false
| 1,564
|
sce
|
vjezba1.sce
|
clc
mode(1)
pause
//Zadatak 1
//a
3*456/23+31.54+2^6
//b
sqrt(2)*log(10)
//c
cos(%pi/3)+sin(%pi/2)*exp(3)
//d
atan(5)+log10(20)
pause
//Zadatak 2
//a
zeros(5,9)
//b
ones(7,2)
//c
eye(5,5)
//d
A=[1, -4*%i, sqrt(2); log(-1), sin(%pi/2), cos(%pi/3);asin(0.5), acos(0.8),exp(0.8)]
pause
//Zadatak 3
//a
A.'
//b
A'
//c
A-A.'
//d
A*A.'
A.'*A
//e
det(A)
sum(A)
sum(A,1)
sum(A,2)
pause
//Zadatak 4
//a
A(2,:)
//b
A(:,3)
//c
A(2,3)
//d
B=A(1:2,2:3)
pause
//Zadatak 5
a=[ones(1,3);3*ones(1,3);2*ones(1,3)]
b=[9:-1:7;6:-1:4;3:-1:1]
//a
c=cos(b)
//b
c=sin(b).*cos(a)
//c
c=b^(1/5)
//d
c=a.^(1/3)
pause
//Zadatak 6
//a
a=1:50
//b
b=49:-1:0
//c
c=0:5:45
pause
//Zadatak 7
//a
x=-%pi:%pi/50:%pi;
y=cos(x);
plot(x,y)
pause
clf
//b
x=linspace(1,7,100);
y=sin(1 ./ x);
plot(x,y,'k')
pause
//c
y= sin(2*x);
plot(x,y,'bo')
pause
clf
//Zadatak 8
x=linspace(-8,8,100);
y=linspace(-8,8,100);
[X,Y]=meshgrid(x,y);
Z=X.^2+Y.^2;
surf(X,Y,Z);
pause
//Zadatak 9
//a
function [zbir,razlika] = Rezultat(x,y)
zbir=x+y;
razlika=x-y;
endfunction
//Primjer
[z,r]=Rezultat(5,3)
pause
//b
function [s] = Suma (A)
s=0;
for i=1:size(A,'r')
for j=1:size(A,'c')
s=s+A(i,j);
end;
end;
endfunction
//Primjer
Suma(A)
pause
//Zadatak 10
//a
function [] = z10a(s)
x=linspace(-2,2,100);
y=evstr(s);
subplot(1,2,1);
plot(x,y,'b');
subplot(1,2,2);
plot(x,y,'k+');
endfunction
z10a('x^2')
pause
clf
//b
function [] = z10b(s)
X=linspace(-4,4,100);
Y=linspace(-4,4,100);
[x,y]=meshgrid(X,Y);
z=evstr(s)
surf(x,y,z);
endfunction
z10b('x.^2+y.^2')
|
0a5d758139fddb485d1050b4c49ecb317ab07159
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1388/CH2/EX2.5/2_5.sce
|
64b5ef8cf41c88ce16f13cae004ea7cb4e800ae2
|
[] |
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
| 250
|
sce
|
2_5.sce
|
clc
//initialisation of variables
M= 38.3 //mg cm^-1
d= 13.55 //g cm^-3
p= 0.9982 //g cm^-3
g= 980.7 //cm/sec^2
l= 4.96 //cm
//CALCULATIONS
r= sqrt(M*10^-3/(d*%pi))
R= r*p*g*l/2
//RESULTS
printf (' surface tension = %.1f ergs cm^-2 ',R)
|
d84030b42961dcd25f8c006806c3cd5983ad6607
|
8781912fe931b72e88f06cb03f2a6e1e617f37fe
|
/scilab/sci2vtk/savevtk_xyv.sci
|
d1cc01b1cb5d8eb612a5cb0f37030c840c9e1698
|
[] |
no_license
|
mikeg2105/matlab-old
|
fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e
|
eac168097f9060b4787ee17e3a97f2099f8182c1
|
refs/heads/master
| 2021-05-01T07:58:19.274277
| 2018-02-11T22:09:18
| 2018-02-11T22:09:18
| 121,167,118
| 1
| 0
| null | null | null | null |
WINDOWS-1252
|
Scilab
| false
| false
| 1,911
|
sci
|
savevtk_xyv.sci
|
function [fd,err]=savevtk_xyv(x,y,vx,vy,VarName)
// Save Sci variables in VTK format
// x is a list of points
// y is a list of values in the x points
// VarName is the Variable Name
// Example:
//
// mtst=[11 12 13 14; 21 22 23 24];
// [sy,sx]=size(mtst);
// savevtk_xyv(1:sx,1:sy,mtst,mtst,'2DVectors');
//
// Coded by Sebastian Jardi Estadella
// http://www.tinet.org/~sje/index_en.htm
//
// rotates the matrix -90 º.
vx=vx';
vy=vy';
nx=length(x);
ny=length(y);
[nfvx,ncvx]=size(vx); // number for rows and columns
[nfvy,ncvy]=size(vy);
if nx<>ncvx then
disp('length(x) and ncvx have to be equals.');
disp(nx);
disp(ncvx);
abort;
end
if nx<>ncvy then
disp('length(x) and ncvy have to be equals.');
disp(nx);
disp(ncvy);
abort;
end
if ny<>nfvx then
disp('length(x) and nfvx have to be equals.');
disp(ny);
disp(nfvx);
abort;
end
if ny<>nfvy then
disp('length(x) and nfvy have to be equals.');
disp(ny);
disp(nfvy);
abort;
end
filename=sprintf('%s.vtk',VarName);
mputl('# vtk DataFile Version 2.0',filename); // Delete previous content in filename
[fd,err]=mopen(filename, 'a'); // Opens the file to Append.
mfprintf(fd,'Structured Grid\n');
mfprintf(fd,'ASCII\n');
mfprintf(fd,'\n');
mfprintf(fd,'DATASET RECTILINEAR_GRID\n');
mfprintf(fd,'DIMENSIONS %d %d %d\n',nx,ny,1); //??
mfprintf(fd,'X_COORDINATES %d double\n',nx);
for i=1:nx
mfprintf(fd,'%f\n',x(i));
end
mfprintf(fd,'\n');
mfprintf(fd,'Y_COORDINATES %d double\n',ny);
for i=1:ny
mfprintf(fd,'%f\n',y(i));
end
mfprintf(fd,'\n');
mfprintf(fd,'Z_COORDINATES 1 double\n');
mfprintf(fd,'0 \n');
mfprintf(fd,'\n');
mfprintf(fd,'POINT_DATA %d\n',nx*ny);
mfprintf(fd,'VECTORS ');
mfprintf(fd,VarName);
mfprintf(fd,' double\n');
for i_f=1:nfvx
for i_c=1:ncvx
mfprintf(fd,'%f %f 0.0\n',vx(i_f,i_c),vy(i_f,i_c));
end
end
mfprintf(fd,'\n');
err=mclose(fd);
endfunction
|
1fda164d44bc7d6e853d98c4bb5ddc7d61381681
|
a62e0da056102916ac0fe63d8475e3c4114f86b1
|
/set14/s_Material_Science_V._Rajendran_1826.zip/Material_Science_V._Rajendran_1826/CH11/EX11.3/ex11_3.sce
|
89c822e6954ad78b4cd2a5bc16b75d9d68a14ad1
|
[] |
no_license
|
hohiroki/Scilab_TBC
|
cb11e171e47a6cf15dad6594726c14443b23d512
|
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
|
refs/heads/master
| 2021-01-18T02:07:29.200029
| 2016-04-29T07:01:39
| 2016-04-29T07:01:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 148
|
sce
|
ex11_3.sce
|
errcatch(-1,"stop");mode(2);// Example 11.3, page no-332
ts=937//MPa
bhn=ts/3.45
printf("The Brinell Hardness Number is %.2f",bhn)
exit();
|
13cae3a743dcb1e21705a79ceb22b5bab6dd378e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3504/CH2/EX2.6/Ex2_6.sce
|
a1f30d3b136835139eac57b049e40201c4455343
|
[] |
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
| 676
|
sce
|
Ex2_6.sce
|
//To find the voltage V_0 in the given circuit.
clc;
R=30
Z=[31 -13 0 0 0 -10 0 0 0;-13 35 -9 0 -11 0 0 0 0;0 -9 31 -10 0 0 0 0 0;0 0 -10 79 -30 0 0 0 -9;0 -11 0 -30 53 -7 0 -5 0;-10 0 0 0 -7 47 -30 0 0;0 0 0 0 0 -30 41 0 0;0 0 0 0 -5 0 0 27 -2;0 0 0 -9 0 0 0 -2 29]
D=det(Z)
Z_4=[31 -13 0 -15 0 -10 0 0 0;-13 35 -9 27 -11 0 0 0 0;0 -9 31 -23 0 0 0 0 0;0 0 -10 0 -30 0 0 0 -9;0 -11 0 -20 53 -7 0 -5 0;-10 0 0 12 -7 47 -30 0 0;0 0 0 -7 0 -30 41 0 0;0 0 0 7 -5 0 0 27 -2;0 0 0 -10 0 0 0 -2 29]
D_4=det(Z_4)
i_4=D_4/D //Current(A)
V_0=R*i_4
disp(V_0,'Required voltage(V)')
//Negative sign indicates opposite direction of current.
//Answer in the book is wrong.
|
cde4f0f49de90c18e5da5dca6d2aa2e02818c503
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3773/CH2/EX2.1/Ex2_1.sce
|
2c8cf1bd3b2c89931d832526e7f1b9aa5b90502c
|
[] |
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
| 344
|
sce
|
Ex2_1.sce
|
//Chapter 2: Antenna Basics
//Example 2-3.1
clc;
//Variable Initialization
e_half_power = 1/sqrt(2) //E(theta) at half power (relative quantity)
//Calculation
theta = acos(sqrt(e_half_power)) // theta (radians)
hpbw = 2*theta*180/%pi // Half power beamwidth (degrees)
//Result
mprintf("The Half Power Beamwidth is %.0f degrees",hpbw)
|
07f198584867efdb923cd10599bfdc7dd31c8cdd
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3838/CH2/EX2.3.C/EX2_3_c.sce
|
77d02850cf720580b29f3365623f6310eea15eed
|
[] |
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_3_c.sce
|
clc;
t=-12:0.01:12
x=sin(2*t)+cos(t)+0.5*(sin(3*t)-sin(t))
h=-sin(2*t)+cos(t)-0.5*(sin(3*t)-sin(t))
e=cos(t)//(x+h)/2
o=(x-h)/2//sin(t)+0.5*(sin(3*t)-sin(t))
subplot(3,1,1)
plot(t,e)
xtitle('even signal')
subplot(3,1,2)
plot(t,o)
xtitle('odd signal')
|
f54b320baa690391d0f3fcbc6026885546e63eda
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2873/CH5/EX5.9/Ex5_9.sce
|
dadfbfe8313a32580ef2f85ca7712e0e6c4883ed
|
[] |
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,348
|
sce
|
Ex5_9.sce
|
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh Chapter 5 Example 9")
T1=500;//temperature of system in K
T2=300;//temperature of reservoir in K
disp("system and reservoir can be treated as source and sink.device thought of can be a carnot engine operating between these two limits.maximum heat available from system shall be the heat rejected till its temperature drops from 500 K to 300 K")
disp("therefore,maximum heat(Q1)=(C*dT)in J")
disp("here C=0.05*T^2+0.10*T+0.085 in J/K")
disp("so Q1=(0.05*T^2+0.10*T+0.085)*dT")
function y = f(T), y = (0.05*T^2+0.10*T+0.085), endfunction
Q1 = intg(T1, T2, f)
Q1=-Q1
disp("entropy change of system,deltaS_system=C*dT/T in J/K")
disp("so deltaS_system=(0.05*T^2+0.10*T+0.085)*dT/T")
function y = k(T), y = (0.05*T^2+0.10*T+0.085)/T, endfunction
deltaS_system = intg(T1, T2, k)
disp("deltaS_reservoir=Q2/T2=(Q1-W)/T2")
disp("also,we know from entropy principle,deltaS_universe is greater than equal to 0")
disp("deltaS_universe=deltaS_system+deltaS_reservoir")
disp("thus,upon substituting,deltaS_system+deltaS_reservoir is greater than equal to 0")
disp("W is less than or equal to(Q1+deltaS_system*T2)/1000 in KJ")
W=(Q1+deltaS_system*T2)/1000
disp("hence maximum work=W in KJ")
W
|
64b6a1811f02bbf650aa2c9346a3b9f9445ebfdb
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1985/CH16/EX16.2/Chapter16_example2.sce
|
7e40ad7d3457a05fa1c12b32ddd9039bf2f559ae
|
[] |
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
| 652
|
sce
|
Chapter16_example2.sce
|
clc
clear
//Input data
T1=(50+273)//Initial temperature of the liquid in K
M1=0.1//Mass of water in kg
T2=(40+273)//Final temperature of the liquid in K
t1=(5*60)//Time taken by the water to cool from 50 degrees C to 40 degrees C
M2=0.085//Mass of the liquid in kg
M=0.1//Mass of the calorimeter in kg
t2=(2*60)//Time taken by the liquid to cool from 50 degrees C to 40 degrees C
S=385//Specific heat of the calorimeter in J/kg.K
S1=4190//Specific heat of the water in J/kg.K
//Calculations
S2=(((M1*S1+M*S)*(t2/t1))-(M*S))/M2//Specific heat of the liquid in J/kg.K
//Output
printf('Specific heat of the liquid is %3.0f J/kg.K',S2)
|
46db4dca0e735ea1b5344cabc8a8b7f8fc705c05
|
f8bb2d5287f73944d0ae4a8ddb85a18b420ce288
|
/Scilab/Control/SlidingMode/eventual.sce
|
6619b899f3f624318b6a03e65b454947e3d60081
|
[] |
no_license
|
nishizumi-lab/sample
|
1a2eb3baf0139e9db99b0c515ac618eb2ed65ad2
|
fcdf07eb6d5c9ad9c6f5ea539046c334afffe8d2
|
refs/heads/master
| 2023-08-22T15:52:04.998574
| 2023-08-20T04:09:08
| 2023-08-20T04:09:08
| 248,222,555
| 8
| 20
| null | 2023-02-02T09:03:50
| 2020-03-18T12:14:34
|
C
|
UTF-8
|
Scilab
| false
| false
| 1,915
|
sce
|
eventual.sce
|
// 最終スライディングモード制御
L=[1 0; 0 1]; // 入力行列(アクチュエータに加わる力を表す行列)
k=10; //到達則のスカラ関数
m1=1; m2=1; //質量
k1=1; k2=2; //ばね定数
d1=1; d2=2; //減衰定数
M=[m1 0; 0 m2]; //
K = [k1 -k1; -k1 k1+k2];
D = [d1 -d1; -d1 d1+d2];
AF = [zeros(2,2) eye(2,2); -M*K -M*D];
BF = [zeros(2,2); L ];
// 平滑関数のパラメータ(チャタリング除去用)
P=4;
Q=1;
// 切換超平面Sの定義(極配置法で設計済)
S1=[4 0; 0 3];
S2=[eye(2,2)];
S = [S1 S2]; //切換超平面
// コンソールでフィードバックゲインの値を確認
F={L*inv(S*BF)*S*AF};
// 離散化
h = 0.02; // サンプリング時間
cont = syslin('c',AF,BF,S);
disc = dscr(cont,h);
[A,B,Sd] = abcd(disc);
// 初期値
X=[0.5 1.0 1.5 2.0]';
// シミュレーションループ
lines(0);
for i = 1:250;
// 外乱パラメータ
w=1;t=i;
// SMCの切換関数・制御入力・状態方程式
sigma = S*X;
U = -inv(S*BF)*{(S*AF*X)+Q*sign(sigma)+P*sigma};//等価制御入力
dX =A*X+B*U;//+[0; 0; 1 ; 1 ]*0.1*sin(w*t); //状態方程式
// データ格納
Xh1(:,i) = X;
Uh1(:,i) = U;
Sh1(:,i) = sigma;
X = dX;
end
// プロット
clf()
tt =0:h:(i-1)*h;
// グラフ描画
// 制御入力(第1象限)
subplot(222),plot(tt,Uh1(1,:),tt,Uh1(2,:)),xgrid(2)
title('制御入力')
xlabel('Time [s]')
ylabel('Control Input [N]')
// 状態変数(第2象限)
subplot(221),plot(tt,Xh1(1,:),tt,Xh1(2,:),tt,Xh1(3,:),tt,Xh1(4,:)),xgrid(2)
title('状態変数')
xlabel('Time [s]')
ylabel('Displacement [m]')
// 切換関数(第3象限)
subplot(223),plot(tt,Sh1),xgrid(2)
title('切換関数')
xlabel('Time [s]')
ylabel('Swiching Function')
// 位相平面(第4象限)
subplot(224),plot(Xh1(1,:),Xh1(3,:),Xh1(2,:),Xh1(4,:)),xgrid(2)
title('位相平面')
xlabel('x1')
ylabel('x2')
|
2c5334de9c328407dc8f31b33d797cd73472fa7c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/446/CH1/EX1.1/1_1.sce
|
e4e69c1decf043e1801b604d556ce3970ad9d633
|
[] |
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
| 452
|
sce
|
1_1.sce
|
clear
clc
disp('Exa-1.1');
Mn=1.008665;Mp=1.007276 //Given mass of an electron and a proton in terms of u
Md= Mn-Mp; //mass difference
printf('Mass difference in terms of U is %f ',Md);
Md=Md*931.50; //converting u into Mev/c^2 by multiplying by 931.5 MeV/c^2
printf('which equals %.3f Mev/c^2.',Md);
|
f4473ab4c1f8fecb2acb8ba7b99bd8ebe04118a8
|
9b046504c3b7683d3bfa294fe100408058e75aa3
|
/Metodos/Clase7/ejemplos/derivacion/2DiferenciasFinitasAltoOrden.sce
|
3af6a6c37778c28ecd30fc435e61dadad521568d
|
[] |
no_license
|
DavidAlex99/Cursos
|
f15cb4f4fbb35a6eb62cbae0a9b51ea671f3ea8f
|
aee547ab09db7e535bea5a6d41ed6e455f8a9a89
|
refs/heads/master
| 2023-01-08T02:46:07.502656
| 2020-11-14T00:45:57
| 2020-11-14T00:45:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,342
|
sce
|
2DiferenciasFinitasAltoOrden.sce
|
clc()
clear all
function [diferenciaAdelante, diferenciaAtras, diferenciaCentrada]=diferenciasFinitasSegundoOrden(h,x,funcion)
xanterior = x - h
xanterioranterior = x - 2*h
xposterior = x+h
xposteriorposterior = x + 2*h
fxanterioranterior = horner(funcion,xanterioranterior)
fxanterior = horner(funcion,xanterior)
fx = horner(funcion,x)
fxposterior = horner(funcion,xposterior)
fxposteriorposterior = horner(funcion,xposteriorposterior)
diferenciaAdelante = (-fxposteriorposterior+4*fxposterior-3*fx)/(2*h)
diferenciaAtras = (3*fx-4*fxanterior+fxanterioranterior)/(2*h)
diferenciaCentrada = (-fxposteriorposterior+8*fxposterior-8*fxanterior+fxanterioranterior)/(12*h)
endfunction
//Definir función
x = %s;
f = -0.1*x^4-0.15*x^3-0.5*x^2-0.25*x+1.2;
x0 = 0.5
//Evaluar derivada
df = derivat(f);
h = 0.25
disp("derivada exacta")
derivada = horner(df,x0)
disp(derivada)
[diffAdelante, diffAtras, diffCentrada] = diferenciasFinitasSegundoOrden(h,x0,f)
disp("Diferencia adelante")
disp(diffAdelante)
disp("error")
disp((derivada-diffAdelante)*100/derivada)
disp("Diferencia atrás")
disp(diffAtras)
disp("error")
disp((derivada-diffAtras)*100/derivada)
disp("Diferencia centrada")
disp(diffCentrada)
disp("error")
disp((derivada-diffCentrada)*100/derivada)
|
b9cb16adf55f3c59880cf866884f6811badbffd9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3774/CH4/EX4.21/Ex4_21.sce
|
fcf97e794c0ca4ab8f60a2ef17714744320f146a
|
[] |
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
| 505
|
sce
|
Ex4_21.sce
|
// exa 4.21 Pg 126
clc;clear;close;
// Given Data
// Hole -
d=25;//mm
w=150;//mm
Kt=2.56;// stress concentration factor
P=50;// kN
sigma_max=100;// N/mm.sq
t=Kt*P*1000/(w-d)/sigma_max;// mm
printf('Calculating for hole - \n thickness is : %.2f mm',t)
// Notch -
d=30;//mm
w=120;//mm
w=150;//mm
Kt=2.3;// stress concentration factor
P=50;// kN
sigma_max=100;// N/mm.sq
t=Kt*P*1000/(w-d)/sigma_max;// mm
printf('\n Calculating for notch - \n thickness is : %.2f mm',t)
disp('Suggestion, Adopt t = 11 mm')
|
cb657111fe638d3dcb66d87c6abef4ef57e0fb60
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/752/CH9/EX9.6/9_6.sce
|
90ee7ed7dc49293add9e2b7318d868227d0f2397
|
[] |
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
|
9_6.sce
|
clc;
// page no 358
// prob no 9.6
m=21;
// The correct number of check bits is the smallest number that satisfy the equation 2^n >= m+n+1;
for n=1:1:10 // we choose range of 1 to 10
a=m+n+1;
b=2^n;
if(b>=a)
disp(n,'hammming bits are required')
break;
end
end
|
0e33019a19681e583c015b477250448e2b014be4
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1757/CH11/EX11.6/EX11_6.sce
|
bcdeb8d069b17520802a0b6c3dbfe36c0b8160f0
|
[] |
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,809
|
sce
|
EX11_6.sce
|
//Example11.6 // determine the analog output voltage and feed back current If
clc;
clear;
close;
Vref = 12 ;
BI = 1001 ; BI = 1101 ; BI = 1010 ; BI = 0011 ;
Rf = 25 ; // K ohm
R = 0.25*Rf ;
// The output voltage of given binary weighted resistor D/A converter is defined as
// Vo = -(Rf*Vref/R)*(2^0*b0+2^-1*b1+2^-2*b2+2^-3*b3) ;
// Vo = -(Rf*Vref/R)*(b0+2^-1*b1+2^-2*b2+2^-3*b3) ;
// for the given value Rf,R and Vref the output voltage
// Vo = -60*(b0+2^-1*b1+2^-2*b2+2^-3*b3) ;
// for the binary input 1001 analog output is
b3 = 1 ;
b2 = 0 ;
b1 = 0 ;
b0 = 1 ;
Vo = -60*(b0+2^-1*b1+2^-2*b2+2^-3*b3) ;
disp('for the binary input 1001 analog output is = '+string(Vo)+ ' V ');
// the feedback current If is given by
If = -(Vo/Rf) ;
disp('the feedback current If is = '+string(If)+ ' mA ');
// for the binary input 1101 analog output is
b3 = 1 ;
b2 = 1 ;
b1 = 0 ;
b0 = 1 ;
Vo = -60*(b0+2^-1*b1+2^-2*b2+2^-3*b3) ;
disp('for the binary input 1101 analog output is = '+string(Vo)+ ' V ');
// the feedback current If is given by
If = -(Vo/Rf) ;
disp('the feedback current If is = '+string(If)+ ' mA ');
// for the binary input 1010 analog output is
b3 = 1 ;
b2 = 0 ;
b1 = 1 ;
b0 = 0 ;
Vo = -60*(b0+2^-1*b1+2^-2*b2+2^-3*b3) ;
disp('for the binary input 1010 analog output is = '+string(Vo)+ ' V ');
// the feedback current If is given by
If = -(Vo/Rf) ;
disp('the feedback current If is = '+string(If)+ ' mA ');
// for the binary input 0011 analog output is
b3 = 0 ;
b2 = 0 ;
b1 = 1 ;
b0 = 1 ;
Vo = -60*(b0+2^-1*b1+2^-2*b2+2^-3*b3) ;
disp('for the binary input 0011 analog output is = '+string(Vo)+ ' V ');
// the feedback current If is given by
If = -(Vo/Rf) ;
disp('the feedback current If is = '+string(If)+ ' mA ');
|
e1982536c656f718f06b3759b08e1aa50d936e8f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3588/CH7/EX7.7/EX7_7.sce
|
08d49fea8efd462ebe6ecb53fac38f776b464fc4
|
[] |
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
| 620
|
sce
|
EX7_7.sce
|
//Clearing console
clc
clear
//Intializing variables
h = 50
a = 0.5/12
b = 0.5/12
t = 0.5/12
Ta = 68
A = 4*a*b
T =[180.000000;180.000000;180.000000;106.528061;111.987760;106.528061;89.057755;90.986763;89.057755]
T3 = [T(5,1);T(8,1);T(9,1);T(6,1)]
//convective heat flow rate for element 3 due to different surfaces
I1 = (2*h*A)*(((T3(1,1)+T3(2,1)+T3(3,1)+T3(4,1))/4)-Ta)
I2 = 2*h*t*b*(((T3(2,1)+T3(3,1))/2)-Ta)
I3 = 2*h*t*b*(((T3(3,1)+T3(4,1))/2)-Ta)
//The total convective heat flow rate for element 3
H = I1+I2+I3
printf('\nResults\n')
printf('\nThe total convective heat flow rate for element 3\nH=%fBtu/hr',H)
|
052e60b2c87633fb001a75d485f4d3afc24f1436
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2321/CH10/EX10.5.3/EX10_5_3.sce
|
f0d16fffb67bb7ff9178ca72f18ea748774b02b3
|
[] |
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,375
|
sce
|
EX10_5_3.sce
|
//Example No. 10.5.3
clc;
clear;
close;
format('v',6);
HPBW=39;//degree(HPBW)
alfa=12.5;//degree(Pitch angle)
f=475;//MHz(Frequency)
c=3*10^8;//m/s(Speed of light)
lambda=c/(f*10^6);//m(Wavelength)
C=lambda;//m(Circumference)
disp("Part (i)");
//it is in axial mode as 3/4*lambda<C<4/3*lambda
S=C*tand(alfa);//meter(Spacing)
N=52^2/HPBW^2/(S/lambda)/(C/lambda)^2;//turns
disp(round(N),"Number of turns : ");
disp("Part (ii)");
N=round(N);//turns
Do=15*(C/lambda)^2*N*(S/lambda);//unitless(Directivity)
Do_dB=10*log10(Do);//dB(Directivity)
disp(Do_dB,"Directivity in decibels : ");
disp("Part (iii)");
AR=(2*N+1)/2/N;//axial ratio
disp(AR,"Axial ratio : ");
disp("Part (iv)");
//3/4*lambda<C<4/3*lambda
lambda1=C/(3/4);//meter(Wavelength)
lambda2=C/(4/3);//meter(Wavelength)
f1=c/lambda1;//Hz(Frequency)
f2=c/lambda2;//Hz(Frequency)
disp("Frequency range is "+string(f1/10^6)+" MHz to "+string(f2/10^6)+" MHz.")
disp("Part (v)");
//At design frequency
Rin=140*C/lambda;//Ω(Input impedence)
disp(Rin,"At design frequency, Input impedence in Ω is : ");
//3/4*lambda<C<4/3*lambda
//At high frequency end
Rin=140*C/lambda2;//Ω(Input impedence)
disp(Rin,"At high frequency end, Input impedence in Ω is : ");
//At low frequency end
Rin=140*C/lambda1;//Ω(Input impedence)
disp(Rin,"At low frequency end, Input impedence in Ω is : ");
|
74873c4e72406947f354a838e5d2adfdc7eef007
|
964a1ce44b6391e555c0e2aeff6c55dda847d718
|
/Mini Compiler for LaTeX/test result/projp1_res.tst
|
8c161c735aef7390bc8e6e2b72910c20a51ac68e
|
[] |
no_license
|
kennethwty/mini-compiler-latex
|
6c165567298c216d39a806fa7cc05ed67f1babfc
|
d1b99a4fbbac906bf61242a977886578e1eb3594
|
refs/heads/master
| 2021-09-28T10:08:02.927880
| 2018-11-16T17:45:46
| 2018-11-16T17:45:46
| 104,703,352
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 832
|
tst
|
projp1_res.tst
|
1. Design and develop a contex free grammar CFG for a subset of Latex.
2. Design, implement, and test the common CFG which I will provide to you at a later date using Lex Flex and Yacc Bison .
3. Design, implement, and test a syntax directed translator based on part 2 that automatically generates formatted ASCII text from an input Latex source file.
- Design a CFG for the project that allows Latex programs e.g., text to be formatted to be recognized. This will provide you with important language design experience.
- Calculate FIRST and FOLLOW for the non terminals listed below
T^H_ h^H_ i^H_ s^H_ ^H_ i^H_ s^H_ ^H_ a^H_ ^H_ d^H_ e^H_ s^H_ i^H_ g^H_ n^H_ ^H_ p^H_ r^H_ o^H_ j^H_ e^H_ c^H_ t^H_ !^H_ !^H_ !^H_ ^@^H_
demurjs CSE244 SP94
|
718e4a739381561bb1a74349c21965124229d59e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3293/CH2/EX2.19/Ex2_19.sce
|
002acfa84688aaee25d3dfc1ffe68ec3f41ffc7b
|
[] |
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
| 797
|
sce
|
Ex2_19.sce
|
//page 53
//Example 2.19
clear;
clc;
close;
disp('P = ');
disp('cos(thetha) -sin(thetha)');
disp('sin(thetha) cos(thetha)');
disp('Inverse(P) = ');
disp('cos(thetha) sin(thetha)');
disp('-sin(thetha) cos(thetha)');
disp('where, thetha is some real number');
disp('The basis for R^2 (B'') is the set consisting of vectors (cos(thetha) , sin(thetha)) and (-sin(thetha) , cos(thetha))');
disp('This basis may be obtained by rotating the standard basis by angle thetha');
disp('a = [x1 x2]');
disp('[a]B'' = ');
disp('|cos(thetha) sin(thetha)| * |x1|');
disp('|-sin(thetha) cos(thetha)| |x2|');
disp('or');
disp('x1'' = x1*cos(thetha) + x2*sin(thetha)');
disp('x2'' = -x1*sin(thetha) + x2*cos(thetha)');
//end
|
66dab61ee4501580e7c11d8ccdebae55b72efc13
|
8781912fe931b72e88f06cb03f2a6e1e617f37fe
|
/scilab/plasma/plotbfield3.sce
|
f921c110eda304535d91661a7c8e4c5be9599759
|
[] |
no_license
|
mikeg2105/matlab-old
|
fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e
|
eac168097f9060b4787ee17e3a97f2099f8182c1
|
refs/heads/master
| 2021-05-01T07:58:19.274277
| 2018-02-11T22:09:18
| 2018-02-11T22:09:18
| 121,167,118
| 1
| 0
| null | null | null | null |
WINDOWS-1250
|
Scilab
| false
| false
| 7,271
|
sce
|
plotbfield3.sce
|
//Script to model influence of uniform e and b field
//on charged particle motion
exec('lorentz.sce');
exec('bfield.sce');
m=1.6*(10^(-27));
q=1.6*(10^(-19));
dt=5.0*(10^(-9));
it=1:1:1000;
//plotid=evstr(x_dialog('plotid ?','1'));;
//text=x_dialog('Title?','current');
plotid=1;
text='current';
r=zeros(3,1);
v=zeros(3,1);
partheight=100*(10^3);
parttheta=0;
partphi=%pi*5/180;
rearth=6378.0*(10^3);
r(1,1)=(partheight+rearth)*cos(parttheta)*sin(partphi);
r(2,1)=(partheight+rearth)*sin(parttheta)*sin(partphi);
r(3,1)=(partheight+rearth)*cos(partphi);
//v(1,1)=1.0*(10^6);
v(2,1)=1.0*(10^6);
//i=()*bz*(4*pi);
//i=(zŁ2+r$^)
mu0=4.0*%pi*(10^(-7));
b=zeros(3,1);
e=zeros(3,1);
//bfield in z direction
b(3,1)=0.1;
//efield in y direction
//e(2,1)=0.2;
//e(3,1)=10*(10^4);
ns=200;
//calculate effective current for earths bfield
mu0=4.0*%pi*(10^(-7));
//lensol=2556*10^3; //length of effective solenoid
//used in computation of final field
lensol=1;
zt=lensol/2;
zb=-zt;
//http://hyperphysics.phy-astr.gsu.edu/hbase/magnetic/magearth.html#c1
//magnetic field strongest at earths surface i z direction
//north and south magnetic poles
bz=0.6*(10^(-4));
//effective radius of solenoid
//1/3 radius of earths outer core
//http://en.wikipedia.org/wiki/Earth#Composition_and_structure
//solenoid field calculation
//http://www.netdenizen.com/emagnet/solenoids/thinsolenoid.htm
//zsol=5100*10^3; //radius of earth - len solenoid
//reffsol=1278*(10^3)/3;
zsol=rearth-lensol;
reffsol=4000*(10^3)/3;
nturns=1;
rfactor=((lensol+zsol)/((lensol+zsol)^2 + reffsol^2))-(zsol/(zsol^2+reffsol^2));
itot=2*lensol*bz*2/(mu0*nturns*rfactor);
itot=1.5*10^9;
iperturn=itot/(2*%pi*reffsol*nturns);// used in the computation of the bfield with
//the biot savart law
//v(2,1)=evstr(x_dialog('value of velocity ?','1.0*(10^6)'));
//x_dialog(['Method';'enter velocity'],'1')
//m=evstr(x_dialog('enter a 3x1 matrix ',['[0 ';'0 ';'0 ]']))
//labels=["b(1)";"b(2)";"b(3) "];
//[ok,b(1,1),b(2,1),b(3,1)]=getvalue("define b field values",labels,...
// list("vec",1,"vec",1,"vec",1),["0.0";"0.0";"0.1"]);
//xset('pixmap',1);
//xselect(); //raise graphic window
//np=10;
//t=0:0.1:np*%pi;
realtimeinit(0.03);
if driver()=='Pos' then
st=1.5;
else
st=0.5;
end
ar=zeros(ns,3);
nx=42;
ny=42;
nz=42;
deltax=6371*10^3;
deltay=deltax;
deltaz=deltax;
inx=-deltax*nx/2;
iny=inx;
inz=iny;
b=zeros(3,nx,nz);
//if running using the white rose grid easa application portal
//we set the directory to ''
//and extract the data
//directory='out/'
directory='out/'
dxdirectory='dx/'
jobname='mkgt16';
outfile=directory+'job'+jobname+'.out';
formfile=directory+'jobform'+jobname+'.out';
dxgenfile=directory+'job'+jobname+'.general';
dxformgenfile=directory+'job'+jobname+'_form.general';
fdform=mopen(formfile,'w');
mfprintf(fdform, '%d %d %d\n',nx, ny, nz);
mclose(fdform);
fd=mopen(outfile,'w');
deltab=%pi/128;
mfprintf(fd,'Earth bfield model\n');
mfprintf(fd,'jobname %s\n',jobname);
mfprintf(fd,'size %d %d %d \n',nx,ny,nz);
mfprintf(fd,'Height effective solenoid(m) %f\n',zsol);
mfprintf(fd,'Radius effective solenoid(m) %f\n',reffsol);
mfprintf(fd,'deltab %f\n',deltab);
mfprintf(fd,'n turns %d\n',nturns);
for i1=1:nx
//disp(i1);
//for i2=1:ny
for i3=1:nz
y=inx+i1*deltax;
//y=iny+i2*deltay;
z=inz+i3*deltaz;
x=0;
r(1,1)=x;
r(2,1)=y;
r(3,1)=z;
//bf=bfield(reffsol,zt,zb,nturns,itot,r,deltab);
//bfield(r,ztp,zbot,n,i,rfp,dtheta)
rs=reffsol;
ztp=zt;
zbot=zb;
n=nturns;
i=itot;
rfp=r;
dtheta=deltab;
//n number of turns
//i per turn
bt=zeros(3,1);
mu0=4.0*%pi*(10^(-7));
dz=(ztp-zbot)/n;
ce=zeros(3,1);
//calculate field contribution for each turn
z=zbot;
//z=0;
//dz=0;
//dr=2*%pi/dtheta;
dr=rs*dtheta;
//for ic=0:n
for theta=0:dtheta:(2*%pi)-dtheta
//current element location
xi=rs*cos(theta);
yi=rs*sin(theta);
rcp(1,1)=xi;
rcp(2,1)=yi;
rcp(3,1)=z;
rp(1,1)=rfp(1,1)-rcp(1,1);
rp(2,1)=rfp(2,1)-rcp(2,1);
rp(3,1)=rfp(3,1)-rcp(3,1);
rcpd(1,1)=rs*cos(theta+dtheta);
rcpd(2,1)=rs*sin(theta+dtheta);
rcpd(3,1)=z;
//current element vector
//using tangent vector defn. from
//http://mathworld.wolfram.com/TangentVector.html
//and arc length ds=rdtheta
//ce(1,1)=-sin(theta);
//ce(2,1)=cos(theta);
ce(1,1)=rcpd(1,1)-rcp(1,1);
ce(2,1)=rcpd(2,1)-rcp(2,1);
ce(3,1)=rcpd(3,1)-rcp(3,1);
//evaluate cross product of current element and
//field vector
cp(1,1)=ce(2,1)*rp(3,1)-ce(3,1)*rp(2,1);
cp(2,1)=ce(3,1)*rp(1,1)-ce(1,1)*rp(3,1);
cp(3,1)=ce(1,1)*rp(2,1)-ce(2,1)*rp(1,1);
rsq=rp(1,1)*rp(1,1)+rp(2,1)*rp(2,1)+rp(3,1)*rp(3,1);
bt(1,1)=bt(1,1)+mu0*i*dr*(cp(1,1))/(4*%pi*rsq);
bt(2,1)=bt(2,1)+mu0*i*dr*(cp(2,1))/(4*%pi*rsq);
bt(3,1)=bt(3,1)+mu0*i*dr*(cp(3,1))/(4*%pi*rsq);
end
z=z+dz;
//end
bf=bt;
mfprintf(fd, '%f %f %f %f %f %f\n',r(1,1)/rearth,r(2,1)/rearth,r(3,1)/rearth,bf(1,1),bf(2,1),bf(3,1));
b(:,i1,i3)=bf;
end
// end
end
mclose(fd);
bmag=b(1,:,:).*b(1,:,:)+b(2,:,:).*b(2,:,:)+b(3,:,:).*b(3,:,:);
bmag=sqrt(bmag);
iax=1:nx;
iay=1:ny;
bnmag=zeros(nx,ny);
bnmag(:,:)=bmag(1,:,:);
bxm=zeros(nx,ny);
bym=zeros(nx,ny);
bxm(:,:)=b(1,:,:);
bym(:,:)=b(3,:,:);
contour2d(iax,iay,bnmag);
champ(iax,iay,bxm,bym);
//generate dx general file for this data set
//file=out/job.out
//grid 51 x 51
//format = ascii
//interleaving = field
//majority = row
//header = lines 1
//series = 24 , 1, 1, separator=lines 1
//field = field0, field1
//structure = 2-vector, scalar
//type = float, float
//dependency = positions, positions
//positions = regular,regular, 0, 1,0,1
//end
dxgenfile=dxdirectory+'job'+jobname+'.general';
fdform=mopen(dxgenfile,'w');
mfprintf(fdform, 'file=%s\n', 'out/job'+jobname+'.out');
mfprintf(fdform,'grid= %d x %d x %d\n',nx,ny,nz);
mfprintf(fdform,'format = ascii \n interleaving = field \n header = lines 7 \n');
//mfprintf(fdform, 'series = 1 , 1, 1, separator=lines 1\n');
mfprintf(fdform, 'field = locations,bfield \n structure = 3-vector, 3-vector \n type = float, float \n dependency = positions, positions \n end \n ');
mclose(fdform);
//file=out/jobform.out
//grid = 1
//format = ascii
//interleaving = record
//majority = row
//field = nsteps, nx, ny
//structure = scalar, scalar, scalar
//type = int, int, int
//dependency = positions, positions, positions
//positions = regular, 0, 1
//end
dxformgenfile=dxdirectory+'job'+jobname+'_form.general';
fdform=mopen(dxformgenfile,'w');
mfprintf(fdform, 'file=%s\n', 'out/jobform'+jobname+'.out');
mfprintf(fdform,'grid=1\n');
mfprintf(fdform,'format = ascii \n interleaving = record \n majority = row \n');
mfprintf(fdform, 'field = nr ,ntheta, nphi \n structure = scalar, scalar, scalar \n type = int, int, int \n dependency = positions, positions,positions \n positions = regular, 0, 1 \n end \n ');
mclose(fdform);
//exit;
|
44071d738c05c9760fef65beea897a78b2fd44b4
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1541/CH1/EX1.25/Chapter1_Example25.sce
|
6f7b0e94a7dfd5a2128673dbfd54d318950b58c4
|
[] |
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,037
|
sce
|
Chapter1_Example25.sce
|
//Chapter-1, Example 1.21, Page 1.49
//=============================================================================
clc
clear
//INPUT DATA
R=0.05;//Total resistance of the motor in ohm
IL1=120;//Load current in A
V=220;//Terminal voltage in V
N=1200;//Speed in rpm
IL2=60;//Half load current in A
//CALCULATIONS
//Tnew=0.25*Told
//Hence percentage change in torque is 75% since it is (Told-Tnew)/Told*100
Ebnew=(V-(IL1*R));//New back emf in V
Ebold=(V-(IL2*R));//Old back emf in V
Nnew=(N*Ebnew*IL1)/(Ebold*IL2);//New speed in rpm
Pspeed=(Nnew/N)*100;//Percentage change in speed in %
//Ianew=(Iaold/sqrt(2))
I=sqrt(2)*100;//Percentage in current
N1new=(sqrt(2)*Ebnew*N)/Ebold;//New speed in rpm
P1speed=(N1new/N)*100;//Percentage change in speed in %
//OUTPUT
mprintf('i)Percentage in speed is %3.2f and Percentage in torque is 75\nii)New speed is %3.0f rpm and new current is (1/sqrt(2)) times old current',Pspeed,N1new)
//=================================END OF PROGRAM==============================
|
70eb4f5e1ca55a935c91697cf8dec5c29dc59ff9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3547/CH5/EX5.3/Ex5_3.sce
|
af7850728528e230a331b61937d564118f8ceac9
|
[] |
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
| 855
|
sce
|
Ex5_3.sce
|
// Example no.5.3
// To find quantum efficiency at different wavelength and same responsivity
// Page no.199
clc;
clear;
// Given data
lambda1=0.7; // The radiation wavelength in micrometer
R=0.4; // The responsivity in A/W
lambda2=0.5; // The reduced wavelength in micrometer
neta1=(R*1.24)/lambda1; // The quantum efficiency for 0.7micrometer wavelength
neta2=neta1*(lambda2/lambda1); // The quantum efficiency for reduced wavelength 0.5micrometer
// Display result on command window
printf('\n The quantum efficiency for 0.7 micrometer wavelength = %0.4f',neta1)
printf('\n The quantum efficiency for reduced wavelength of 0.5 micrometer = %0.3f',neta2)
|
034ee92e02f85b18eaaa21ca5ac4e8053a92e2c5
|
276dd1422a7890d6657101fcc9cbccc4ae7e8ce4
|
/tags/2010/branches/capstone/php/knights/legacytests/test4.tst
|
dda78d1aaa89145f2b45df11d3c52b8f44417303
|
[] |
no_license
|
valdas/knit
|
4a0adef8bfe426506e55ffcc3a297dfa4dc2e903
|
ccbdf3c975061ba0875e881e2f94c8432d7a16cb
|
refs/heads/master
| 2021-01-10T02:08:06.358327
| 2012-01-16T17:05:01
| 2012-01-16T17:05:01
| 43,171,119
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 89
|
tst
|
test4.tst
|
<?php
include ('knights.php');
$array=newBoard();
$array[1][1]=1;
printBoard($array);
?>
|
05442547544d2ff2209e9683a12ceb4d6d92b366
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2594/CH8/EX8.9/Ex8_9.sce
|
3ef4f4ee4014bf53f80b19875292814a7f373f56
|
[] |
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,715
|
sce
|
Ex8_9.sce
|
clc
Na=3*10^16
disp("Na = "+string(Na)+" /cm^3") //initializing value of acceptor ion concentration.
Vms=-1.12
disp("Vms = "+string(Vms)+"V") //initializing value of metal semiconductor work function difference.
Er=11.9
disp("Er = "+string(Er)) //initializing value of relative dielectric permittivity constant .
Eo=8.854*10^-14
disp("Eo = "+string(Eo)+" F/cm") //initializing value of permittivity of free space.
ni=1.5*10^10
disp("ni = "+string(ni)+"cm^-3") //initializing value of intrinsic concentration of electrons.
e=1.6*10^-19
disp("e = "+string(e)+" columns") //initializing value of charge of electrons.
tox=300*10^-8
disp("tox = "+string(tox)+" cm") //initializing value of thickness of p-type substrate.
Vfb=-1.12
disp("Vfb = "+string(Vfb)+" V") //initializing value of flat band voltage.
Qss=10^11
disp("Qss = "+string(Qss)+" electronic charge columns/cm^2") //initializing value of charge density on semiconductor surface.
Vt=0.0259
disp("Vt = "+string(Vt)+" eV") //initializing value of thermal voltage.
er=3.9
disp("er = "+string(er)) //initializing value of relative dielectric permittivity constant
Eox=Eo*Er
disp("total permittivity,Eox=Eo*Er="+string(Eox)+" F/cm")//calculation
Vfp=Vt*(log(Na/(ni)))
disp("Potential,Vfp=Vt*(log(Na/(ni))))="+string(Vfp)+" V")//calculation
Wd=sqrt((4*Eox*Vfp)/(e*Na))
disp("Maximum depletion width,Wd=sqrt((4*E*Vs)/(e*Nd)))="+string(Wd)+" cm")//calculation
QDmax=(e*Na*Wd)
disp("Over all maximum depletion width,QDmax=(e*Na*Wd))="+string(QDmax)+" columns/cm^2")//calculation
VT=(((QDmax-1.6*10^-8)*tox)/(er*Eo))+(2*Vfp+Vfb)
disp("Thresold Voltage,VT=(((QDmax-1.6*10^-8)*tox)/(er*Eo))+(2*Vfp+Vfb)="+string(VT)+" V")//calculation
|
3049b414bce45bfbf21f9b54e0d4246f2e1fc723
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/98/CH5/EX5.3/example5_3.sce
|
66db6da5286f055d74e52810c2738e6b208b06d9
|
[] |
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
| 279
|
sce
|
example5_3.sce
|
//Chapter 5
//Example 5_3
//Page 92
clear;clc;
rs=100;
exceed=0.15;
fr=0.3;
x=rs/(fr-exceed);
printf("Number of units at which charges due to both tariffs become equal = %.2f units \n\n", x);
printf("Tariff (a) is economical if consumption is more than %.2f units \n\n", x);
|
4c75a1de7bcf268054ec718e8c44b554e88c4987
|
d52d3664d9650ed9473dfaa3c4b379f05ef9fa78
|
/test/f2ndfl/recreate_2ndfl.tst
|
ea88415b59836fc410bbf45b7dfb60420ff0173f
|
[] |
no_license
|
ZVlad1980/excel_api
|
7b517bf68b677f8e947cba8794ae557e48c9ce06
|
b514dbea9cb619e0e73c67b2e8fec4a59301101a
|
refs/heads/master
| 2020-04-04T01:51:22.004466
| 2018-10-02T05:52:04
| 2018-10-02T05:52:04
| 155,679,735
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,403
|
tst
|
recreate_2ndfl.tst
|
PL/SQL Developer Test script 3.0
53
-- Created on 19.02.2018 by V.ZHURAVOV
declare
-- Local variables here
procedure recreate_2ndfl(
p_year int,
p_ref_id f2ndfl_arh_spravki.id%type
) is
l_ref_row f2ndfl_arh_spravki%rowtype;
begin
--
l_ref_row := f2ndfl_arh_spravki_api.get_reference_row(p_ref_id);
--
update f2ndfl_arh_spravki s
set s.r_xmlid = null
where s.id = p_ref_id;
--
f2ndfl_arh_spravki_api.delete_reference(
p_ref_id => p_ref_id
);
--
f2ndfl_arh_spravki_api.create_reference(
p_code_na => 1,
p_year => p_year,
p_contragent_id => l_ref_row.ui_person,
p_ref_num => l_ref_row.nom_spr,
p_report_date => to_date(20171231, 'yyyymmdd')
);
--
l_ref_row.id := f2ndfl_arh_spravki_api.get_reference_last_id(
p_code_na => 1,
p_year => p_year,
p_ref_num => l_ref_row.nom_spr,
p_load_exists => 'N'
);
--
update f2ndfl_arh_spravki s
set s.r_xmlid = l_ref_row.r_xmlid
where s.id = p_ref_id;
--
end recreate_2ndfl;
begin
-- Test statements here
/*
2580301
2641748
2641779
*/
recreate_2ndfl(2017, 2580301);
exception
when others then
dbms_output.put_line(utl_error_api.get_exception_full);
raise;
end;
0
0
|
d867fa81a60175ae3865adbf2779fac54ec503d8
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2969/CH7/EX7.11/Ex7_11.sce
|
fa5f5ff6b2ed8a67c778fb1d5c88799039303232
|
[] |
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,414
|
sce
|
Ex7_11.sce
|
clc
clear
//DATA GIVEN
n=6; //no. of cylinders
Pdisp=700; //piston disp per cylinder in cm^3
P=78; //power developed in kW
N=3200; //engine speed in R.P.M.
Mf=27; //mass of fuel used in kg/hr
C=44000; //calorific value of fuel used in kJ/kg
afr=12; //air fuel ratio
Pa=0.9; //intake air pressure in bar
Ta=32+273; //intake air tempertaure in K
R=0.287; //gas constant for air in kJ/kgK
k=0.5; //for 4-stroke cylinder
Ma=afr*Mf; //mass of air
//by eq. pa*Va=Ma*R*Ta
Va=Ma*R*Ta/Pa/100; //volume of intake air in m^3/hr
Vswept=(Pdisp/10^6)*n*(N/2)*60; //volume swept in m^3/hr
ETAvol=Va/Vswept; //volumetric efficiency
//Brake thermal efficiency , ETAbt=brake work/heat supplied by the fuel
ETAbt=P/(Mf*C/3600);
//Brake Power, BP = (2*pi)N*Tb/(60*1000) kW
Tb=P*60/(2*%pi*N); //brake torque in kNm
printf(' (i) The Volumetric efficiency is: %5.3f or %5.1f percent. \n',ETAvol,(ETAvol*100));
printf(' (ii) The Brake thermal efficiency is: %5.4f or %5.2f percent. \n',ETAbt,(ETAbt*100));
printf(' (iii) The Brake Torque is: %5.4f kNm. \n',Tb);
|
8ac40cae31c6790638d6a7775822ff2791ec86fa
|
6e257f133dd8984b578f3c9fd3f269eabc0750be
|
/ScilabFromTheoryToPractice/Computing/testexo1a.sce
|
cf70d958595e121fc00174d63901288d6a530f84
|
[] |
no_license
|
markusmorawitz77/Scilab
|
902ef1b9f356dd38ea2dbadc892fe50d32b44bd0
|
7c98963a7d80915f66a3231a2235010e879049aa
|
refs/heads/master
| 2021-01-19T23:53:52.068010
| 2017-04-22T12:39:21
| 2017-04-22T12:39:21
| 89,051,705
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 89
|
sce
|
testexo1a.sce
|
n=6;m=5;
A=[1:n]'
B=ones(1,m)
L=A*B
// with only one command
L=([1:n]')*ones(1,m)
|
23d1dd6ae3aa28dcd4822fd9e5e74aa76c67c011
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2153/CH7/EX7.5.d/ex_7_5_d.sce
|
e5f17d3a2bf6712a5a687c8f5a414074dbe9bb9b
|
[] |
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
| 410
|
sce
|
ex_7_5_d.sce
|
// Example 7.5.d: percentage elonagtion
clc;
clear;
close;
format('v',4)
yl=34;//yeild load in kN
ul=61;//ultimate load in kN
fl=78;//final length in mm
glf=60;//gauge length of fratture in mm
fd=7;//final diamtere in mm
d=12;//specimen diamtere in mm
sl=62.5;//specimen length in mm
A=(%pi*(d)^2)/4;// in mm square
A1=(%pi*(fd)^2)/4;// in mm square
pr=(fl-glf)/glf;//
disp(pr*100,"percentage elonagtion is")
|
4c78a461d3ba616c1940d6bf659f0ab1bebe36be
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.4/macros/m2sci/sci_cool.sci
|
e5c626075c450b1fbd84e613b909890f13e12e4d
|
[
"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
| 419
|
sci
|
sci_cool.sci
|
function [stk,txt,top]=sci_cool()
// Copyright INRIA
txt=[]
if rhs<1 then
r=gettempvar(1)
txt=r+'=(0:31)''/31'
stk=list('['+r+',1-'+r+',ones('+r+')]','0','32','3','1')
else
r=gettempvar(1)
if isname(stk(top)(1)) then
n=stk(top)(1)
txt=[]
else
n=tempvar(2)
txt=n+'='+stk(top)(1)+';'
end
txt=[txt;
r+'=(0:'+n+')''/'+n+';']
stk=list('['+r+',1-'+r+',ones('+r+')]','0',n,'3','1')
end
|
7edf0bae2d71b3b61be1468058578b360f08b64d
|
6b7b3be3c11fc662ae3f0b3e8880218ce3888a07
|
/math/SciLab/main.sce
|
796b25179d81b072788d9a727dc6f53595714939
|
[] |
no_license
|
johnzet/Flight
|
27cfa7dc8039f6c7b91385d9e204ad4a54248960
|
2893750df8aaa38311ffc125b1f7dcc9f5019eab
|
refs/heads/main
| 2023-02-25T19:51:03.725205
| 2021-01-31T01:12:09
| 2021-01-31T01:12:09
| 334,544,210
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 4,916
|
sce
|
main.sce
|
funcprot(0);
cd("C:\projects\flight\math\SciLab");
exec("%s_m_ZQuat.sci");
exec("%ZQuat_conj.sci");
exec("%ZQuat_m_s.sci");
exec("%ZQuat_m_ZQuat.sci");
exec("%ZQuat_norm.sci");
exec("%ZQuat_p.sci");
exec("%ZQuat_r_S.sci");
exec("%ZQuat_size.sci");
exec("%ZQuat_t.sci");
exec("plotter.sci");
exec("ZQ_defQuat.sci");
exec("ZQ_euler2quat.sci");
exec("ZQ_quat2euler.sci");
exec("ZQ_sandwich.sci");
exec("ZQ_quat2matrix.sci");
exec("kinematics.sci");
function [A_q_w, V_w, P_w] = main()
// Meter-Kilogram-Second-Radian measure
// Right-Hand rules
// NWU - North-West-Up
// x axis = forward
// y axis = left
// z axis = up
// roll = x axis
// pitch = y axis
// yaw = z axis
// vectors are all column vectors (1 columnm, n rows)
// ************* Sample Period and Count *******************
dt = 0.01;
samples = 500;
// ************* Initial Conditions *******************
// attitude, quaternion, world frame
g = 9.81;
r = 5;
v = 5;
initial_altitude = 1;
a = v^2/r;
theta = atan(v^2/(r*g));
w = g*tan(theta)/v;
distance = 2*%pi*r;
time = distance/v;
samples = time/dt;
disp("samples: ")
disp(samples)
disp("flight time: ")
disp(samples*dt)
A_q_w = ZQ_euler2quat([theta;0;0]);
A_q_w = A_q_w/norm(A_q_w);
// velocity
V_w = [v;0;0];
// position, world frame
P_w = [0;0;initial_altitude];
// ************* Sample Data *******************
// angular velocity, euler, body frame (gyro sample)
aV_sample = [0;-w*sin(theta);-w*cos(theta)];
// linear acceleration, body frame (accelerometer sample)
lift = sqrt(a^2 + g^2);
A_sample = [0;0; lift];
altimeter = initial_altitude;
// ************* Logging Setup *******************
A_log = [];
A_q_log = [];
V_log = [];
P_log = [];
disp("start position: ")
disp(P_w);
for i = 1:samples
// noise
aV_sample_noisy = aV_sample + norm(aV_sample)*((rand()-0.5)/100)*0;
A_sample_noisy = A_sample + norm(A_sample)*((rand()-0.5)/100)*0;
altimeter_noisy = altimeter * (1+(rand()-0.5)/2000000);
A_q_w_0 = A_q_w;
V_w_0 = V_w;
P_w_0 = P_w;
[A_q_w, V_w, P_w] = processSample(dt, A_q_w_0, V_w_0, P_w_0, A_sample_noisy, aV_sample_noisy, altimeter_noisy);
// ************* Logging *******************
V_log = [V_log V_w];
P_log = [P_log P_w];
[a,b,c] = ZQ_quat2euler(A_q_w);
A_log = [A_log [a;b;c]];
A_q_log = [A_q_log [A_q_w.r; A_q_w.i(1); A_q_w.i(2); A_q_w.i(3);]];
R = ZQ_quat2matrix(A_q_w);
VertexData(:,:,i) = GeoVerMakeBlock(P_w',R);
[X,Y,Z] = GeoPatMakeBlock(VertexData(:,:,i));
PatchData_X(:,:,i) = X;
PatchData_Y(:,:,i) = Y;
PatchData_Z(:,:,i) = Z;
end
disp("end position: ")
disp(P_w);
// ************* Plots *******************
clf()
fig = gcf();
fig.figure_size = [1000,1000];
subplot(221)
title("Attitude, Euler")
plot([A_log(1,:)' A_log(2,:)' A_log(3,:)'])
legend(["X";"Y";"Z"], "in_upper_left")
subplot(222)
title("Attitude, Quaternion")
plot([A_q_log(1,:)' A_q_log(2,:)' A_q_log(3,:)' A_q_log(4,:)'])
legend(["R";"X";"Y";"Z"], "in_upper_left")
subplot(223)
title("Velocity")
plot([V_log(1,:)' V_log(2,:)' V_log(3,:)'])
legend(["X";"Y";"Z"], "in_upper_left")
subplot(224)
title("Position")
plot([P_log(1,:)' P_log(2,:)' P_log(3,:)'])
legend(["X";"Y";"Z"], "in_upper_left")
// Draw initial figure
figure(1);
fig = gcf();
fig.figure_size = [1000,1000];
plot3d(PatchData_X(:,:,1),PatchData_Y(:,:,1),PatchData_Z(:,:,1));
h_fac3d = gce();
h_fac3d.color_mode = 4;
h_fac3d.foreground = 1;
h_fac3d.hiddencolor = 4;
// Axes settings
xlabel("x",'fontsize',2);
ylabel("y",'fontsize',2);
zlabel("z",'fontsize',2);
h_axes = gca();
h_axes.font_size = 2;
h_axes.isoview = "on";
h_axes.box = "off";
h_axes.rotation_angles = [67,-128];
xgrid;
// Find plot extents
maxX=-10000; minX=10000; maxY=-10000; minY=10000; maxZ=-10000; minZ=10000;
for i=1:samples
maxX = max(maxX, P_log(1,i));
maxY = max(maxY, P_log(2,i));
maxZ = max(maxZ, P_log(3,i));
minX = min(minX, P_log(1,i));
minY = min(minY, P_log(2,i));
minZ = min(minZ, P_log(3,i));
end
h_axes.data_bounds = [minX-1, minY-1, minZ-1; maxX+1, maxY+1, maxZ+1];
sleep(1000);
// Animation Loop
for i=1:samples
drawlater();
h_fac3d.data.x = PatchData_X(:,:,i);
h_fac3d.data.y = PatchData_Y(:,:,i);
h_fac3d.data.z = PatchData_Z(:,:,i);
drawnow();
// sleep(5);
end
endfunction
main();
|
db69541502ba12da34a029abe60bc579e18b0b1d
|
0c3cccb3c81eb151f654e5d9d470662c19122857
|
/scilab/temp.sce
|
5932704fd842e1e0316a8bfd28f341e69a34179f
|
[] |
no_license
|
gmordelet/oldProg
|
6b2bb7c247dd1f16a641d0f840f7c82e8eb37ffb
|
c108060bf1b87b4aad196484036f226fd9c4422c
|
refs/heads/master
| 2021-01-12T16:28:52.448277
| 2016-10-30T11:16:22
| 2016-10-30T11:16:22
| 69,155,276
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 150
|
sce
|
temp.sce
|
function M = MatSymetrique(n)
M = rand(n, n);
t1 = triu(M);
t2 = t1' - diag(diag(M));
M = t1 + t2;
M = floor(100 * M);
endfunction
|
fdb4ee1d9e96afa9d86c41d29482a658bb73efb5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/162/CH4/EX4.19/example419.sce
|
9dc42b4a9e448c723ebcd4535c0f741d9af794f8
|
[] |
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
| 75
|
sce
|
example419.sce
|
//Example 4.19
clc;
syms s;
F=1/((s+1)*(s+2));
f=ilaplace(F);
disp(f);
|
8f53146798a528a371dd9e7622107127c2f9ae14
|
08fba2ed0163abdb7e4ffb3a872db143e12d0ba4
|
/shift.sce
|
70d7e5068d5457421db0adca73b4e597b184aa40
|
[] |
no_license
|
sarfarazkhan007/dsp_14co42
|
02ff4ed37b34fef8f0a25e9ad4de0b763c4de0f1
|
0f5122b674e9e3da8387edd7c621f897b6fd3b4e
|
refs/heads/master
| 2021-01-02T23:05:01.674461
| 2017-10-05T03:22:00
| 2017-10-05T03:22:00
| 99,463,874
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 5,122
|
sce
|
shift.sce
|
clc
// This GUI file is generated by guibuilder version 3.0
//////////
f=figure('figure_position',[400,50],'figure_size',[646,574],'auto_resize','on','background',[29],'figure_name','Graphic window number %d');
//////////
delmenu(f.figure_id,gettext('File'))
delmenu(f.figure_id,gettext('?'))
delmenu(f.figure_id,gettext('Tools'))
toolbar(f.figure_id,'off')
handles.dummy = 0;
handles.og1= newaxes();handles.og1.margins = [ 0 0 0 0];handles.og1.axes_bounds = [0.453125,0.13125,0.5,0.21875];
og1a = gca();
handles.adv1= newaxes();handles.adv1.margins = [ 0 0 0 0];handles.adv1.axes_bounds = [0.465625,0.4375,0.490625,0.1833333];
adv1a = gca();
handles.delay1= newaxes();handles.delay1.margins = [ 0 0 0 0];handles.delay1.axes_bounds = [0.471875,0.7208333,0.4859375,0.1833333];
delay1a = gca();
handles.signal=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0828125,0.9020833,0.28125,0.05625],'Relief','default','SliderStep',[0.01,0.1],'String','Enter your signal','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','signal','Callback','')
handles.value=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.45625,0.9041667,0.2078125,0.0541667],'Relief','default','SliderStep',[0.01,0.1],'String','Enter your value','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','value','Callback','')
handles.og1plot=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.08,0.68125,0.253125,0.1520833],'Relief','default','SliderStep',[0.01,0.1],'String','ORIGINAL','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','og1plot','Callback','og1plot_callback(handles)')
handles.plotadv1=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.08,0.3770833,0.253125,0.1645833],'Relief','default','SliderStep',[0.01,0.1],'String','ADVANCE','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','plotadv1','Callback','plotadv1_callback(handles)')
handles.plotdelay1=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.08,0.1083333,0.253125,0.125],'Relief','default','SliderStep',[0.01,0.1],'String','DELAY','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','plotdelay1','Callback','plotdelay1_callback(handles)')
handles.clear=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.08,0.02,0.253125,0.06],'Relief','default','SliderStep',[0.01,0.1],'String','CLEAR','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','clear','Callback','clear_callback(handles)')
//////////
// Callbacks are defined as below. Please do not delete the comments as it will be used in coming version
//////////
function og1plot_callback(handles)
//Write your callback for og1plot here
x = get(handles.signal, "String");
x = strsplit(x, " ");
x = strtod(x);
axes = 0:4;
sca(og1a);
plot2d3(axes,x);
replot([-6,0,6,10]);
endfunction
function plotadv1_callback(handles)
//Write your callback for plotadv1 here
x = get(handles.signal, "String");
x = strsplit(x, " ");
x = strtod(x);
value = get(handles.value, "String");
value = strtod(value);
axes = 0:4;
shift = axes - value;
sca(adv1a);
plot2d3(shift,x);
replot([-6,0,6,10]);
endfunction
function plotdelay1_callback(handles)
//Write your callback for plotdelay1 here
//Write your callback for plotadv1 here
x = get(handles.signal, "String");
x = strsplit(x, " ");
x = strtod(x);
value = get(handles.value, "String");
value = strtod(value);
axes = 0:4;
shift = axes + value;
sca(delay1a);
plot2d3(shift,x);
replot([-6,0,6,10]);
endfunction
function clear_callback(handles)
//Write your callback for clear here
delete(og1a.children);
delete(adv1a.children);
delete(delay1a.children);
endfunction
|
6077d600bc727738d9c73d6c55764d89549678a0
|
3a9550dbf1d28c3c576a4e102771848477e4f030
|
/CalculoII/calculB1.sce
|
5cd2f21be6d58bafb1aed31dbe5afe94b8804146
|
[] |
no_license
|
juzejunior/Faculdade
|
6e00800c47e779348c36bba0eaa5b377059373d2
|
458497ef1ca237fd22f794c0af0d4fa7cf285255
|
refs/heads/master
| 2020-04-12T07:21:30.667824
| 2018-07-05T10:59:59
| 2018-07-05T10:59:59
| 65,511,270
| 0
| 1
| null | 2018-05-08T14:53:12
| 2016-08-12T00:46:55
|
C
|
UTF-8
|
Scilab
| false
| false
| 85
|
sce
|
calculB1.sce
|
x= [2: 1: 10]
y = x-1
//z = sqrt(4 - x.^2 - y.^2)
//z = log(x)
plot3d(x,y,log(x-y))
|
74cd9b1eb471255a6b9d46bb2870426679890f25
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2708/CH1/EX1.25/ex_1_25.sce
|
0c696a9361c03725af089695cbfbb61dc5826ef7
|
[] |
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
| 324
|
sce
|
ex_1_25.sce
|
//Example 1.25 // diameter of bright ring
clc;
clear;
//given data :
w=6D-7;// wavelength used in m
R1=3;//radius of curvature of convex lens in m
R2=4;//radius of curvature of concave lens in m
n=13;// order of ring
r=sqrt((2*n-1)*w/(2*(1/R1-1/R2)));// radius of ring
disp(2*r,"diameter of bright ring in m")
|
e82aab3fab531b5b668821bc16d1764a45f8192c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/548/CH6/EX6.7/6_07.sce
|
eec83c4b75ec8729e036d3ce1fa4b4e0e73b0ad2
|
[] |
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
| 361
|
sce
|
6_07.sce
|
pathname=get_absolute_file_path('6_07.sce')
filename=pathname+filesep()+'6_07data.sci'
exec(filename)
a=atand(1/L_D);disp(a,"a=","tan(a)=1/(L/D)","minimum glide angle a:")
R=H*L_D;disp(R,"R=","R=H*L/D","maximum range along ground :")
printf("\Answer:\n")
printf("\minimum glide angle: %f \n",a)
printf("\n\maximum range covered along ground: %f m\n\n",R)
|
90bb76a0defa52bb17ece4cdd0b282b48683ef05
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/605/CH3/EX3.8/3_8.sce
|
0abc2a79968eec8d030d5019358f36cccc3a322d
|
[] |
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
| 381
|
sce
|
3_8.sce
|
Zo=50
C=100*10^(-12)
a=1.15*10^(-3)
//data print
printf("\nZo=50 ohm C=100pF/m a=0.01 dB/m\n")
//formula and result
L=C*Zo^2
R=a*sqrt(L/C)
G=R*C/L
vp=1/sqrt(L*C)
printf("\nresult:-")
printf("\n(a)R=a*sqrt(L/C)=%.3f ohm/m",a*sqrt(L/C))
printf("\n(b)L=C*Zo^2=%.3e H/m",C*Zo^2)
printf("\n(c)G=R*C/L=%.3e S/m",R*C/L)
printf("\n(d)vp=1/sqrt(L*C)=%.1e m/s",1/sqrt(L*C))
|
e39a227128dc41620335da9223ea2418cca26db4
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/28/CH6/EX6.1/ex6_1.sce
|
6bb3482a82fc6e68201a83bedad088ec29df6574
|
[] |
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
| 367
|
sce
|
ex6_1.sce
|
s=%s;
p=s^4+8*s^3+18*s^2+16*s+5
r=coeff(p)
D1=r(4)
d2=[r(4) r(5);r(2) r(3)]
D2=det(d2);
d3=[r(4) r(5) 0;r(2) r(3) r(4);0 r(1) r(2)]
D3=det(d3);
d4=[r(4) r(5) 0 0;r(2) r(3) r(4) r(5);0 r(1) r(2) r(3);0 0 0 r(1)]
D4=det(d4);
disp(D1,"D1=")
disp(D2,"D2=")
disp(D3,"D3=")
disp(D4,"D4=")
printf("Since all the determinants are positive the system is stable")
|
7d7279730ad90a6dab4fc01afe5cc84c2e4e4cda
|
bb44d6eb6adf8f21077f2a49f2eb44d2424b2a5b
|
/generateInRangeOM1.sci
|
5ce497098c6f7d8f0f4a7d7ba64b300723d48168
|
[] |
no_license
|
prasadovhal/Scilab-Codes
|
c8ccc49feba4243d092d8a1eba7a708eb95dc89e
|
3af5566d62b1f1b6cf080ec20391c39b9d61897d
|
refs/heads/master
| 2020-03-29T16:50:45.738023
| 2018-09-24T16:05:50
| 2018-09-24T16:05:50
| 150,130,310
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 98
|
sci
|
generateInRangeOM1.sci
|
function ri=generateInRangeOM1(m,nbrows,nbcols)
ri = floor(rand(nbrows,nbcols)*m)
endfunction
|
5f7fc11b5ed1260a8a404e488e7c2ea36a14b31f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/551/CH2/EX2.6/6.sce
|
e71b5b06eb979eb5be6b5d9c8069b59c237777d5
|
[] |
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
| 142
|
sce
|
6.sce
|
clc
h0=.761; //m
h=.55; //m
g=9.79; //m/s^2
rho=13640; //kg/m^3
P=rho*g*(h0+h); //N/m^2
disp("Gas pressure=")
disp(P/10^5)
disp("bar")
|
bb8b240a3e21a9550053e6910e04f9a34b724089
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3835/CH7/EX7.10/Ex7_10.sce
|
d3bd45e9a230693fbae1ed2121f5e71f20ddd40a
|
[] |
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
| 585
|
sce
|
Ex7_10.sce
|
clear
//
//case a
vl=11000
il=50
pf=0.85 //powerfactor
p=vl*il*pf
printf("\n Power supplied to the motor is= %0.5f kW",p)
//case b
vt=6350.85 //at angle 0
zs=25.02 //at angle 0
//subcase 1 powerfactor at 0.85 lag
//e=vt-ia*zs
//e=6350.85-50(at angle -31.79)*25.02(at angle 87.71)
//substituting and solving as in x+iy form we get 5744.08 at angle -10.39 as the value of e
printf("\n emf induced=5744.08 at angle -10.39")
//subcase 2
//for a 0.85 lead same process as above is followed except angles are considered positive due to lead
printf("\n emf induced=7051.44 at angle -8.88")
|
62f1aaf79d40e96d8897a7e1728e187463c2653d
|
b6b875fb04ec6df2c0fb0d28f36962fa9aebb2bf
|
/TD6/Scripts/inf.sce
|
af07275e44c4bce45fc4d8a783cc3fb8020103da
|
[] |
no_license
|
MFrizzy/Modelisation
|
51794b2edf421f9d2206cb73972d8d8d7b1e9759
|
0ca819afbcbe00f58f3bbaa8fc97164ae2c1d3cb
|
refs/heads/master
| 2021-08-29T12:02:20.042037
| 2017-12-13T22:39:21
| 2017-12-13T22:39:21
| 106,943,303
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 171
|
sce
|
inf.sce
|
for i=1:50 // 50 trajectoires
Q = queue(60, 1/2, 1/10); // lambda est 5 fois plus grand que mu
plot2d2(Q(:,1), max(Q(:,2) - 1, 0), style=2) // trace la courbe
end
|
6572d49ac1ac5567184e99cb52026a97878e54b9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/854/CH2/EX2.1/Example2_1.sce
|
895c5274a91a0ce14c91561dda78a319a39fd0f8
|
[] |
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
| 711
|
sce
|
Example2_1.sce
|
clear
//Caption:Program to Caculate force exerted on Q2 by Q1
//Example2.1
//page 29
clc;
r2 = [2,0,5];
r1 = [1,2,3];
R12 = norm(r2-r1);
aR12 = (r2-r1)/R12;
disp(R12,'R12=')
disp(aR12,'aR12=')
Q1 = 3e-04; //charge 1 in Coulombs
Q2 = -1e-04; //charge 2 in Coulombs
Eps = 8.854e-12; //free space permittivity
F2 = ((Q1*Q2)/(4*%pi*Eps*R12^2))*aR12;
F1 = -F2;
disp(F2,'Force exerted on Q2 by Q1 in N/m F2 =')
disp(F1,'Force exerted on Q1 by Q2 in N/m F1 =')
//Result
//R12=
// 3.
//aR12=
// 0.3333333 - 0.6666667 0.6666667
//Force exerted on Q2 by Q1 in N/m F2 =
// - 9.9863805 19.972761 - 19.972761
//Force exerted on Q1 by Q2 in N/m F1 =
// 9.9863805 - 19.972761 19.972761
|
7b88b083749a20ab1b8b10c91d798f5b74aefb05
|
e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4
|
/New LSTMAttn Model/.data/lemma-split/DEVELOPMENT-LANGUAGES/austronesian/hil.tst
|
71715b8b694c27f575ee9562389d691c021b1628
|
[] |
no_license
|
davidgu13/Lemma-vs-Form-Splits
|
c154f1c0c7b84ba5b325b17507012d41b9ad5cfe
|
3cce087f756420523f5a14234d02482452a7bfa5
|
refs/heads/master
| 2023-08-01T16:15:52.417307
| 2021-09-14T20:19:28
| 2021-09-14T20:19:28
| 395,023,433
| 3
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 4,554
|
tst
|
hil.tst
|
patay V;PST
patay V;PROG;PRS
patay V;PROG;FUT
patay V;NFIN
patay V;PRF+PROG;PST
patay V;PRF;PRS
patay V;PROG;PST
patay V;PRF;FUT
patay V;PRF;PST
patay V;PRF+PROG;PRS
patay V;PRF+PROG;FUT
patay V;FUT
patay V;PRS
dalagan V;PROG;PST
dalagan V;PROG;FUT
dalagan V;PRF;FUT
dalagan V;PRF+PROG;PST
dalagan V;PRF+PROG;PRS
dalagan V;PRF+PROG;FUT
dalagan V;PST
dalagan V;PRS
dalagan V;PROG;PRS
dalagan V;PRF;PST
dalagan V;FUT
dalagan V;PRF;PRS
dalagan V;NFIN
tindog V;PRF+PROG;FUT
tindog V;PRF;PST
tindog V;PROG;PRS
tindog V;NFIN
tindog V;FUT
tindog V;PRS
tindog V;PROG;PST
tindog V;PRF;FUT
tindog V;PRF+PROG;PST
tindog V;PROG;FUT
tindog V;PST
tindog V;PRF+PROG;PRS
tindog V;PRF;PRS
gusto/gustuhan V;PST
gusto/gustuhan V;PRS
gusto/gustuhan V;NFIN
tudlo V;FUT
tudlo V;PRS
tudlo V;PROG;PRS
tudlo V;NFIN
tudlo V;PRF;PST
tudlo V;PRF;PRS
tudlo V;PST
tudlo V;PRF;FUT
tudlo V;PRF+PROG;PST
tudlo V;PRF+PROG;FUT
tudlo V;PRF+PROG;PRS
tudlo V;PROG;PST
tudlo V;PROG;FUT
himo V;PRF+PROG;PST
himo V;PRF;FUT
himo V;NFIN
himo V;PST
himo V;PRF;PRS
himo V;PRF+PROG;PRS
himo V;PROG;PRS
himo V;PRF+PROG;FUT
himo V;PROG;PST
himo V;PRS
himo V;PROG;FUT
himo V;FUT
himo V;PRF;PST
hunahuna V;PST
hunahuna V;PRF+PROG;FUT
hunahuna V;FUT
hunahuna V;PROG;PRS
hunahuna V;PROG;PST
hunahuna V;PRF;PST
hunahuna V;PRF+PROG;PRS
hunahuna V;PRF+PROG;PST
hunahuna V;PRF;PRS
hunahuna V;PROG;FUT
hunahuna V;PRF;FUT
hunahuna V;PRS
hunahuna V;NFIN
higugma/higugmaon V;PST
higugma/higugmaon V;FUT
higugma/higugmaon V;NFIN
higugma/higugmaon V;PROG;PRS
higugma/higugmaon V;PRF;PST
higugma/higugmaon V;PRS
higugma/higugmaon V;PRF;FUT
higugma/higugmaon V;PROG;PST
higugma/higugmaon V;PRF;PRS
higugma/higugmaon V;PRF+PROG;PST
higugma/higugmaon V;PRF+PROG;FUT
higugma/higugmaon V;PRF+PROG;PRS
higugma/higugmaon V;PROG;FUT
sira V;FUT
sira V;PROG;FUT
sira V;PRF+PROG;FUT
sira V;PROG;PRS
sira V;PRF+PROG;PST
sira V;PRF;PST
sira V;PRS
sira V;PROG;PST
sira V;PRF;FUT
sira V;PRF;PRS
sira V;PRF+PROG;PRS
sira V;NFIN
sira V;PST
sugod V;PRF+PROG;PST
sugod V;PROG;FUT
sugod V;PRF+PROG;PRS
sugod V;PRF+PROG;FUT
sugod V;PRF;PST
sugod V;PRF;PRS
sugod V;PROG;PST
sugod V;FUT
sugod V;NFIN
sugod V;PROG;PRS
sugod V;PRS
sugod V;PRF;FUT
sugod V;PST
singgit V;PROG;PRS
singgit V;PRF;FUT
singgit V;PRF+PROG;FUT
singgit V;FUT
singgit V;PRS
singgit V;PROG;FUT
singgit V;NFIN
singgit V;PRF;PST
singgit V;PST
singgit V;PRF;PRS
singgit V;PRF+PROG;PRS
singgit V;PROG;PST
singgit V;PRF+PROG;PST
kita/pangita V;PRF+PROG;PRS
kita/pangita V;PRS
kita/pangita V;PRF;PRS
kita/pangita V;PROG;FUT
kita/pangita V;NFIN
kita/pangita V;PROG;PRS
kita/pangita V;PRF+PROG;FUT
kita/pangita V;PRF;FUT
kita/pangita V;FUT
kita/pangita V;PST
kita/pangita V;PROG;PST
kita/pangita V;PRF;PST
kita/pangita V;PRF+PROG;PST
istar V;NFIN
istar V;PRF;FUT
istar V;PRF+PROG;PST
istar V;PRF+PROG;FUT
istar V;PRF;PST
istar V;PRS
istar V;PRF+PROG;PRS
istar V;PRF;PRS
istar V;FUT
istar V;PST
istar V;PROG;FUT
istar V;PROG;PRS
istar V;PROG;PST
lakat V;PRF+PROG;FUT
lakat V;PROG;PRS
lakat V;PROG;FUT
lakat V;PROG;PST
lakat V;PRF+PROG;PST
lakat V;FUT
lakat V;PRF;FUT
lakat V;PRF;PRS
lakat V;PRS
lakat V;NFIN
lakat V;PRF+PROG;PRS
lakat V;PRF;PST
lakat V;PST
obra V;PRF;PRS
obra V;NFIN
obra V;PRF+PROG;FUT
obra V;PROG;PRS
obra V;PRS
obra V;PRF+PROG;PRS
obra V;FUT
obra V;PRF;PST
obra V;PST
obra V;PRF;FUT
obra V;PROG;FUT
obra V;PROG;PST
obra V;PRF+PROG;PST
halok/halukan V;PROG;PST
halok/halukan V;PROG;FUT
halok/halukan V;PRF+PROG;PRS
halok/halukan V;PRF+PROG;PST
halok/halukan V;PROG;PRS
halok/halukan V;NFIN
halok/halukan V;PRF;PST
halok/halukan V;FUT
halok/halukan V;PRF;PRS
halok/halukan V;PRS
halok/halukan V;PRF+PROG;FUT
halok/halukan V;PST
halok/halukan V;PRF;FUT
desisyon V;PRF+PROG;PRS
desisyon V;PRF+PROG;PST
desisyon V;PST
desisyon V;FUT
desisyon V;PROG;FUT
desisyon V;PRF;FUT
desisyon V;PRF;PST
desisyon V;PRF+PROG;FUT
desisyon V;PRS
desisyon V;PRF;PRS
desisyon V;PROG;PST
desisyon V;NFIN
desisyon V;PROG;PRS
hampang V;PRF;FUT
hampang V;PST
hampang V;PROG;PST
hampang V;PRF;PRS
hampang V;PRF+PROG;FUT
hampang V;PRS
hampang V;PROG;PRS
hampang V;PRF;PST
hampang V;NFIN
hampang V;PROG;FUT
hampang V;PRF+PROG;PRS
hampang V;PRF+PROG;PST
hampang V;FUT
hular V;PST
hular V;PROG;PRS
hular V;NFIN
hular V;PRF;PST
hular V;PRF+PROG;PST
hular V;PRF+PROG;PRS
hular V;PRF+PROG;FUT
hular V;PROG;PST
hular V;PROG;FUT
hular V;PRS
hular V;PRF;PRS
hular V;PRF;FUT
hular V;FUT
baton V;PROG;FUT
baton V;PRS
baton V;PROG;PRS
baton V;PRF+PROG;PRS
baton V;FUT
baton V;PROG;PST
baton V;PRF+PROG;FUT
baton V;PRF;FUT
baton V;PST
baton V;PRF+PROG;PST
baton V;PRF;PST
baton V;NFIN
baton V;PRF;PRS
|
f8ed59871259e8a2509e64c59d8db7ba84798ecf
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/629/CH12/EX12.7/example12_7.sce
|
7c0f8a7b0dd940532fa69211ddafab6ec0a822d6
|
[] |
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
| 291
|
sce
|
example12_7.sce
|
clear
clc
//Example 12.7 TEST SECTION SIZE IN SUPERSONIC WIND TUNNEL
k=1.4;
M=3; //Mach number
Ao=10; //area[cm^2]
//Cross-sectional area
A=Ao*(1/M)*{(1+[(k-1)/2]*M^2)/((k+1)/2)}^((k+1)/(2*(k-1))) //[cm^2]
printf("\n The cross-sectional area of the test section, A = %.1f cm^2.\n",A)
|
87945323a58ff23564449ac627a63d9d0216fe25
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1793/CH16/EX16.7/16Q7.sce
|
9955652555400e70ade0aec479fbb9df772610c2
|
[] |
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
| 134
|
sce
|
16Q7.sce
|
clc
a=2500
//doing for the first values only
Bf=4
Bp=0.305
q=a/Bf^2
Sep=4
Sef=Sep*(2*Bf/(Bf+Bp))^2
printf('Sef = %f mm',Sef)
|
e4b992a0a347241a3c62497777df627555c0cd7f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3845/CH23/EX23.4/Ex23_4.sce
|
40df84903d66177fcca86fe32c1cf38877747b3f
|
[] |
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
| 717
|
sce
|
Ex23_4.sce
|
//Example 23.4
//Also see Example 23.3
delta_theta=%pi/2;//1/4th of a revolution (rad)
delta_t=15*10^-3;//Time (s)
omega=delta_theta/delta_t;//Angular velocity (rad/s)
//Angular velocity in rad/s can be converted to rpm by multiplying by (60/(2*%pi)). Rpm may be found to be 1000 in this example
N=200;//Number of loops, See Example 23.3
r=5*10^-2;//Radius of coil (m), See Example 23.3
A=%pi*r^2;//Area of loop (m^2), See Example 23.3
B=1.25;//Magnetic field strength (T), See Example 23.3
emf_0=N*A*B*omega;//Maximum emf (V)
printf('Maximum emf, emf_0 = %0.1f V',emf_0)
//Answer varies due to round off error
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|
a9440915b886df6bb2e7c8ab86cf526dad046874
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/69/CH5/EX5.1/5_1.sce
|
9f8f2cdd402dcd1e6eeb1efe5ef5ba850a13a344
|
[] |
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
| 617
|
sce
|
5_1.sce
|
clear; clc; close;
Vt=26*(10^(-3)); //thermal voltage=26mV
Vi=3*(10^(-3));
Ie=4*(10^(-3));; //emitter current=4mV
alpha=0.991; //common base amplification factor
Rl=610; //Load Resistance(in ohms)
//Part-1 -> Determinig input impedance
re = Vt/Ie;
disp(re,'Input impedance(ohms) :');
//Part-2 -> Calculating the voltage gain
Ii = (Vi/re);
Ie = Ii;
Ic=alpha*Ie;
Vo=Ic*Rl;
Av = Vo/Vi;
disp(Av,"Voltage gain :");
//Part-3 -> Calculating the output impedance and current gain
disp(%inf,"The output impedance(ohms) is :");
Ai = -Ic/Ie;
disp(Ai,"Current gain is :");
|
89158641b4c7940d88081b88bb296dae11fb2432
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3020/CH18/EX18.16/ex18_16.sce
|
0746fec9b854242862dbfe8f8fb592b1f9d83c7f
|
[] |
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
| 400
|
sce
|
ex18_16.sce
|
clc;
clear all;
T=300;//temperature in kelvin
k=1.38e-23;//boltzman constant
h=6.626e-34;//planks constant
e = 1.6e-19; // Charge of an electron
Eg=1.1;
mo =9.1e-31; // mass of electron
me=0.31; // Effective mass of electron
r = ((2*%pi*k*T*me*mo)/(h^2))^1.5;// Temporary variable
s = exp((-Eg*e)/(2*k*T));// Temporary variable
ni=2*r*s
disp('m^-3',ni,'the intrinsic concentration is:')
|
4a875f3ea53cefc03a6c54bde0789527cef9484b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/377/CH10/EX10.7/10_7.sce
|
f50b1b7717d63e22f8f3187ad843427e9ad555d1
|
[] |
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
| 444
|
sce
|
10_7.sce
|
disp("Peo=nc^2/Ne");
Ne1=10^18;
nc=1.5*10^10;
Peo1=nc^2/Ne1;
printf('\n The value of Peo when Ne=10^18 is %f/cm^3',Peo1);
Ne2=10^19;
Peo2=nc^2/Ne2;
printf('\n The value of Peo when Ne=10^19 is %f/cm^3',Peo2);
ni=1.5*10^10;
a=0.026; //say a=K*T
Eg=0.030; //Eg=ΔEg
Peo3=(ni^2)*(exp(Eg/a))/Ne1; //considering the effect of bandgap narrowing
printf('\n The value of Peo considering the effect of bandgap narrowing is %f/cm^3',Peo3);
|
3409da9d39763a3b351dad928ea2005e8c6eef2e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1847/CH6/EX6.2/Ch06Ex2.sce
|
3dac45784545d06d378973e8fc15bbd26f6f53d7
|
[] |
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
| 444
|
sce
|
Ch06Ex2.sce
|
// Scilab Code Ex6.2: : Page-6.19 (2009)
clc; clear;
e = 1.6e-019; // Energy equivalent of 1 eV, J/eV
E_F = 2.0*e; // Fermi level of Po, J
m = 9.1e-031; // Mass of an electron, kg
// As E_F = 1/2*m*v^2, solving for v
v = sqrt(2*E_F/m); // Velocity of electron at Fermi level, m/s
printf("\nThe Velocity of electron at Fermi level = %4.2e m/s", v);
// Result
// The Velocity of electron at Fermi level = 8.39e+05 m/s
|
408cf70ebfc458eb327b1dce248882e8c1085527
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3840/CH7/EX7.3/Ex7_3.sce
|
a41bba789ca67f3ce0c1a52a3985ecc85f61cbee
|
[] |
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
| 270
|
sce
|
Ex7_3.sce
|
clear
//
//
//
//Variable declaration
mewr=15 //relative permeability
H=250 //magnetic field intensity(amp/m)
mew0=4*%pi*10**-7
//Calculation
M=H*(mewr-1) //magnetisation(A/m)
B=mew0*(H+M) //magnetic flux density(wb/m**2)
//Result
|
a258cc9b6f91799aa01535f877f72812c46b7ec2
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/browsable_source/2.1/Unix/scilab-2.1/demos/bike/macros/datopt.sci
|
ec02662f8b9808f76ee2c9a0f110653df87905de
|
[
"MIT",
"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
|
datopt.sci
|
paramopt=[1,1,1,1];
boundsmin=[-0.4,-4];
boundsmax=[ 0.4, 4];
u0=zeros(ncontr,nn-1);
|
7a55313809a2095a579dc7d9fcb583d0350bc37b
|
c6515791fea5828996a3924a74b5358852bc69f0
|
/ap6_metodo_gradiente&wolfe/BFGS_Wolfe.sci
|
67a9e66b17fd6806bb66136dd5c0b030ac121710
|
[] |
no_license
|
fernandascovino/fgv_math_modeling_3
|
366f05faa9fc657473acad8c1061b7c6feed8d4a
|
11853e0bf2c05ad2df4fb369dfa922fc50c68ceb
|
refs/heads/master
| 2023-02-24T23:03:18.431724
| 2021-01-31T18:08:16
| 2021-01-31T18:08:16
| 334,722,683
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 478
|
sci
|
BFGS_Wolfe.sci
|
function [x, f, g, k]= BFGS_Wolfe(t,x0,m,Sim,e)
[f g] = Sim(x0)
xk = x0, k = 0, m1 = 0.1, m2 = 0.9
Wk = eye(2,2)
while (norm(g,%inf) > e) & (k < m)
d = -Wk*g
xk = x; [fk gk] = Sim(x)
x = xk + t*d; [f g] = Sim(x)
k = k+1
t = Busca_de_Wolfe(x,d,t,Sim,10,m1,m2,e)
sk = x - xk; yk = g - gk
Wk = Wk - [(sk*yk'*Wk + Wk*yk*sk')/yk'*sk] + [1 + (yk'*Wk*yk)/yk'*sk]*(sk*sk')/yk'*sk
end
endfunction
|
92dcbfaad7365b91fb2a70445f2241a4c75e3f9f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1859/CH3/EX3.9/exa_3_9.sce
|
3784281e3db33e6bbe2a3346ed3f6f4d88ed25e3
|
[] |
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
| 409
|
sce
|
exa_3_9.sce
|
// Exa 3.9
clc;
clear;
close;
// Given data
Rm= 1.0;// in ohm
Rse= 4999;// in ohm
V=250;// full scale deflection voltage in volt
// Formula V= Im*(Rm+Rse)
Im= V/(Rm+Rse);// in amp
// Part(a)
Rs= 1/4999;// in ohm
Is= Im*Rm/Rs;//in amp
I= Im+Is;// in amp
disp(I,"Current range in amp")
// Part(b)
I=50;// in amp
N=I/Im;
Rs= Rm/(N-1);// in ohm
disp(Rs,"Required shunt resistance in ohm")
|
eff282f1a6df160177660e2852c3d95b1051b1ab
|
717ddeb7e700373742c617a95e25a2376565112c
|
/854/CH1/EX1.1/Example1_1.sce
|
6a38da19631b2ed5b85a4d34c2f5d472c01ceceb
|
[] |
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
| 276
|
sce
|
Example1_1.sce
|
//clear//
//Caption:Program to find the unit vector
//Example1.1
//page 8
G = [2,-2,-1]; //position of point G in cartesian coordinate system
aG = UnitVector(G);
disp(aG,'Unit Vector aG =')
//Result
//Unit Vector aG =
// 0.6666667 - 0.6666667 - 0.3333333
|
a1dd8a97c2bfcdba56d98a058ab4366bc8c495d7
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.4/macros/m2sci/sci_sparse.sci
|
64b4025444bb601e4fd8a6c17b0009a5f2ac8a53
|
[
"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
| 1,426
|
sci
|
sci_sparse.sci
|
function [stk,txt,top]=sci_sparse()
// Copyright INRIA
txt=[]
V1=gettempvar(1)
V1=gettempvar(2)
if rhs==6 then rhs=5;top=top-1,end
if rhs==1 then
stk=list('sparse('+stk(top)(1)+')','0',stk(top)(3),stk(top)(4),'5')
elseif rhs==2 then
stk=list('sparse([],[],['+stk(top-1)(1)+','+stk(top)(1)+'])','0',stk(top-1)(1),stk(top)(1),'5')
top=top-1
elseif rhs==3 then
s1=stk(top-2)
s2=stk(top-1)
s3=stk(top)
if s1(4)=='1'&s2(4)=='1' then
stk=list('sparse(['+s1(1)+','+s2(1)+'],'+s3(1)+')','0','?','?','5')
elseif or(s1(1)==vnms(:,1))&or(s2(1)==vnms(:,1)) then
stk=list('sparse(['+s1(1)+'(:),'+s2(1)+'(:)],'+s3(1)+')','0','?','?','5')
else
txt=[V1+' = '+s1(1)+';'+V1+'='+V1+'(:)';
V2+' = '+s2(1)+';'+V2+'='+V2+'(:)'];
stk=list('sparse(['+V1+','+V2+'],'+s3(1)+')','0','?','?','5')
end
top=top-2
elseif rhs==5 then
s1=stk(top-4)
s2=stk(top-3)
s3=stk(top-2)
s4=stk(top-1)
s5=stk(top)
if s1(4)=='1'&s2(4)=='1' then
stk=list('sparse(['+s1(1)+','+s2(1)+'],'+s3(1)+')','0','?','?','5')
elseif or(s1(1)==vnms(:,1))&or(s2(1)==vnms(:,1)) then
stk=list('sparse(['+s1(1)+'(:),'+s2(1)+'(:)],'+s3(1)+',['+s4(1)+','+s5(1)+'])','0','?','?','5')
else
txt=[V1+' = '+s1(1)+';'+V1+'='+V1+'(:)';
V2+' = '+s2(1)+';'+V2+'='+V2+'(:)'];
stk=list('sparse(['+V1+','+V2+'],'+s3(1)+',['+s4(1)+','+s5(1)+'])','0','?','?','5')
end
top=top-4
end
|
8edd9fc5ca45273444da5548f7d548f3436103d9
|
f1d98f30cf89c5cd6339af6cecba8f945b5ec75a
|
/eq.sci
|
eed45cbbcb81f65065c33f148092dd857e65e044
|
[] |
no_license
|
robin29man/scilab_practice
|
1a43a27b7fd732fb8ad8a34e0665351467a10678
|
5dbd37cd3a0f35d238bd1cc519f903924036ed51
|
refs/heads/master
| 2020-05-24T16:34:56.604967
| 2019-05-22T13:32:39
| 2019-05-22T13:32:39
| 187,362,476
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 60
|
sci
|
eq.sci
|
function y=eq(x)
y = 2 * x^2 + 3 * x + 4
endfunction
|
0f9bec857dc598c19804d024fb0f759758afb5c0
|
717ddeb7e700373742c617a95e25a2376565112c
|
/40/CH8/EX8.9c/Exa_8_9c.sce
|
67632bb969ac725e424898f32784da206bd4d70d
|
[] |
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
| 343
|
sce
|
Exa_8_9c.sce
|
//DFT and DFS of sinusoids
n2=0:1/840:6/21;
xt=4*sin(72*%pi*n2')-6*cos(12*%pi*n2');
n=0:1/21:6/21;//F=3/12 hence N=12
xn=4*sin(72*%pi*n')-6*cos(12*%pi*n');
XDFT=abs(dft(xn,-1));
n1=0:6;
a=gca();
a.x_location="origin";
plot2d(n2,xt);
plot2d3('gnn',n,xn);
xset('window',1);
b=gca();
b.x_location="origin";
plot2d3('gnn',n1,XDFT);
|
f6a74779c1fd7686e0bc0883c145c91239729de8
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3756/CH3/EX3.8/Ex3_8.sce
|
fe0d0b0102de8e80734469e5f85ebead5ad99682
|
[] |
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
| 384
|
sce
|
Ex3_8.sce
|
clc
//
//
//
//Variable declaration
lambdaa=4000*10**-10 //Wavelength
mul=1.55821 //Refractive index of left landed
mur=1.55810 //Refractive index of right landed
t=2*10**-3 //thickness
//Calculations
orot=(180/%pi)*((2*3.14*(t*(mul-mur)))/lambdaa)
//Result
printf("\n The Amount of optical rotation produced is %3.0f degrees",orot)
|
1130498fce3a87218e27c50cdb8d35c6969ef605
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1964/CH12/EX12.20/ex12_20.sce
|
48bc3072a8389a1ffc2b113d5b4dc1bf2190e044
|
[] |
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
|
ex12_20.sce
|
//Chapter-12, Example 12.20, Page 367
//=============================================================================
clc
clear
//INPUT DATA
a=10;//conductivity in s/m
un=50*10^-4;//electron mobility in m^2/V-s
q=1.6*10^-19;//charge in coulombs
//CALCULATIONS
n=(a/(un*q));//electron concentration in m^-3
mprintf("electron concentration is %g m^-3 ",n)
//=================================END OF PROGRAM=======================================================================================================
|
3e8552189d44465e9d55d4921703f00201ab29a8
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2438/CH6/EX6.15/Ex6_15.sce
|
9f28d84ea7bf3c974db905c0621b8c13e1e4a24b
|
[] |
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
| 611
|
sce
|
Ex6_15.sce
|
//==============================================================================
// chapter 6 example 15
clc;
clear;
//input data
n = 12; //number of plates
er = 4; //relative permitivty
d = 1.0*10^-3; //distance between plates in m
A = 120*150*10^-6; //area in m^2
e0 = 8.854*10^-12; // in F/m
//calculation
c = (n-1)*e0*er*A/d; //capacitance in F
//result
mprintf('capacitance=%3.4e.F\n',c);
//==============================================================================
|
a09bbb423fb9b7733343ed1190e673090b4fcbd5
|
717ddeb7e700373742c617a95e25a2376565112c
|
/3044/CH8/EX8.5/Ex8_5.sce
|
3fa395f8efc7edfa78487389f0446ed5c97d1234
|
[] |
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
| 852
|
sce
|
Ex8_5.sce
|
// Variable declaration
val1 = 0
val2 = 0
Mine1 = [8260,8130,8350,8070,8340]
Mine2 = [7950,7890,7900,8140,7920,7840]
alpha = 0.01 // level of significance
deg = length(Mine1) + length(Mine2) - 2 // Degree of freedom
Mean1 = sum(Mine1)/length(Mine1)
Mean2 = sum(Mine2)/length(Mine2)
// Calculation
for i = 1:length(Mine1)
val1 = val1 + (Mean1-Mine1(i))^2
end
for i = 1:length(Mine2)
val2 = val2 + (Mean2-Mine2(i))^2
end
var = (val1 + val2)/(length(Mine1)-1 + length(Mine2)-1)
std_dev = sqrt(var)
t = (Mean1 - Mean2)/(std_dev*(sqrt(1.0/length(Mine1) + 1.0/length(Mine2))))
// Result
if(t>3.250) then
printf ( "Null hypothesis rejected")
printf ( "Average heat producing capacity is not same")
else
printf ( "Null hypothesis accepted")
printf ( "Average heat producing capacity is same")
end
|
ed9f76f2ae63c9008a55167474c798bc60877ddb
|
04236ab1161ec860ab3b1d0c3225fcbdc54923a3
|
/2012.d/3-remez.d/algofin_remez.sci
|
66b03b4c6efecff955283bc609be8a1399815580
|
[
"MIT"
] |
permissive
|
homeostasie/petits-pedestres
|
957695cdb8a7823ed2e3fe79f7b441410928cba9
|
557c810e26412bc34ebe063dcd904affe5a27855
|
refs/heads/master
| 2023-05-31T03:35:13.365160
| 2023-04-26T21:47:56
| 2023-04-26T21:47:56
| 163,504,589
| 2
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 834
|
sci
|
algofin_remez.sci
|
function [X_n]=F_alog_remez(Cprime,X_n)
l=0
if X_n(1)<=Cprime & Cprime<X_n(2)
if sign(fmoinsp(X_n(2))) == sign(fmoinsp(Cprime))
X_n(2)=Cprime
disp('display',10)
else
[X_n]=F_permut(X_n,Cprime,1)
disp('display',20)
end
l=1
end
if l==0
if X_n(n)< Cprime & Cprime <=X_n(n+1)
if sign(fmoinsp(X_n(n))) == sign(fmoinsp(Cprime))
X_n(n)=Cprime
disp('display',30)
else
[X_n]=F_permut(X_n,Cprime,-1)
disp('display',40)
end
l=1
end
end
if l==0
k=3
while (X_n(k)<Cprime)
k=k+1
end
if sign(fmoinsp(X_n(k)))== -sign(fmoinsp(Cprime))
X_n(k-1)=Cprime
disp('display',50)
l=1
else
X_n(k)=Cprime
disp('display',60)
l=1
end
end
endfunction
|
e43aa6945d9eb95f42f498f4c645e75c1a95e8b9
|
dc5a2fe4380e1453a12f15f5080b10f3ababb9de
|
/AutomationTools/bin/1.0/common/ATLAS/tools/txtfile/tst.tst
|
f9d65a1023ff5cc14f203cdd6645898658eb5e21
|
[] |
no_license
|
jameshilliard/PythonCode
|
f72ad62bb8b8cafbc94cbe7c0d3065343fdf0f98
|
422543bc049f57a67d53ec0b89caef076297cdc5
|
refs/heads/master
| 2020-04-09T00:06:25.689609
| 2015-03-14T13:14:34
| 2015-03-14T13:14:34
| 32,722,067
| 3
| 0
| null | 2015-03-23T09:21:52
| 2015-03-23T09:21:52
| null |
UTF-8
|
Scilab
| false
| false
| 1,110
|
tst
|
tst.tst
|
'sh_acf_coax_2pc.tst' ,
'sh_acf_ether_2pc.tst' ,
'sh_ad_coax_2pc.tst' ,
'sh_addns_coax_2pc.tst' ,
'sh_addns_ether_2pc.tst' ,
'sh_ad_ether_2pc.tst' ,
'sh_ads_coax_2pc.tst' ,
'sh_ads_ether_2pc.tst' ,
'sh_adt_coax_2pc.tst' ,
'sh_adt_ether_2pc.tst' ,
'sh_aipad_lan_ether.tst' ,
'sh_aipad_staticdhcp.tst' ,
'sh_aipad_wan_coax.tst' ,
'sh_aipad_wan_ether.tst' ,
'sh_ala_coax_2pc.tst' ,
'sh_ala_ether_2pc.tst' ,
'sh_amc_coax_2pc.tst' ,
'sh_amc_ether_2pc.tst' ,
'sh_ara_coax_2pc.tst' ,
'sh_ara_ether_2pc.tst' ,
'sh_ard_coax_2pc.tst' ,
'sh_ard_ether_2pc.tst' ,
'sh_arp_ether_0.tst' ,
'sh_arr_coax_2pc.tst' ,
'sh_arr_ether_2pc.tst' ,
'sh_asys_2pc.tst' ,
'sh_asys_4pc.tst' ,
'sh_au_coax_2pc.tst' ,
'sh_au_ether_2pc.tst' ,
'sh_bcc_all.tst' ,
'sh_bcc_auto2pc.tst' ,
'sh_bcc_leasetime.tst' ,
'sh_bce_all.tst' ,
'sh_bce_leasetime.tst' ,
'sh_mtu_lancoax_to_waneth.tst' ,
'sh_mtu_laneth_to_wancoax.tst' ,
'sh_nc_all.tst' ,
'sh_nhoe_coax_0.tst' ,
'sh_nhoe_ether_0.tst' ,
'sh_nhoe_leasetime.tst' ,
'sh_pc_coax_0.tst' ,
'sh_pc_ether_0.tst' ,
'sh_wppp2_all.tst' ,
'sh_wppp_all.tst' ,
|
720ffa90c2f98295ef34635d180eae1d74608678
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2672/CH4/EX4.17/Ex4_17.sce
|
06ba72d49e4e10e32b0a1bd5db6a927672eb6b9b
|
[] |
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
|
Ex4_17.sce
|
//Example 4_17
clc;
clear;
close;
format('e',9);
//given data :
Nd=10^17;//atoms/cm^3
ni=1.5*10^10;//atoms/cm^3
n0=Nd;//atoms/cm^3(For Nd>>ni)
p0=ni^2/n0;//atoms/cm^3
disp(p0,"Equilibrium hole concentration(cm^-3)")
|
f16b5863fad2e68b28d7fff44d7ada6dd68c3366
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3665/CH4/EX4.1/Ex4_1.sce
|
d418666ff85c171d79be6161c735a8a66caa5168
|
[] |
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
| 287
|
sce
|
Ex4_1.sce
|
clc//
//
//
//Variable declaration
Ev=1;
k=1.38*10^-23; //boltzmann constant(J/K)
e=1.6*10^-19; //charge(eV)
//Calculation
r=Ev/(2.303*1000*k/e);
n=10^r; //ratio of n1000/n500
//Result
printf("\n ratio of vacancies is %0.3f *10^5",n/10^5)
|
284a8ec1a98d17bef7b4f4681a91ef348f21d3a0
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2183/CH9/EX9.6/Ex_9_6.sce
|
108c73b98db3cc364eb5909859e2e89c65675bfe
|
[] |
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
| 392
|
sce
|
Ex_9_6.sce
|
//Example 9.6 // refractive index and 3dB spectral bandwidth
clc;
clear;
close;
//given data :
lamda=1.5*10^-6;// in m
L=300*10^-6;// in m
del_lamda=10^-9;// in m
n=lamda^2/(2*del_lamda*L);
disp(n,"refractive index , n = ")
R1=0.3;
R2=R1;
a=4.8;// in dB
Gs=10^(4.8/10);
c=3*10^8;
B=(c/(%pi*n*L)*asin((1-sqrt(R1*R2)*Gs)/(2*sqrt(sqrt(R1*R2)*Gs))))*10^-9;
disp(B," Spectral bandwidth,(GHz) = ")
|
c3acfee6313ce295bdcedff10788d76ea613658f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/557/CH14/EX14.3/3.sce
|
481fc49d90ada25446a418cb13c24376b109ba64
|
[] |
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
| 874
|
sce
|
3.sce
|
clc; funcprot(0);//Example 14.3
//Initializing the variables
Za_Zb = 10;
f = 0.008;
L = 100;
d1 = 0.05;
g = 9.81;
d2 = 0.1;
//Calculations
function[z] = flowRate(d)
D = 1.5 + 4*f*L/d ; // Denominator in case of v1^2
A = %pi*d^2/4;
v = sqrt(2*g*Za_Zb/D);
z = A*v;
endfunction
Q1 = flowRate(d1);
Q2 = flowRate(d2);
Q = Q1+Q2;
D = poly(0, 'D');
v = 4*Q/(%pi*D^2);
X = 1.5 + 4*f*L/D;
f = 10*2*g/(X*v^2) - 1;
f = numer(f) ;
diameter = roots(f); // Taking roots of numerator denominator will be multiplied by zero
i = 1;
while (i<=length(diameter))
x = diameter(i);
if(imag(x) == 0) then
dia = diameter(i);
i= i+1;
else
i = i+1;
end
end
disp(dia*1000,"Diameter of single equivalent pipe(mm) :", Q2 ,"Flow throught pipe 2 (m3/s):", Q1 ,"Flow throught pipe 1 (m3/s):");
|
4ce4f3139b29a4ae5e240cb5d72324b87a6c0eae
|
717ddeb7e700373742c617a95e25a2376565112c
|
/2474/CH8/EX8.7/Ch08Ex07.sce
|
a2caf0d74835045d84b8d06903c56fd7ca1c996c
|
[] |
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
| 494
|
sce
|
Ch08Ex07.sce
|
// Scilab code Ex8.7: Pg.332-333 (2008)
clc; clear;
k = 1.38e-023; // Boltzmann constant, J/m/K
T = 2.7; // Temperature to which the blackbody is cooled, K
c = 3e+008; // Speed of light, m/s
h = 6.63e-034; // Planck's constant, Js
rho_photon = 8*%pi*(k*T/(c*h))^3*integrate('x^2/(exp(x)-1)', 'x', 0, 10);
printf("\nThe photom density of the universe = %4.2e photons/metre-cube", rho_photon);
// Result
// The photom density of the universe = 3.96e+008 photons/metre-cube
|
2a6b017c3d09590f47047d4c0ffdad4d823e38cc
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/647/CH1/EX1.7/Example1_7.sce
|
4020671196d1b3b297371b98b8d488f4c986412a
|
[] |
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
| 418
|
sce
|
Example1_7.sce
|
clear;
clc;
// Example: 1.7
// Page: 9
// Solution
printf("Example: 1.7 - Page: 9\n\n");
//*****Data*****//
P = 560*10^3;// [Pa]
Vinit = 3;// [cubic m]
Vfinal = 5;// [cubic m]
Wext = 210*10^3;// [J]
//*************//
W = P*(Vfinal - Vinit);// [J]
// Again the system receives 210 kJ of work from the external agent.
W = W - Wext;// [J]
printf("Actual Work done by the system is %.1e J\n",W);
|
a89cdf0deced121e73d071dd70bc4b314929b934
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1442/CH12/EX12.7/12_7.sce
|
1691d47380d543ffbc3104d42246b9d0ff854380
|
[] |
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
| 223
|
sce
|
12_7.sce
|
clc
//initialisation of variables
x= 0.79
P0= 101 //kPa
P= 20 //Mpa
V= 0.032 //m^3
//CALCULATIONS
p= x*P0
Wrev= P*10^3*V*(log(P/(p*10^-3))+((p*10^-3)/P)-1)
//RESULTS
printf (' maximum useful work= %.1f kJ',Wrev)
|
f6232234104be92a71f37728195ac087c0d6ded5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1523/CH2/EX2.38/2_38.sce
|
50b176e862052483a61fc621a2fc5491aba3abc3
|
[] |
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
| 534
|
sce
|
2_38.sce
|
//Network Theorem 1
//page no-2.40
//example2.38
disp("Applying KCL to node a:");
disp("2*Va-0.5*Vb-0.5*Vc = 5");....//equation 1
disp("Applying KCL to node b:");
disp("-3/2*Va+5/6*Vb+2/3*Vc = -1");...//equation 2
disp("Applying KCL to node c:");
disp("1/2*Va+1/3*Vb-31/30*Vc = -1");...//equation 3
disp("Solving equations 1,2 and 3");...//solving equations in matrix form
A=[2 -0.5 -0.5;-3/2 5/6 2/3;0.5 1/3 -31/30 ];
B=[5 -1 0]'
X=inv(A)*B;
disp(X);
disp("Va= 4.303 V");
disp("Vb= 3.87 V");
disp("Vc= 3.33 V");
|
9a4616a121c52f4ac3e61a877801ba2a4fd7a013
|
e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4
|
/New LSTMAttn Model/.data/form-split/GOLD-TEST/mwf.tst
|
03675bc67cc95c33d66d1ba109a277abcbcb25c8
|
[] |
no_license
|
davidgu13/Lemma-vs-Form-Splits
|
c154f1c0c7b84ba5b325b17507012d41b9ad5cfe
|
3cce087f756420523f5a14234d02482452a7bfa5
|
refs/heads/master
| 2023-08-01T16:15:52.417307
| 2021-09-14T20:19:28
| 2021-09-14T20:19:28
| 395,023,433
| 3
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 5,149
|
tst
|
mwf.tst
|
ngi pungana V;IRR;PL;3;PST
nu thunungam V;SG;2;non{FUT}
la ngule V;IRR;SG;1;PST
ma ngimi V;IRR;SG;1;PST
na tjinangam V;SG;2;non{FUT}
i ngu V;IRR;SG;1
mi numi V;IRR;PC;2
e ngerrena V;PL;1;PST
ntha nginthanyi V;SG;1;PST
na ninnangi V;IRR;PC;2;PST
mi mina V;SG;1;PST
ma thama V;IRR;SG;2
la thule V;IRR;SG;2;PST
mi pumim V;PL;3;non{FUT}
mi ngumina V;PC;1;PST
rdi kuddi V;IRR;PL;3
mu ngumune V;PC;1;PST
mi mim V;SG;3;non{FUT}
ntji nantji V;PL;2;PST
rdu nguddu V;IRR;PL;1
mu numuy V;IRR;PC;2;PST
ma ne V;SG;2;PST
ya purne V;PC;3;PST
la killa V;IRR;PL;3
mu pumu V;IRR;SG;1+INCL
bi dina V;SG;2;PST
bu pubune V;PC;3;PST
li ngili V;SG;1;PST
na ninga V;SG;3;PST
bu buy V;IRR;SG;1;PST
a ka V;IRR;PC;3
bi ngubi V;IRR;PL;1
ya nurni V;PL;2;PST
ntha tjinthanyi V;SG;1+INCL;PST
bi nubi V;IRR;PL;2
me ngumena V;PL;1;PST
be bena V;IRR;SG;3;PST
mu kumuy V;IRR;PC;3;PST
nu ngunna V;IRR;PC;1
mu mu V;IRR;SG;1
na nginnanga V;PL;1;PST
e ngem V;SG;1;non{FUT}
ntji ngantjin V;PL;1;non{FUT}
ntji perra V;IRR;PC;3;PST
ntji nerra V;IRR;PC;2;PST
ni narni V;IRR;PL;2
be bena V;SG;3;PST
nu punne V;IRR;PC;3;PST
a ngarrane V;PC;1;PST
ngu ngunga V;IRR;PC;1
rra pirri V;SG;3;PST
buy dana V;SG;2;PST
ni thani V;IRR;SG;2
nga tjingam V;SG;2;non{FUT}
mi numina V;IRR;PL;2;PST
na ninnangam V;PL;2;non{FUT}
ba da V;IRR;SG;2
ntji nga V;IRR;SG;1
me numena V;IRR;PL;2;PST
rru ngurran V;SG;1;non{FUT}
a ngerra V;IRR;PC;1;PST
bi bi V;IRR;SG;3
rdi nguddana V;PL;1;PST
ni thardi V;SG;2;PST
rri tjirri V;SG;2;PST
ma thamam V;SG;1+INCL;non{FUT}
me ngume V;IRR;PC;1
mu pumuni V;PL;3;PST
e nerrene V;PC;2;PST
rdi nguddana V;PC;1;PST
na kinna V;IRR;PL;3
rdu nguddi V;IRR;PL;1;PST
la killa V;IRR;PC;3
bi kubi V;IRR;PL;3
ni narnam V;PL;2;non{FUT}
nu nguna V;SG;1;PST
la pulle V;IRR;PL;3;PST
bu nubuy V;IRR;PL;2;PST
ntji thantji V;SG;2;PST
ngi thungana V;IRR;SG;1+INCL;PST
ni narne V;IRR;PC;2
ntha ninthangi V;IRR;PL;2;PST
ngu ngungi V;IRR;SG;1;PST
ma pumi V;IRR;PL;3;PST
buy nubuy V;IRR;PC;2
ya ngurni V;PL;1;PST
buy ngubana V;IRR;PC;1;PST
li ngillingi V;IRR;PC;1;PST
bi pubina V;PC;3;PST
bi dim V;SG;2;non{FUT}
li tjilim V;SG;2;non{FUT}
na ngina V;IRR;SG;1
a pa V;IRR;SG;1+INCL
bi nubi V;IRR;PC;2
ntji tje V;IRR;SG;1+INCL;PST
i nuyu V;IRR;PL;2
ba ngube V;PC;1;PST
be ngubena V;IRR;PC;1;PST
mu kumuy V;IRR;PL;3;PST
bu kubu V;IRR;PC;3
nu na V;SG;3;PST
nu thuni V;IRR;SG;1+INCL;PST
rra nira V;IRR;PL;2
na pinnangi V;IRR;PC;3;PST
ba nube V;PL;2;PST
ma nume V;PC;2;PST
e tjena V;SG;1+INCL;PST
la pulle V;PL;3;PST
rra pe V;PC;3;PST
rru ngurrini V;SG;1;PST
nu punnungam V;PL;3;non{FUT}
ngi nungana V;IRR;PC;2;PST
be ngubem V;PL;1;non{FUT}
nga pinga V;IRR;PC;3;PST
rdu nuddi V;IRR;PL;2;PST
ngu ngungan V;SG;1;non{FUT}
a na V;IRR;PL;2
bi bina V;SG;1;PST
a ngarrani V;PL;1;PST
nu nunna V;IRR;PC;2
e tjem V;SG;1+INCL;non{FUT}
a narrane V;PC;2;PST
la tjilangi V;IRR;SG;1+INCL;PST
i pirrine V;PC;3;PST
ma ngama V;IRR;SG;1
mi nim V;SG;2;non{FUT}
ba bam V;SG;1;non{FUT}
ma numi V;IRR;PC;2;PST
mi ngumi V;IRR;PC;1
rri niri V;IRR;PC;2
bi bim V;SG;3;non{FUT}
rru numpan V;PL;2;non{FUT}
be dena V;SG;2;PST
buy thubam V;SG;1+INCL;non{FUT}
ye nguy V;IRR;SG;1
ngu thunguni V;SG;2;PST
ngu thungu V;IRR;SG;2
ntha nintha V;IRR;PL;2
e ngena V;SG;1;PST
bi pubina V;PL;3;PST
ntha nginthanyi V;PL;1;PST
ngu ngungu V;IRR;SG;1
e ngerrem V;PL;1;non{FUT}
ba be V;IRR;SG;1;PST
rru thurran V;SG;1+INCL;non{FUT}
rru thurri V;IRR;SG;1+INCL;PST
rdu nuddene V;PC;2;PST
rri ngirrini V;IRR;SG;1;PST
ngi pungana V;IRR;PC;3;PST
rdi nuddana V;PL;2;PST
rra nira V;IRR;PC;2
la kila V;IRR;SG;3
li tjilingi V;IRR;SG;2;PST
i nirrini V;PL;2;PST
la nilla V;IRR;PL;2
ba de V;IRR;SG;2;PST
buy nubana V;PL;2;PST
mi mi V;IRR;SG;3
ye kuy V;IRR;SG;3
e ke V;IRR;PL;3
la pulle V;IRR;PC;3;PST
e dem V;SG;3;non{FUT}
be nube V;IRR;PL;2
ntha tjinthangi V;IRR;SG;2;PST
na nginnangi V;IRR;PC;1;PST
rra pirangi V;IRR;PL;3;PST
ntha kintha V;IRR;SG;3
i yungi V;IRR;SG;3;PST
be bem V;SG;3;non{FUT}
na tjinanga V;SG;1+INCL;PST
la ngulam V;SG;1;non{FUT}
ntha ngantjim V;SG;1;non{FUT}
ya ngan V;SG;1;non{FUT}
ngu ngungan V;PL;1;non{FUT}
e nerrena V;PL;2;PST
nga pingam V;PL;3;non{FUT}
ni nganam V;SG;1;non{FUT}
li nilli V;IRR;PC;2
a ka V;IRR;SG;3
ngi ngungana V;IRR;PC;1;PST
rru thurrini V;SG;2;PST
la ngula V;IRR;SG;1
rdi nudde V;IRR;PC;2
ntji nga V;IRR;PC;1
be ngubena V;IRR;PL;1;PST
ba pube V;PC;3;PST
rra ngarrim V;SG;1;non{FUT}
rra tjirrangi V;IRR;SG;1+INCL;PST
ngi nungana V;IRR;PL;2;PST
ngu punge V;IRR;PC;3;PST
rdi puddana V;PC;3;PST
nga pinga V;PL;3;PST
i nirrine V;IRR;PC;2;PST
e tjena V;IRR;SG;1+INCL;PST
ngu nungu V;IRR;PL;2;PST
ye nuyem V;PL;2;non{FUT}
ma numi V;IRR;PL;2;PST
bu thubuni V;SG;1+INCL;PST
be pubena V;IRR;PL;3;PST
bi pubina V;IRR;PC;3;PST
rru puyi V;IRR;PL;3;PST
na kinna V;IRR;PC;3
rdu nudda V;IRR;PC;2
buy nubana V;IRR;PL;2;PST
la nilla V;IRR;PC;2
rdi puddam V;PL;3;non{FUT}
ngu nungan V;PL;2;non{FUT}
la pila V;IRR;SG;1+INCL
la nulla V;IRR;PC;2
rdu nguddini V;PL;1;PST
bu nubu V;IRR;PL;2
ye ngana V;IRR;SG;1;PST
nga nge V;IRR;PC;1
la thule V;IRR;SG;1+INCL;PST
nu ngunni V;PL;1;PST
ntji ngantji V;SG;1;PST
nu nunna V;PC;2;PST
li kili V;IRR;SG;3
rdi nuddana V;PC;2;PST
ngi thungana V;SG;1+INCL;PST
i yibim V;SG;3;non{FUT}
ba nubam V;PL;2;non{FUT}
|
3cf29339640782d439103c1c384657e09c66ac49
|
676ffceabdfe022b6381807def2ea401302430ac
|
/solvers/CompressibleFlowSolver/Tests/IsentropicVortex16_P1.tst
|
fa06a289bfd80037fc86e22a0df9fdc71d1e7e58
|
[
"MIT"
] |
permissive
|
mathLab/ITHACA-SEM
|
3adf7a49567040398d758f4ee258276fee80065e
|
065a269e3f18f2fc9d9f4abd9d47abba14d0933b
|
refs/heads/master
| 2022-07-06T23:42:51.869689
| 2022-06-21T13:27:18
| 2022-06-21T13:27:18
| 136,485,665
| 10
| 5
|
MIT
| 2019-05-15T08:31:40
| 2018-06-07T14:01:54
|
Makefile
|
UTF-8
|
Scilab
| false
| false
| 1,007
|
tst
|
IsentropicVortex16_P1.tst
|
<?xml version="1.0" encoding="utf-8"?>
<test>
<description>Euler Isentropic Vortex P=1</description>
<executable>CompressibleFlowSolver</executable>
<parameters>IsentropicVortex16_P1.xml</parameters>
<files>
<file description="Session File">IsentropicVortex16_P1.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="rho" tolerance="1e-12">0.0844975</value>
<value variable="rhou" tolerance="1e-12">0.168375</value>
<value variable="rhov" tolerance="1e-12">0.160536</value>
<value variable="E" tolerance="1e-12">0.4432</value>
</metric>
<metric type="Linf" id="2">
<value variable="rho" tolerance="1e-12">0.0814545</value>
<value variable="rhou" tolerance="1e-12">0.105266</value>
<value variable="rhov" tolerance="1e-12">0.127603</value>
<value variable="E" tolerance="1e-12">0.379398</value>
</metric>
</metrics>
</test>
|
d75e582b13e3d91c4ab858f64ef97a5e225cc935
|
a45f93853fdb67523e71e3e7fb88c4298eae1ef7
|
/Screens/Arms File Dialog Screen.tst
|
92280013bbe4893bd4a142f8b6bb14168923cb97
|
[] |
no_license
|
voarsh/Disney-Treasure-Planet-Battle-at-Procyon
|
68192cbfdf8b823bc8399e3ea1e62d4976b74aed
|
99cbbc70701ef6e8f9d95eba1052635de992910f
|
refs/heads/master
| 2020-04-16T01:44:03.761947
| 2016-06-08T10:25:05
| 2016-06-08T10:25:05
| 38,745,932
| 3
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 3,118
|
tst
|
Arms File Dialog Screen.tst
|
ScreenName String 'Arms File Dialog Screen'
ImplName String 'Dialog Screen'
ElementChunkArray Int 10
ScreenElementType Int 0
ImplName String 'Front End Dialog Screen Backdrop'
TabIndex Int 8
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 69, 169, 603, 420 ) # left,top,right,bottom
ScreenElementType Int 5
ImplName String 'Arms Profiles file list'
TabIndex Int 2
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 189, 248, 486, 338 ) # left,top,right,bottom
Font String 'Univers10'
ScreenElementType Int 1
ImplName String 'Load Or Save Arms Profile Button'
TabIndex Int 3
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 505, 284, 627, 328 ) # left,top,right,bottom
Font String 'BlackChancery16'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_SAVE'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Open Dialog Previous Button'
TabIndex Int 6
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 505, 337, 627, 381 ) # left,top,right,bottom
Font String 'BlackChancery16'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_CANCEL'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 3
ImplName String 'Profile File Name Text Entry'
TabIndex Int 4
Selectable Bool True
Enabled Bool True
ReferenceArea Rect( 279, 341, 439, 382 ) # left,top,right,bottom
Font String 'Univers10'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_NULL'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
ScreenElementType Int 2
ImplName String 'Arms Profile Info Label'
TabIndex Int 7
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 497, 248, 631, 274 ) # left,top,right,bottom
Font String 'UniversLightBold14'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
ScreenElementType Int 1
ImplName String 'Center Justify Label'
TabIndex Int 12
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 455, 216, 677, 249 ) # left,top,right,bottom
Font String 'UniversLightBold14'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_VICTORYPOINTS'
Color Colour( 0.000000, 0.000000, 0.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Center Justify Label'
TabIndex Int 13
Selectable Bool True
Enabled Bool True
ReferenceArea Rect( 466, 213, 666, 248 ) # left,top,right,bottom
Font String 'UniversLightBold14'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_VICTORYPOINTS'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Right Justify Label'
TabIndex Int 14
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 40, 352, 264, 371 ) # left,top,right,bottom
Font String 'Univers12'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_FILENAME'
Color Colour( 0.000000, 0.000000, 0.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Right Justify Label'
TabIndex Int 15
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 128, 350, 263, 369 ) # left,top,right,bottom
Font String 'Univers12'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_FILENAME'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
|
d283cb358109a34cd005ec5686ef0f8d8ad9dabe
|
f351a4a7bdf00ea8475a6a0a4a5a2f5c4935dc87
|
/Assignment-3-Sagnik-Mitra-2027.sce
|
a1059dcf31f5a46fba1084d776e40ca5385b3164
|
[] |
no_license
|
sagnikmitra/Scilab-Assignments
|
30baba52e92a0f7b5a5cc7d7fd21fb7d6b93dcfd
|
13db6031b547c2ac2a6ecfa4588610acfbf3676a
|
refs/heads/main
| 2023-08-12T20:33:08.561649
| 2021-09-24T18:22:42
| 2021-09-24T18:22:42
| 410,060,421
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,756
|
sce
|
Assignment-3-Sagnik-Mitra-2027.sce
|
//Q1. Addition Of Matrix
row = input("Enter Number Of Rows: ");
col = input("Enter Number Of Column: ");
disp("Please Enter First Mtrix:- ")
for i=1:row
for j=1:col
first_mat(i,j) = input("/");
end
end
disp("Please Enter Second Mtrix:- ");
for i=1:row
for j=1:col
second_mat(i,j) = input("/");
end
end
for i=1:row
for j=1:col
Add_matrix(i,j) = first_mat(i,j) + second_mat(i,j);
end
end
disp("The Addition Of Two Matrix Is:- ")
disp(Add_matrix)
//Q2. Multiplication Of Matrix
first_mat_row = input("Enter number of rows of the first Matrix: ");
first_mat_col = input("Enter number of columns of the first Matrix: ");
second_mat_row = input("Enter number of rows of the second Matrix: ");
second_mat_col = input("Enter number of columns of the second Matrix: ");
if first_mat_col ~= second_mat_row then
disp('First Matrix Column Does Not Match With Second Matrix Row ')
break;
end
disp('Enter first Matrix')
for i=1:first_mat_row
for j=1:first_mat_col
first_matrix(i,j)=input('\');
end
end
disp('Enter second Matrix')
for i=1:second_mat_row
for j=1:second_mat_col
second_matrix(i,j)=input('\');
end
end
matrix_mult=zeros(first_mat_row,second_mat_col);
for i=1:first_mat_row
for j=1:second_mat_col
for k=1:first_mat_col
matrix_mult(i,j)= matrix_mult(i,j)+ first_matrix(i,k)*second_matrix(k,j);
end
end
end
disp('Multiplication of the two matrices is')
disp( matrix_mult)
//Q3. Transpose Of Matrix
rows =input("Please Enter Rows of the Matrix: ");
cols =input("Please Enter Columns of the Matrix: ");
disp('Enter the Matrix')
for i=1:rows
for j=1:cols
matrixs(i,j)=input('\');
end
end
tran_matrix=zeros(rows,cols);
for i=1:cols
for j=1:rows
tran_matrix(i,j)=matrixs(j,i)
end
end
disp('Matrix Is')
disp(matrixs)
disp('Transposed Matrix')
disp(tran_matrix)
|
53cfdad089fdba33e914e035130ed206dfe098df
|
7c4b9b1a9fbaf516cc45784c88caa607b3fcc514
|
/be/mos_15A/scilab.sci
|
6276f18a23b096481b1e089bb362f73ac95c0c5c
|
[] |
no_license
|
ofg302/N7
|
d34a982395fe9a9c4c7580bdd564e7e6883f9dac
|
0373880e8eae942e717b295dfa14e85f421e861e
|
refs/heads/master
| 2020-04-16T18:52:59.784738
| 2014-04-22T04:37:51
| 2014-04-22T04:37:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,181
|
sci
|
scilab.sci
|
tox = 150E-8
Na = 5E16
Nd = 5E16
es = 1E-12
eox = es/3
q = 1.6E-19
Ut = 26E-3
ni = 1.6E10
printf('\n\t I.1')
Cox=eox/tox
G = sqrt(2*q*es*Na)/Cox
Phi_T = 2*Ut*log(Na/ni)
V_T0 = Phi_T+G*sqrt(Phi_T)
printf('\nPhi_T = %.2e\n',Phi_T)
printf('V_T0 = %.2e\n',V_T0)
printf('Gamma = %.2e\n',G)
printf('\n\t I.2')
Phi_mi = -0.56
Phi_ms = Phi_mi-Ut*log(Na/ni)
printf('\nPhi_ms = %.2e\n',Phi_ms)
Nss = 1E10
D_V0 = q*Nss*tox/eox
printf('\nD_V0 = %.2e\n',D_V0)
Vtp = V_T0-abs(Phi_ms)-abs(D_V0)
Vtn = V_T0+abs(Phi_ms)+abs(D_V0)
printf('\nVtp = %.2e\n',Vtp)
printf('Vtn = %.2e\n',Vtn)
printf('\n\t I.3')
D_Vtp = 0.7-Vtp
D_Vtn = Vtn-0.7
Nad_p = eox*D_Vtp/(tox*q)
Nad_n = eox*D_Vtn/(tox*q)
printf('\nNad_p = %.2e\n',Nad_p)
printf('Nad_n = %.2e\n',Nad_n)
printf('\n\t III.1')
Vcc=5
Vout=2
mu_0 = 875*0.4
W = 1E-4
L = 1E-4
Vg = 5
V_th=0.7
R = (5-2)/(mu_0*Cox*W/L*(Vg-V_th-Vout/2)*Vout)
printf('\nR = %.2e\n',R)
printf('\n\t III.2')
function [y]=fct(Vout) , y=Vcc-2*R*mu_0*Cox*W/L*(Vg-V_th-Vout/2)*Vout-Vout, endfunction
Vout=fsolve(0,fct)
printf('\nVout = %.2e\n',Vout)
printf('\n\t III.3')
Vg=1
Vout=Vcc-R*mu_0*Cox*W/L*(Vg-V_th)^2
printf('\nVout = %.2e\n',Vout)
exit
|
81d1516604de063662b50cd97a52113cf78a6dab
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3802/CH1/EX1.9/Ex1_9.sce
|
85d64f6a288e5081706600e2fd0deed62f58cf35
|
[] |
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
| 605
|
sce
|
Ex1_9.sce
|
//Book Name:Fundamentals of Electrical Engineering
//Author:Rajendra Prasad
//Publisher: PHI Learning Private Limited
//Edition:Third ,2014
//Ex1_9.sce.
clc;
clear;
C1=100; //capacitance value in microfarad
C2=150; //capacitance value in microfarad
C3=200; //capacitance value in microfarad
//CASE1
printf("\n (a)")
Cs=(C1*C2*C3)/((C2*C3)+(C1*C2)+(C3*C1));
printf("\n The equivalent capacitance in series connection=%2.3f microfarad",Cs)
//CASE2
printf("\n (b)")
Cp=C1+C2+C3;
printf("\n The equivalent capacitance in parallel connection=%3.0f microfarad",Cp)
|
14737d487e4f63986eabc6daa6bf1093e4009bf0
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3835/CH8/EX8.4/Ex8_4.sce
|
22211ddb597813a3048ba6a345edd27e4cc23ebb
|
[] |
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
| 457
|
sce
|
Ex8_4.sce
|
clear
//
//given
s=1
//case a
//the rotor circuit impedance=6+j12 obtained from (0.75+5.25)+j(5+7) as rotor resistance and reactance are 0.5 and 0.75
//rotor current=e2/z2=3.23 at angle -63.43
printf("\n At stand still the rotor current is=3.23A at angle -63.43")
//case b
s=0.04
//z2=(0.75+j*0.04*5)ohm
//again e2=s*e2/z2=0.81 at angle -69.44A
printf("\n the rotor current running at a slip of 4 with the rotor short circuited is=0.81 at angle -69.44A")
|
a8969e5ce7798a0a391ec74b5412132d3934e9b0
|
48d313982e11468e3406524c01f1cba2700a2db5
|
/Calcul numeric/ResurseTemaCalculNumeric/New folder/Mcmp/LinearCase/lq.sci
|
3ae23c949ea8836f3dcecbe5e3c4d2a1f23e37b4
|
[] |
no_license
|
albanionut/University
|
b8e918a192c131647099c57e1b2caa231de98d6d
|
b3d3dfe3cf64d0cddfaeb570151adf7d4c9ad0b7
|
refs/heads/master
| 2021-07-13T11:31:29.880681
| 2020-10-10T15:07:00
| 2020-10-10T15:07:00
| 214,223,943
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 384
|
sci
|
lq.sci
|
function P=lq(m,x,y,s)
[mx,nx]=size(x)
[my,ny]=size(y)
if((nx~=ny)|(mx~=1)|(my~=1)),
disp('data dimension error')
abort
end
u=zeros(m+1,nx)
for i=1:m+1 do
for j=1:nx do
u(i,j)=x(j)^(i-1)
end
end
coef=(u*u')^(-1)*u*y'
X=poly(0,s)
P=poly(coef(m+1),s,'coeff')
for i=1:m do
P=P*X+coef(m+1-i)
end
endfunction
|
f70b79e0114403233ad7f3abfd4193c216fd7c02
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2702/CH1/EX1.15/Ex_1_15.sce
|
93c2d58fc59b97987d431dea640cb3b1924e455d
|
[] |
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
|
Ex_1_15.sce
|
// Exa 1.15
clc;
clear;
close;
// Given data
Rf=470;// in kohm
R1=4.3;// in kohm
R2=33;// in kohm
R3=33;// in kohm
Vi= 80;// in µV
Vi=Vi*10^-6;// in volt
A1= 1+Rf/R1;
A2=-Rf/R2;
A3= -Rf/R3;
A=A1*A2*A3;
Vo= A*Vi;// in volt
disp(Vo,"Output voltage in volts is : ")
|
302081b0783d1273b78b41a8495dbc1bb88958fa
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/671/CH8/EX8.20/8_20.sce
|
147e4c14373b7187b8a225472c28a12d82fef611
|
[] |
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
| 259
|
sce
|
8_20.sce
|
P=50000
lr=0.9
P0=P*1*0.9
effi=0.974
Pl=(1-effi)/effi*P0
Pi=Pl/2
Pcfl=Pi/lr/lr
pf=0.8
P0=P*pf
Pl=Pi+Pcfl
effi=P0/(P0+Pl)*100
disp(effi)
P0=P/2*lr
Pl=Pi+Pcfl/2/2
effi=P0/(P0+Pl)*100
disp(effi)
/////////calculation mistakes in the book
|
cb59e4c0814525eb832b954f8dbd1f9a9f26fac6
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3557/CH19/EX19.3/Ex19_3.sce
|
0a5db1129288526ed6defc5e6c2e89e2e6a1a2f8
|
[] |
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
| 348
|
sce
|
Ex19_3.sce
|
//Example19.3//
//The current indicates a flow rate of electrons
a=10*10^-3;//C/s // coulomb per second
b=1;//electron
c=0.16*10^-18;//C //1 Coulomb of charge
I=a*b/c
mprintf("I = %e electrons/s",I)
//As the oxidation of each iron atom generates two electrons
d=1;//reaction
e=2;//electrons
r=I*d/e
mprintf("\nr = %e reaction/s",r)
|
c23950ad6e3a8d490d56ca168a461b3e2f0d054a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2561/CH4/EX4.7/Ex4_7.sce
|
b33a7fe28a385bdaa4233444b77332d2d5f81b4a
|
[] |
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,555
|
sce
|
Ex4_7.sce
|
//Ex4_7
clc
IDSS=5*10^(-3)
disp("IDSS = "+string(IDSS)+" ampere") // maximum drain current JFET
RL=910
disp("RL= "+string(RL)+ " ohm") //Load resistance
RF=2.29*10^(3)
disp("RF= "+string(RF)+ " ohm") // feedback resistance
R1=12*10^(6)
disp("R1= "+string(R1)+ " ohm") // first resistance R1 at input side
R2=8.57*10^(6)
disp("R2= "+string(R2)+ " ohm") // second resistance R2 at input side
VDD=(24)
disp("VDD= "+string(VDD)+" volts") // Drain voltage supply
VP=(-2)
disp("VP= "+string(VP)+" volts") // pinch off voltage for JFET
VGG=(VDD*R2)/(R1+R2)
disp("VGG= VDD*R2/(R1+R2)="+string(VGG)+" volts") // Gate voltage for JFET
disp("Quadratic equation =5.244*ID^(2)-55.76*ID+144=0")// Forming Quadratic equation using VGS = VGG-ID*RF and ID = IDSS(1-VGS/VP)^2 where ID in mA
p = [5.244 -55.76 144]
ID=roots(p)*10^(-3)// values of ID converted into Ampere by multiplying by 10^(-3)
disp("ID = "+string(ID)+" ampere") // drain current JFET
disp("Since ID <=IDSS, hence ID=6.214 mA cannot be chosen, so we chose ID=4.42 mA")
IDQ=4.42*10^(-3)
disp("IDQ ="+string(IDQ)+" A")//Since ID <=IDSS, hence ID=6.214 mA cannot be chosen, so we chose ID=4.42 mA
VGSQ=VGG-IDQ*RF
disp("VGSQ = VGG-IDQ*RF = "+string(VGSQ)+" volts") // Gate operating point voltage
VDSQ=VDD-IDQ*(RL+RF)
disp("VDSQ= VDD-IDQ*(RL+RF)= "+string(VDSQ)+" volts") // Drain voltage for JFET
VDGQ=VDSQ-VGSQ
disp("VDGQ = VDSQ-VGSQ ="+string(VDGQ)+" volts") // Drain-Gate voltage for JFET
disp("VDGQ >magnitude_VP,Hence FET is in pinch off region")
|
cafbe21e77f31622b20721921b0cb967b95dad0c
|
f3f881644657ef90a25b7fde9be7d1a8f04d29bf
|
/04/04/Part B/Add.tst
|
e22ff79d742f6306498082c2bfd6ed793b1af7ab
|
[] |
no_license
|
ThompsonNJ/CSC242-Computer-Organization
|
9da71fa5d024935637b2dbd1c732c1952e3eadd7
|
46eec94a0381db128af0d2340a588907568583ed
|
refs/heads/master
| 2020-08-10T08:04:24.779446
| 2019-10-10T23:36:54
| 2019-10-10T23:36:54
| 214,301,258
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,106
|
tst
|
Add.tst
|
load Add.asm,
output-file Add.out,
compare-to Add.cmp,
output-list RAM[0]%D2.6.2 RAM[1]%D2.6.2 RAM[2]%D2.6.2;
set RAM[0] 0,
set RAM[1] 0;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] 1,
set RAM[1] 0;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] 0,
set RAM[1] 1;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] -1,
set RAM[1] 0;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] 0,
set RAM[1] -1;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] -1,
set RAM[1] 1;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] 1,
set RAM[1] -1;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] -1024,
set RAM[1] 1024;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] 555,
set RAM[1] 555;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] -555,
set RAM[1] -555;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] 555,
set RAM[1] -100;
repeat 20 {
ticktock;
}
output;
set PC 0,
set RAM[0] -100,
set RAM[1] 555;
repeat 20 {
ticktock;
}
output;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.