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
d4d0ef78abc3afcf21a77a1408201fb9fcd54818
449d555969bfd7befe906877abab098c6e63a0e8
/1199/CH4/EX4.6/4_6.sci
18b7e2b614d9c12bd7d0627bfbf9add00a2774b9
[]
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
94
sci
4_6.sci
// 4.6 clc; delta=10; fs=2; mf=delta/fs; BW=16*mf; printf("\nBand width =%.0f kHz",BW)
c48583d71638bc3e982762f7d71a6643771f9cde
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/nlev.man.tst
d32f1a14892e5064f3eaece9ecf22708623251ea
[ "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
118
tst
nlev.man.tst
clear;lines(0); A=rand(3,3);x=poly(0,'x'); [NUM,den]=nlev(A,'x') clean(den-poly(A,'x')) clean(NUM/den-inv(x*eye()-A))
677fa8686b7ce25e6a0dee4d743d0c7e802f2e80
449d555969bfd7befe906877abab098c6e63a0e8
/839/CH30/EX30.2/Example_30_2.sce
ec22bbabbbf982e901f53e5dbf419afae64c6a53
[]
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,818
sce
Example_30_2.sce
//clear// clear; clc; //Example 30.2 //Given //From Table 30.2 V = linspace(0.5,6,12)'; //[L] t1 = [17.3,41.3,72,108.3,152.1,201.7]'; //[s] t2 = [6.8,19,34.6,53.4,76,102,131.2,163]'; //[s] t3 = [6.3,14,24.2,37,51.7,69,88.8,110,134,160]'; //[s] t4 = [5,11.5,19.8,30.1,42.5,56.8,73,91.2,111,133,156.8,182.5]'; //[s] t5 = [4.4,9.5,16.3,24.6,34.7,46.1,59,73.6,89.4,107.3]'; //[s] figure(1); plot(V(1:length(t1)),t1./V(1:length(t1))); plot(V(1:length(t2)),t2./V(1:length(t2)),'r'); plot(V(1:length(t3)),t3./V(1:length(t3)),'g'); plot(V(1:length(t4)),t4./V(1:length(t4)),'k'); plot(V(1:length(t5)),t5./V(1:length(t5)),'y'); xgrid(); xlabel('V (L)'); ylabel('t/V (s/L)'); legend('deptaP = 6.7','deptaP = 16.2','deptaP = 28.2','deptaP = 36.3','deptaP = 49.1'); title('t/V vs V'); deltaP = [965,2330,4060,5230,7070]'; //[lbf/ft^2] //From Fig. 30.15 //Slope(Kc/2) slope = [10440,5800,3620,3060,2400]'; //[s/ft^6] Kc = slope*2; //[s/ft^6] //Intercept(1/q0) Inter = [800,343,267,212,180]'; //[s/ft^3] //Viscosity of water muw = 5.95*10^-4; //[lb/ft-s], from Appendix 14 //Filter area A = 440/30.48^2; //[ft^2] //concentration c = 23.5*28.31/454; //[lb/ft^3] gc = 32.14; //Using Eq.(30.22) Rm = A*gc/muw*deltaP.*(Inter)/10^10; //[ft^-1*10^10] //Using Eq.(30.24) alpha = A^2*gc/(c*muw)*deltaP.*(Kc)/10^11; //[ft/lb *10^-11] figure(2); plot2d(deltaP,Rm); xgrid(); xlabel('deltaP (lbf/ft^2)'); ylabel('Rm (ft^-1*10^-10)'); title('Rm vs deltaP'); figure(3); plot2d(log(deltaP),log(alpha)); xgrid(); xlabel('deltaP (lbf/ft^2)'); ylabel('alpha (lb/ft*10^-11)'); title('alpha vs deltaP'); //Form 30.17 disp(Rm,'Rm (ft^-1*10^-10) ='); disp(alpha,'alpha (lb/ft*10^-11) ='); alpha0 = 1.75*10^11/1000^0.26; disp('alpha = 2.9*10^10*deltaP^2.6','Emperical Equation for the cake');
614edee1bc576f8c5eb1de6f2fb12087658888ea
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4/macros/mtlb/%b_f_s.sci
6a1c5e207c6663157f74c3a69610d64f53dfa1ad
[ "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
39
sci
%b_f_s.sci
function r=%b_f_s(b,s) r=[bool2s(b);s]
18a7457208c97f18d2cee095b523ec3e78c0dee8
449d555969bfd7befe906877abab098c6e63a0e8
/1529/CH9/EX9.18/9_18.sce
6f9609140607a76029f642236d5932e7dcae9573
[]
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
232
sce
9_18.sce
//Chapter 9, Problem 18 clc; D=200; //rate of change of current w.r.t time E=1.5; //induced emf M=E/D; //mutual inductance printf("Mutual inductance M = %f H",M);
b60bfbe2f3be2c7fb2de2bf86c10cf5a4292b0f4
449d555969bfd7befe906877abab098c6e63a0e8
/132/CH7/EX7.8/Example7_8.sce
09ca88910ad28d6ce8d2020f7720c6fa438406aa
[]
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
878
sce
Example7_8.sce
//Example 7.8 //Program to Calculate //(a)Minimum Emitter Current & corresponding Vce //(b)Maximum Emitter Current & corresponding Vce clear; clc ; close ; //Given Circuit Data Vcc=6; //V Vbe=0.3; //V Rc=50; //Ohms Rb=10*10^3; //Ohms Re=100; //Ohms Beeta1=50; Beeta2=200; //Calculation CASE-1: Minimum Emitter Current & corresponding Vce Iemin=(Vcc-Vbe)*(Beeta1+1)/(Rb+(Beeta1+1)*Re); Vcemin=Vcc-(Rc+Re)*Iemin; //Calculatioen CASE-2: Maximum Emitter Current & corresponding Vce Iemax=(Vcc-Vbe)*(Beeta2+1)/(Rb+(Beeta2+1)*Re); Vcemax=Vcc-(Rc+Re)*Iemax; //Displaying The Results in Command Window printf("\n\t The Minimum Emitter Current Ie(min) = %f mA .",Iemin/10^(-3)); printf("\n\t The Corresponding Vce = %f V .",Vcemin); printf("\n\t The Maximum Emitter Current Ie(max) = %f mA .",Iemax/10^(-3)); printf("\n\t The Corresponding Vce = %f V .",Vcemax);
10914eb185feb768a04b09fa23c131b7b0ef3d35
931df7de6dffa2b03ac9771d79e06d88c24ab4ff
/CSbotz_Aim_90.sce
94d9b7a889fedd7de33c68ecf13e88cf16bf7a08
[]
no_license
MBHuman/Scenarios
be1a722825b3b960014b07cda2f12fa4f75c7fc8
1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137
refs/heads/master
2023-01-14T02:10:25.103083
2020-11-21T16:47:14
2020-11-21T16:47:14
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
63,048
sce
CSbotz_Aim_90.sce
Name=CSbotz_Aim_90 PlayerCharacters=csplayer BotCharacters=csbotz harmless.bot IsChallenge=true Timelimit=60.0 PlayerProfile=csplayer AddedBots=csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot;csbotz harmless.bot PlayerMaxLives=0 BotMaxLives=0;0;0;0;0;0;0;0;0;0;0;0 PlayerTeam=1 BotTeams=2;2;2;2;2;2;2;2;2;2;2;2 MapName=csbotz_trainer_ver2.map MapScale=4.75 BlockProjectilePredictors=true BlockCheats=true InvinciblePlayer=true InvincibleBots=false Timescale=1.0 BlockHealthbars=false TimeRefilledByKill=0.0 ScoreToWin=1.0 ScorePerDamage=0.0 ScorePerKill=1.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=false ScoreMultDamageEfficiency=false ScoreMultKillEfficiency=false GameTag=CSGO WeaponHeroTag=M4A4, AK-47, M4A1-S, USP-S DifficultyTag=2 AuthorsTag=wjokin BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=true BlockFCT=false Description=Practice shooting against 12 CSGO BOTs. GameVersion=1.0.7.2 ScorePerDistance=0.0 [Aim Profile] Name=cs MinReactionTime=0.18 MaxReactionTime=0.3 MinSelfMovementCorrectionTime=0.007 MaxSelfMovementCorrectionTime=0.035 FlickFOV=10.0 FlickSpeed=1.0 FlickError=3.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=90.0 MinRecenterTime=0.25 MaxRecenterTime=0.4 OptimalAimFOV=35.0 OuterAimPenalty=1.1 MaxError=35.0 ShootFOV=1.0 VerticalAimOffset=-5.0 MaxTolerableSpread=2.0 MinTolerableSpread=0.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Aim Profile] Name=Default MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Bot Profile] Name=csbotz harmless DodgeProfileNames=CsClose1;CsFar1;CsMimic1;CsOppose1;CsCareful1;CsCareless1;CsMid1;CsRandom1;CsFar2 DodgeProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 DodgeProfileMaxChangeTime=10.0 DodgeProfileMinChangeTime=0.1 WeaponProfileWeights=1.5;1.5;1.5;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=cs;cs;cs;cs;cs;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=true CharacterProfile=csbotz_aim SeeThroughWalls=false NoDodging=true NoAiming=true [Character Profile] Name=csplayer MaxHealth=100.0 WeaponProfileNames=M4A4 inf;AK-47 inf;M4A1-S inf;USP-S inf;;;; MinRespawnDelay=0.0001 MaxRespawnDelay=0.0001 StepUpHeight=75.0 CrouchHeightModifier=0.575 CrouchAnimationSpeed=1.5 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=1.0 MovementType=Base MaxSpeed=1100.0 MaxCrouchSpeed=250.0 Acceleration=6000.0 AirAcceleration=16000.0 Friction=7.5 BrakingFrictionFactor=1.25 JumpVelocity=1780.0 Gravity=9.0 AirControl=1.0 CanCrouch=true CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=true EnemyBodyColor=X=0.546 Y=0.776 Z=0.546 EnemyHeadColor=X=0.608 Y=0.463 Z=0.314 TeamBodyColor=X=0.000 Y=0.000 Z=0.771 TeamHeadColor=X=0.149 Y=0.542 Z=1.000 BlockSelfDamage=true InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=true AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cylindrical MainBBHeight=250.0 MainBBRadius=45.0 MainBBHasHead=true MainBBHeadRadius=28.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=250.0 ProjBBRadius=45.0 ProjBBHasHead=true ProjBBHeadRadius=28.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.5 JetpackFullFuelTime=1000.0 JetpackFuelIncPerSec=100.0 JetpackFuelRegensInAir=true JetpackThrust=6000.0 JetpackMaxZVelocity=600.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=256.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.0 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 SpawnXOffset=0.0 SpawnYOffset=0.0 [Character Profile] Name=csbotz_aim MaxHealth=100.0 WeaponProfileNames=;;;;;;; MinRespawnDelay=0.00001 MaxRespawnDelay=0.00001 StepUpHeight=75.0 CrouchHeightModifier=0.575 CrouchAnimationSpeed=1.5 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=1.0 MovementType=Base MaxSpeed=1100.0 MaxCrouchSpeed=250.0 Acceleration=6000.0 AirAcceleration=16000.0 Friction=7.5 BrakingFrictionFactor=1.25 JumpVelocity=1780.0 Gravity=9.0 AirControl=1.0 CanCrouch=true CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=true EnemyBodyColor=X=0.546 Y=0.776 Z=0.546 EnemyHeadColor=X=0.608 Y=0.463 Z=0.314 TeamBodyColor=X=0.000 Y=0.000 Z=0.771 TeamHeadColor=X=0.149 Y=0.542 Z=1.000 BlockSelfDamage=true InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=true AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cylindrical MainBBHeight=250.0 MainBBRadius=45.0 MainBBHasHead=true MainBBHeadRadius=28.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=250.0 ProjBBRadius=45.0 ProjBBHasHead=true ProjBBHeadRadius=28.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.5 JetpackFullFuelTime=1000.0 JetpackFuelIncPerSec=100.0 JetpackFuelRegensInAir=true JetpackThrust=6000.0 JetpackMaxZVelocity=600.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=true AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=256.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.0 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 SpawnXOffset=0.0 SpawnYOffset=0.0 [Dodge Profile] Name=CsClose1 MaxTargetDistance=1500.0 MinTargetDistance=500.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.01 MaxLRTimeChange=0.5 MinFBTimeChange=0.1 MaxFBTimeChange=0.5 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.02 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.5 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=CsFar1 MaxTargetDistance=3500.0 MinTargetDistance=2500.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.5 MaxLRTimeChange=1.0 MinFBTimeChange=0.1 MaxFBTimeChange=0.25 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.02 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.5 StrafeSwapMaxPause=1.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=CsMimic1 MaxTargetDistance=2500.0 MinTargetDistance=500.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.25 MaxLRTimeChange=0.75 MinFBTimeChange=0.1 MaxFBTimeChange=0.25 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.02 TargetStrafeOverride=Mimic TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.35 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.25 StrafeSwapMaxPause=0.75 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=CsOppose1 MaxTargetDistance=2500.0 MinTargetDistance=500.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.25 MaxLRTimeChange=1.0 MinFBTimeChange=0.1 MaxFBTimeChange=0.25 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.02 TargetStrafeOverride=Oppose TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.35 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.25 StrafeSwapMaxPause=0.75 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=CsCareful1 MaxTargetDistance=2000.0 MinTargetDistance=1000.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.5 MaxLRTimeChange=1.0 MinFBTimeChange=0.1 MaxFBTimeChange=0.25 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.1 CrouchOnGroundFrequency=0.03 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.5 MaxCrouchTime=1.0 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.25 StrafeSwapMaxPause=0.75 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=CsCareless1 MaxTargetDistance=4000.0 MinTargetDistance=250.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.25 MaxLRTimeChange=0.75 MinFBTimeChange=0.1 MaxFBTimeChange=0.25 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.1 DamageReactionMaximumDelay=0.5 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.01 CrouchInAirFrequency=0.1 CrouchOnGroundFrequency=0.05 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.1 MaxCrouchTime=1.5 MinJumpTime=0.2 MaxJumpTime=0.3 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.25 StrafeSwapMaxPause=0.75 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=CsMid1 MaxTargetDistance=2500.0 MinTargetDistance=1500.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.25 MaxLRTimeChange=0.75 MinFBTimeChange=0.1 MaxFBTimeChange=0.25 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.02 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.25 StrafeSwapMaxPause=0.75 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=CsRandom1 MaxTargetDistance=5000.0 MinTargetDistance=0.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.01 MaxLRTimeChange=2.0 MinFBTimeChange=0.01 MaxFBTimeChange=1.0 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.02 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=1.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=CsFar2 MaxTargetDistance=4500.0 MinTargetDistance=3500.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.75 MaxLRTimeChange=1.27 MinFBTimeChange=0.1 MaxFBTimeChange=0.25 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.02 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.75 StrafeSwapMaxPause=1.25 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Weapon Profile] Name=M4A4 inf Type=Hitscan ShotsPerClick=1 DamagePerShot=33.0 KnockbackFactor=0.2 TimeBetweenShots=0.09009 Pierces=false Category=FullyAuto BurstShotCount=2 TimeBetweenBursts=0.1 ChargeStartDamage=0.1 ChargeStartVelocity=X=1500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=3000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=3000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=3.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=4.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=2.7 ReloadTimeFromPartial=2.7 DamageFalloffStartDistance=3000.0 DamageFalloffStopDistance=7500.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.02 WallParticleEffect=Gunshot HitParticleEffect=Blood BounceOffWorld=true BounceFactor=0.6 BounceCount=0 HomingProjectileAcceleration=6000.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.1 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-40.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.2 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=410.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=10.3 ADSFOVScale=Quake/Source ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.1 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=true DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=5.0 BlockedByWorld=true SpreadSSA=4.0,15.0,-9.0,2.5 SpreadSCA=4.0,15.0,-9.0,2.5 SpreadMSA=4.0,15.0,-9.0,2.5 SpreadMCA=4.0,15.0,-9.0,2.5 SpreadSSH=4.0,27.0,-9.0,1.0 SpreadSCH=4.0,27.0,-9.0,0.0 SpreadMSH=100.0,1000.0,5.0,20.0 SpreadMCH=4.0,15.0,-9.0,1.8 MaxRecoilUp=0.3 MinRecoilUp=0.3 MinRecoilHoriz=-0.3 MaxRecoilHoriz=0.3 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.0001 TimeToRecoilReset=0.075 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.1 AAMaxSpeed=5.0 AADeadZone=0.0 AAFOV=50.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=0.1 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=true PSRLoopStartIndex=10 PSRViewRecoilTracking=0.45 PSRCapUp=90.0 PSRCapRight=90.0 PSRCapLeft=90.0 PSRTimeToPeak=0.16 PSRResetDegreesPerSec=35.0 PSR0=0.4,-0.25 PSR1=0.4,-0.1 PSR2=0.9,0.5 PSR3=1.2,-0.5 PSR4=1.1,0.4 PSR5=1.3,0.4 PSR6=0.9,-1.0 PSR7=0.7,-0.75 PSR8=0.5,-1.1 PSR9=0.6,-0.3 PSR10=0.7,0.5 PSR11=-0.4,1.5 PSR12=0.1,1.7 PSR13=-0.3,1.3 PSR14=0.2,1.0 PSR15=0.2,-0.9 PSR16=-0.1,0.0 PSR17=0.3,0.5 PSR18=0.2,0.5 PSR19=-0.2,0.5 PSR20=-0.2,-0.75 PSR21=0.5,-2.0 PSR22=-0.2,-0.7 PSR23=0.2,-0.6 PSR24=-0.1,-0.75 PSR25=-0.1,-0.5 PSR26=0.3,0.3 PSR27=0.3,-0.4 PSR28=0.1,-0.2 PSR29=0.15,-0.2 PSR30=0.15,-0.2 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=AK-47 inf Type=Hitscan ShotsPerClick=1 DamagePerShot=36.0 KnockbackFactor=0.2 TimeBetweenShots=0.1 Pierces=false Category=FullyAuto BurstShotCount=2 TimeBetweenBursts=0.1 ChargeStartDamage=0.1 ChargeStartVelocity=X=1500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=3000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=3000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=3.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=4.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=1.5 ReloadTimeFromPartial=1.5 DamageFalloffStartDistance=4000.0 DamageFalloffStopDistance=7500.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.02 WallParticleEffect=Gunshot HitParticleEffect=Blood BounceOffWorld=true BounceFactor=0.6 BounceCount=0 HomingProjectileAcceleration=6000.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.1 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-40.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.2 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=390.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=10.3 ADSFOVScale=Quake/Source ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.1 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=true DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=5.0 BlockedByWorld=true SpreadSSA=4.0,15.0,-9.0,2.5 SpreadSCA=4.0,15.0,-9.0,2.5 SpreadMSA=4.0,15.0,-9.0,2.5 SpreadMCA=4.0,15.0,-9.0,2.5 SpreadSSH=2.0,27.0,-9.0,1.5 SpreadSCH=2.0,27.0,-9.0,0.0 SpreadMSH=100.0,1000.0,5.0,20.0 SpreadMCH=4.0,15.0,-9.0,1.8 MaxRecoilUp=0.3 MinRecoilUp=0.3 MinRecoilHoriz=-0.3 MaxRecoilHoriz=0.3 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.0001 TimeToRecoilReset=0.075 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.1 AAMaxSpeed=5.0 AADeadZone=0.0 AAFOV=10.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=0.1 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=true PSRLoopStartIndex=10 PSRViewRecoilTracking=0.45 PSRCapUp=90.0 PSRCapRight=90.0 PSRCapLeft=90.0 PSRTimeToPeak=0.16 PSRResetDegreesPerSec=35.0 PSR0=0.5,0.0 PSR1=1.2,-0.1 PSR2=1.7,0.2 PSR3=1.7,0.2 PSR4=1.7,-0.85 PSR5=1.3,-0.45 PSR6=1.3,-0.75 PSR7=0.9,0.75 PSR8=-0.4,2.55 PSR9=0.75,0.95 PSR10=0.75,0.4 PSR11=-0.6,0.4 PSR12=0.35,1.0 PSR13=0.4,0.25 PSR14=-0.9,-1.5 PSR15=0.4,-1.0 PSR16=0.5,-1.3 PSR17=0.1,-1.6 PSR18=-0.7,-1.25 PSR19=0.2,-0.5 PSR20=0.2,0.1 PSR21=0.0,0.5 PSR22=0.3,0.1 PSR23=0.2,0.5 PSR24=0.5,-1.0 PSR25=-0.1,1.2 PSR26=-0.3,1.1 PSR27=-1.2,2.0 PSR28=0.1,1.4 PSR29=-0.1,0.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=M4A1-S inf Type=Hitscan ShotsPerClick=1 DamagePerShot=33.0 KnockbackFactor=0.1 TimeBetweenShots=0.1 Pierces=false Category=FullyAuto BurstShotCount=2 TimeBetweenBursts=0.1 ChargeStartDamage=0.1 ChargeStartVelocity=X=1500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=3000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=3000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=3.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=5.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=1.37 ReloadTimeFromPartial=1.37 DamageFalloffStartDistance=3000.0 DamageFalloffStopDistance=7000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.1 WallParticleEffect=Gunshot HitParticleEffect=Blood BounceOffWorld=true BounceFactor=0.6 BounceCount=0 HomingProjectileAcceleration=6000.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.1 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.1 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=410.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=10.3 ADSFOVScale=Quake/Source ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.1 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=true DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=5.0 BlockedByWorld=true SpreadSSA=4.0,15.0,-9.0,2.5 SpreadSCA=4.0,15.0,-9.0,2.5 SpreadMSA=4.0,15.0,-9.0,2.5 SpreadMCA=4.0,15.0,-9.0,2.5 SpreadSSH=1.5,27.0,-9.0,1.0 SpreadSCH=1.5,27.0,-9.0,0.0 SpreadMSH=100.0,1000.0,5.0,20.0 SpreadMCH=4.0,15.0,-9.0,1.8 MaxRecoilUp=0.3 MinRecoilUp=0.3 MinRecoilHoriz=-0.3 MaxRecoilHoriz=0.3 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.0001 TimeToRecoilReset=0.075 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=2.0 AADeadZone=0.0 AAFOV=15.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=0.1 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=true PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=90.0 PSRCapRight=90.0 PSRCapLeft=90.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=35.0 PSR0=0.4,-0.1 PSR1=0.4,0.0 PSR2=0.9,0.4 PSR3=1.0,-0.5 PSR4=1.0,0.6 PSR5=1.2,0.3 PSR6=0.7,-0.6 PSR7=0.8,-0.5 PSR8=0.3,-1.3 PSR9=0.8,0.5 PSR10=0.3,1.0 PSR11=-0.4,1.2 PSR12=0.0,1.1 PSR13=0.1,1.0 PSR14=-0.2,-0.4 PSR15=0.4,0.1 PSR16=-0.4,1.0 PSR17=0.4,-1.0 PSR18=0.0,1.0 PSR19=-0.1,-1.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=USP-S inf Type=Hitscan ShotsPerClick=1 DamagePerShot=35.0 KnockbackFactor=1.0 TimeBetweenShots=0.17045 Pierces=false Category=SemiAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=4.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=2.2 ReloadTimeFromPartial=2.2 DamageFalloffStartDistance=300.0 DamageFalloffStopDistance=1000.0 DamageAtMaxRange=33.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.1 WallParticleEffect=Gunshot HitParticleEffect=Blood BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=1.0 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=400.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Quake/Source ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,5.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=1.0,1.0,-1.0,5.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=5.0,25.0,0.2,7.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=1.0,25.0,2.0,7.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.3 MinRecoilUp=0.0 MinRecoilHoriz=-0.2 MaxRecoilHoriz=0.2 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.0001 TimeToRecoilReset=0.075 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.1 AAMaxSpeed=5.0 AADeadZone=0.0 AAFOV=50.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Map Data] reflex map version 8 global entity type WorldSpawn String32 targetGameOverCamera end ColourXRGB32 sky.skyTopColor fffdcdc2 ColourXRGB32 sky.skyHorizonColor ff3d2b14 ColourXRGB32 sky.skyBottomColor ff040404 ColourXRGB32 sky.horizonColor ff6b6b60 String256 title csbotz_trainer String256 ownerString wjokin UInt8 playersMin 1 UInt8 playersMax 16 Bool8 modeFFA 0 Bool8 modeTraining 1 brush vertices -1056.000000 0.000000 1056.000000 1056.000000 0.000000 1056.000000 1056.000000 0.000000 416.000000 -1056.000000 0.000000 416.000000 -1056.000000 -16.000000 1056.000000 1056.000000 -16.000000 1056.000000 1056.000000 -16.000000 416.000000 -1056.000000 -16.000000 416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -416.000000 0.000000 416.000000 416.000000 0.000000 416.000000 416.000000 0.000000 -416.000000 -416.000000 0.000000 -416.000000 -416.000000 -16.000000 416.000000 416.000000 -16.000000 416.000000 416.000000 -16.000000 -416.000000 -416.000000 -16.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -352.000000 32.000000 -352.000000 352.000000 32.000000 -352.000000 352.000000 32.000000 -416.000000 -352.000000 32.000000 -416.000000 -352.000000 0.000000 -352.000000 352.000000 0.000000 -352.000000 352.000000 0.000000 -416.000000 -352.000000 0.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -352.000000 144.000000 416.000000 352.000000 144.000000 416.000000 352.000000 144.000000 352.000000 -352.000000 144.000000 352.000000 -352.000000 96.000000 416.000000 352.000000 96.000000 416.000000 352.000000 96.000000 352.000000 -352.000000 96.000000 352.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -352.000000 144.000000 -352.000000 352.000000 144.000000 -352.000000 352.000000 144.000000 -416.000000 -352.000000 144.000000 -416.000000 -352.000000 96.000000 -352.000000 352.000000 96.000000 -352.000000 352.000000 96.000000 -416.000000 -352.000000 96.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 352.000000 144.000000 416.000000 416.000000 144.000000 416.000000 416.000000 144.000000 -416.000000 352.000000 144.000000 -416.000000 352.000000 96.000000 416.000000 416.000000 96.000000 416.000000 416.000000 96.000000 -416.000000 352.000000 96.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -416.000000 144.000000 416.000000 -352.000000 144.000000 416.000000 -352.000000 144.000000 -416.000000 -416.000000 144.000000 -416.000000 -416.000000 96.000000 416.000000 -352.000000 96.000000 416.000000 -352.000000 96.000000 -416.000000 -416.000000 96.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -416.000000 192.000000 16.000000 -16.000000 192.000000 16.000000 -16.000000 192.000000 -16.000000 -416.000000 192.000000 -16.000000 -416.000000 176.000000 16.000000 -16.000000 176.000000 16.000000 -16.000000 176.000000 -16.000000 -416.000000 176.000000 -16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -16.000000 192.000000 -16.000000 16.000000 192.000000 -16.000000 16.000000 192.000000 -416.000000 -16.000000 192.000000 -416.000000 -16.000000 176.000000 -16.000000 16.000000 176.000000 -16.000000 16.000000 176.000000 -416.000000 -16.000000 176.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 16.000000 192.000000 16.000000 416.000000 192.000000 16.000000 416.000000 192.000000 -16.000000 16.000000 192.000000 -16.000000 16.000000 176.000000 16.000000 416.000000 176.000000 16.000000 416.000000 176.000000 -16.000000 16.000000 176.000000 -16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -16.000000 192.000000 416.000000 16.000000 192.000000 416.000000 16.000000 192.000000 16.000000 -16.000000 192.000000 16.000000 -16.000000 176.000000 416.000000 16.000000 176.000000 416.000000 16.000000 176.000000 16.000000 -16.000000 176.000000 16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 768.000000 0.000000 736.000000 1056.000000 192.000000 1056.000000 1056.000000 192.000000 416.000000 416.000000 192.000000 416.000000 416.000000 0.000000 416.000000 1056.000000 0.000000 416.000000 1056.000000 0.000000 1056.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 3 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 3 4 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 2 1 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 4 0 4 5 0x00000000 brush vertices -1056.000000 192.000000 1072.000000 1056.000000 192.000000 1072.000000 1056.000000 192.000000 1056.000000 -1056.000000 192.000000 1056.000000 -1056.000000 0.000000 1072.000000 1056.000000 0.000000 1072.000000 1056.000000 0.000000 1056.000000 -1056.000000 0.000000 1056.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -1056.000000 192.000000 1056.000000 -416.000000 0.000000 416.000000 -1056.000000 192.000000 416.000000 -1056.000000 0.000000 1056.000000 -688.000000 0.000000 672.000000 -416.000000 192.000000 416.000000 -1056.000000 0.000000 416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 2 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 5 1 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 4 6 1 0x00000000 brush vertices 320.000000 32.000000 352.000000 352.000000 32.000000 352.000000 352.000000 32.000000 320.000000 352.000000 0.000000 352.000000 320.000000 0.000000 352.000000 352.000000 0.000000 320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 1 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 0 2 5 0x00000000 brush vertices 384.000000 32.000000 320.000000 416.000000 32.000000 320.000000 416.000000 32.000000 -416.000000 416.000000 0.000000 320.000000 384.000000 32.000000 -416.000000 384.000000 0.000000 -416.000000 384.000000 0.000000 320.000000 416.000000 0.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 1 0 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 3 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 4 2 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000 brush vertices -320.000000 32.000000 416.000000 320.000000 32.000000 416.000000 320.000000 32.000000 384.000000 -320.000000 32.000000 384.000000 -320.000000 0.000000 416.000000 320.000000 0.000000 416.000000 320.000000 0.000000 384.000000 -320.000000 0.000000 384.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -416.000000 32.000000 320.000000 -384.000000 32.000000 320.000000 -384.000000 32.000000 -416.000000 -416.000000 32.000000 -416.000000 -416.000000 0.000000 320.000000 -384.000000 0.000000 320.000000 -384.000000 0.000000 -416.000000 -416.000000 0.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -320.000000 32.000000 384.000000 352.000000 32.000000 384.000000 352.000000 32.000000 352.000000 -320.000000 32.000000 352.000000 -320.000000 0.000000 384.000000 352.000000 0.000000 384.000000 352.000000 0.000000 352.000000 -320.000000 0.000000 352.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -320.000000 0.000000 352.000000 -320.000000 32.000000 416.000000 -320.000000 32.000000 352.000000 -368.000000 0.000000 352.000000 -320.000000 0.000000 416.000000 -416.000000 0.000000 320.000000 -416.000000 32.000000 320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 4 1 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 0 3 0 4 0x00000000 brush vertices 320.000000 32.000000 416.000000 416.000000 0.000000 320.000000 320.000000 32.000000 352.000000 320.000000 0.000000 416.000000 336.000000 0.000000 384.000000 416.000000 32.000000 320.000000 320.000000 0.000000 352.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 2 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 5 1 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 4 6 1 0x00000000 brush vertices -352.000000 32.000000 352.000000 -320.000000 32.000000 352.000000 -352.000000 32.000000 320.000000 -352.000000 0.000000 352.000000 -320.000000 0.000000 352.000000 -352.000000 0.000000 320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 3 0 2 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 2 1 4 0x00000000 brush vertices 352.000000 32.000000 352.000000 384.000000 32.000000 352.000000 384.000000 32.000000 -416.000000 352.000000 0.000000 -416.000000 352.000000 32.000000 -416.000000 384.000000 0.000000 352.000000 384.000000 0.000000 -416.000000 352.000000 0.000000 352.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000 brush vertices -384.000000 32.000000 352.000000 -352.000000 32.000000 352.000000 -352.000000 32.000000 -416.000000 -384.000000 32.000000 -416.000000 -384.000000 0.000000 352.000000 -352.000000 0.000000 352.000000 -352.000000 0.000000 -416.000000 -384.000000 0.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -384.000000 0.000000 320.000000 -384.000000 32.000000 336.000000 -384.000000 32.000000 320.000000 -416.000000 32.000000 320.000000 -384.000000 0.000000 336.000000 -416.000000 0.000000 320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 4 1 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 3 2 0 0x00000000 brush vertices -416.000000 192.000000 416.000000 -416.000000 0.000000 320.000000 -464.000000 192.000000 416.000000 -416.000000 0.000000 416.000000 -464.000000 0.000000 416.000000 -416.000000 192.000000 320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 1 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 4 2 5 0x00000000 brush vertices 416.000000 0.000000 416.000000 416.000000 192.000000 416.000000 464.000000 192.000000 416.000000 416.000000 192.000000 320.000000 416.000000 0.000000 320.000000 464.000000 0.000000 416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 3 2 5 0x00000000 brush vertices 384.000000 32.000000 336.000000 416.000000 0.000000 320.000000 416.000000 32.000000 320.000000 384.000000 0.000000 320.000000 384.000000 32.000000 320.000000 384.000000 0.000000 336.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 5 0x00000000 brush vertices -416.000000 208.000000 416.000000 416.000000 208.000000 416.000000 416.000000 208.000000 -416.000000 -416.000000 208.000000 -416.000000 -416.000000 192.000000 416.000000 416.000000 192.000000 416.000000 416.000000 192.000000 -416.000000 -416.000000 192.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 common/materials/glass/glass_frosted brush vertices -416.000000 216.000000 416.000000 416.000000 216.000000 416.000000 416.000000 216.000000 -416.000000 -416.000000 216.000000 -416.000000 -416.000000 200.000000 416.000000 416.000000 200.000000 416.000000 416.000000 200.000000 -416.000000 -416.000000 200.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 common/materials/glass/glass_frosted 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 common/materials/glass/glass_frosted brush vertices -416.000000 96.000000 360.000000 416.000000 96.000000 360.000000 416.000000 96.000000 356.000000 -416.000000 96.000000 356.000000 -416.000000 32.000000 360.000000 416.000000 32.000000 360.000000 416.000000 32.000000 356.000000 -416.000000 32.000000 356.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -360.000000 96.000000 356.000000 -356.000000 96.000000 356.000000 -356.000000 96.000000 -360.000000 -360.000000 96.000000 -360.000000 -360.000000 32.000000 356.000000 -356.000000 32.000000 356.000000 -356.000000 32.000000 -360.000000 -360.000000 32.000000 -360.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices 356.000000 96.000000 356.000000 360.000000 96.000000 356.000000 360.000000 96.000000 -360.000000 356.000000 96.000000 -360.000000 356.000000 32.000000 356.000000 360.000000 32.000000 356.000000 360.000000 32.000000 -360.000000 356.000000 32.000000 -360.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -356.000000 96.000000 -356.000000 356.000000 96.000000 -356.000000 356.000000 96.000000 -360.000000 -356.000000 96.000000 -360.000000 -356.000000 32.000000 -356.000000 356.000000 32.000000 -356.000000 356.000000 32.000000 -360.000000 -356.000000 32.000000 -360.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip entity type PlayerSpawn Vector3 position 0.000000 0.000000 320.000000 Bool8 teamB 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type CameraPath UInt32 entityIdAttachedTo 44 UInt8 posLerp 2 UInt8 angleLerp 2 entity type Target Vector3 position 0.000000 32.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -128.000000 32.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -256.000000 32.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 128.000000 32.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 256.000000 32.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 0.000000 32.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 128.000000 32.000000 576.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 384.000000 32.000000 576.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -128.000000 32.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -128.000000 32.000000 576.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -384.000000 32.000000 576.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 256.000000 32.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -512.000000 32.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -256.000000 32.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 512.000000 32.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 128.000000 32.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 384.000000 32.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position 640.000000 32.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -384.000000 32.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type Target Vector3 position -640.000000 32.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type PlayerSpawn Vector3 position 256.000000 0.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 128.000000 0.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 0.000000 0.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -128.000000 0.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 128.000000 0.000000 576.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -256.000000 0.000000 448.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 384.000000 0.000000 576.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -384.000000 0.000000 576.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -128.000000 0.000000 576.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -512.000000 0.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -256.000000 0.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 0.000000 0.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 256.000000 0.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 512.000000 0.000000 768.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -384.000000 0.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -128.000000 0.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 128.000000 0.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 384.000000 0.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 640.000000 0.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -640.000000 0.000000 960.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0
baa8f2130544160d6e62f58c662128bb572f8482
449d555969bfd7befe906877abab098c6e63a0e8
/3864/CH8/EX8.1/Ex8_1.sce
a58d18d29389bc02bc5d1286f655b643702acc81
[]
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,191
sce
Ex8_1.sce
clear // // //Initilization of Variables L=3000 //mm //Length d1=1000 //mm //Internal diameter t=15 //mm //Thickness P=1.5 //N/mm**2 //Fluid Pressure E=2*10**5 //n/mm**2 //Modulus of elasticity mu=0.3 //Poissons ratio //Calculations //Hoop stress f1=P*d1*(2*t)**-1 //N/mm**2 //Longitudinal Stress f2=P*d1*(4*t)**-1 //N/mm**2 //Max shear stress q_max=(f1-f2)*2**-1 //N/mm**2 //Diametrical Strain //Let e1=dell_d*d**-1 .....................(1) e1=(f1-mu*f2)*E**-1 //Sub values in equation 1 and further simplifying we get dell_d=e1*d1 //mm //Longitudinal strain //e2=dell_L*L**-1 ......................(2) e2=(f2-mu*f1)*E**-1 //Sub values in equation 2 and further simplifying we get dell_L=e2*L //mm //Change in Volume //Let Z=dell_V*V**-1 ................(3) Z=2*e1+e2 //Sub values in equation 3 and further simplifying we get dell_V=Z*%pi*4**-1*d1**2*L //Result printf("\n Max Intensity of shear stress %0.2f N/mm**2",q_max) printf("\n Change in the Dimensions of the shell is:dell_d %0.2f mm",dell_d) printf("\n :dell_L %0.2f mm",dell_L) printf("\n :dell_V %0.2f mm**3",dell_V)
fe5e58bb5922adebbbe448b72b950e0cc3be654e
449d555969bfd7befe906877abab098c6e63a0e8
/3630/CH4/EX4.1/Ex4_1.sce
54cab93a7b9063fc817606367795e1eebcfe3e05
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
172
sce
Ex4_1.sce
clc; Vin=12; //volt RL=5100; //ohm Rs=1000; //ohm VL=(RL/(RL+Rs))*Vin ; //volt //voltage divide rule disp('Vpk',VL,"VL=");//The answers vary due to round off error
97a201afca7ff35c88b72868b3406f27cdf07ce3
449d555969bfd7befe906877abab098c6e63a0e8
/680/CH9/EX9.05/9_05.sce
b2e8b08f14f9c9483f131e3ea15eff9a53c5ded1
[]
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
365
sce
9_05.sce
//Problem 9.05: //initializing the variables: w = 65; // in lb Ws = 125; // in lb a = 0.45; Ts = 75;// in deg C //calculation: T = (9*Ts/5) + 32 wf = (w*0 + a*Ws)/(Ws + w) //From Fig. 9.4 Hf208 = 156 // in Btu/lb Hf167 = 118 // in Btu/lb Q = Hf167 - Hf208 Qr = Q*(Ws + w) printf("\n\nResult\n\n") printf("\n the the heat effect is %.0f Btu",Qr)
b2f4388a98d0933db4c4d03fe3e14f369e9e5b94
449d555969bfd7befe906877abab098c6e63a0e8
/1529/CH23/EX23.3/23_03.sce
0c0e12f875f0f1f70e4a1ce457d49888451f0f72
[]
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
206
sce
23_03.sce
//Chapter 23, Problem 3 clc; ns=6000/60; //synchronous speed p=2/2; //pairs of poles f=p*ns; //supply frequency printf("Frequency = %f Hz",f);
e846be0cf218bf71ed957c7595ba82057f49b390
449d555969bfd7befe906877abab098c6e63a0e8
/2267/CH2/EX2.1/Ex2_1.sce
883c4685784764505bee8af33a43a57959a1232e
[]
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
264
sce
Ex2_1.sce
//Part A Chapter 2 Example 1 clc; clear; close; format('v',6); cp=2.286;//kJ/kgK cv=1.768;//kJ/kgK Rbar=8.3143;//universal gas constant R=cp-cv;//kJ/kgK M=Rbar/R;//kg/kg.mol.(Molecular weight) disp("Molecular weight of gas = "+string(M)+" kg/kg.mol.");
109afa0489244083c6278d0c0dbf687b46454ef3
449d555969bfd7befe906877abab098c6e63a0e8
/2102/CH1/EX1.16/exa_1_16.sce
2286447b665e31009c6474e8f6c0a3b9896feb63
[]
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
533
sce
exa_1_16.sce
// Exa 1.16 clc; clear; close; // Given data q=1.6*10^-19;// in C n=4*10^22;// in /m^3 ni= 2.4*10^19;// in /m^3 miu_n= 3500;// in cm^2/vs miu_n= miu_n*10^-4;// in m^2/vs // Formula n*p= ni^2 p= ni^2/n;// in m^-3 disp(p,"Hole concentration in m^-3 is : ") sigma=q*n*miu_n;// in (Ω-m)^-1 disp(sigma,"The conductivity of the extrinsic semiconductor in (Ωm)^-1 is :") // Note : There is miss print in the printed value of p and also calculation error in evaluating the value of p . So the answer in the book is wrong
7790d00efacb8af4d35f00e621df8f0ca0ca7749
449d555969bfd7befe906877abab098c6e63a0e8
/3648/CH3/EX3.7/Ex3_7.sce
1b26b2fce52a8580c6b6ee7009b2b496e1a410de
[]
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
267
sce
Ex3_7.sce
//Example 3_7 clc(); clear; //To calculate the time taken to travel v0=16.7 //units in meters/sec a=1.5 //units in meters/sec^2 x=70 //units in meters t=-((-v0)+sqrt(v0^2-(4*(a/2)*x)))/(2*(a/2)) //units in sec printf("Time taken to travel T=%.1f sec",t)
a7ba0406a6ca8820cd5402d9a9c3b7547db364c7
449d555969bfd7befe906877abab098c6e63a0e8
/1871/CH10/EX10.4/Ch010Ex4.sce
ea7584eb7f3b8555522b39d3a8e79dece7ac2bd7
[]
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
708
sce
Ch010Ex4.sce
// Scilab code Ex10.4: Pg:417 (2008) clc;clear; alpha_e = 3.28e-040; // Electronic polarizability of sulphur atom, Force meter square eps_0 = 8.85e-012; // Permittivity of free space, farad per metre N_A = 6.023e+026; // Avagadro's number M = 32; // Atomic weight of sulphur rho = 2.08e+003; // Density of sulphur atom, kg per cubic meter // Since (eps_r - 1)/(eps_r + 2) = N*alphe_e/(3*eps_0), solvinf for eps_r ep_r = poly(0, 'ep_r'); ep_r = roots((ep_r - 1)*3*M*eps_0-(ep_r + 2)*N_A*rho*alpha_e); // Relative permittivity of the medium printf("\nThe relative dielectric constant for sulphur = %3.1f", ep_r); // Result // The relative dielectric constant for sulphur = 3.8
348561a0b274d3a5f0bbd3bc79029f67ee58d29f
449d555969bfd7befe906877abab098c6e63a0e8
/69/CH10/EX10.20/10_20.sce
652a2f4ceac737d8b170c8d24718b8f9f6bed165
[]
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
108
sce
10_20.sce
clear; clc; close; Avd_db = 104; Avd = 10^(104/20); disp(Avd,'Open loop voltage gain(Volts) = ');
e697fa2e1c4b7aa20b311890fd7cad7adb4bd145
449d555969bfd7befe906877abab098c6e63a0e8
/3204/CH16/EX16.3/Ex16_3.sce
0ab985d52e1407d2264f59217a78b0b05e47b3b3
[]
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
535
sce
Ex16_3.sce
// Initilization of variables M_A=100 // kg // mass of block A M_B=150 // kg // mass of block B mu=0.2 // coefficient of friction between the blocks and the surface x=1 // m // distance by which block A moves g=9.81 // m/s^2 // acc due to gravity // Calculations // Consider the respective F.B.D // Applying the principle of work and energy to the system of blocks A&B and on simplifying we get the value of v as, v=sqrt(((-mu*M_A*g)+(M_B*g))/(125)) // m/s // Results clc printf('The velocity of block A is %f m/s \n',v)
60056cecb7c31ce644d1a9d3fa7a24e282e8a422
449d555969bfd7befe906877abab098c6e63a0e8
/716/CH9/EX9.3/Solved_Ex9_3.sce
9a9e9de579c0156c21238f56f5eb9cffc655e5ab
[]
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
637
sce
Solved_Ex9_3.sce
//compute circular convolution of x1(n)={2 1 2 1} & x2(n)={1 2 3 4} clc; clear; n=0:1:3;//for four point DFT x1=[1 2 3 4]; disp(x1,'Given signal=> x1(n)='); X1=dft(x1,-1); disp(X1,'four point DFT of x(n)=>'); disp(abs(X1),'magnitude of four point DFT x(n)=>'); disp(atan(imag(X1),real(X1)),'phase of four point DFT x(n)=>'); x2=[2 1 2 1]; disp(x2,'Given signal=> x1(n)='); X2=dft(x2,-1); disp(X2,'four point DFT of x(n)=>'); disp(abs(X2),'magnitude of four point DFT x(n)=>'); disp(atan(imag(X2),real(X2)),'phase of four point DFT x(n)=>'); X3=X1.*X2; x3=dft(X3,1); disp(x3,'by circular convolution x3(n)=>');
0527f204fd02259cbfc1c70f02f68fe0e6dcaa11
f04d3d47f893de08cd99a31b4870112915b80d5b
/Datasets/australian/data7.tst
fc1290fe37d1007d343450b4fc033a84a0bef55f
[]
no_license
MesumRaza/MyWorkInPython
f5364b8514943e44c7200123653da9f4551251b1
bd8c9b3ca2fb02ae6d2b626054fa3cd32c28b330
refs/heads/master
2021-08-19T21:46:41.412995
2017-11-27T13:37:52
2017-11-27T13:37:52
111,728,604
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,389
tst
data7.tst
0 0.101504 0.422679 0.5 0.538462 0.875 0.210526 1 0 0 0 0.5 0.17 0 class1 0 0.24812 0.196429 0.5 0.230769 0.375 0.192982 0 0 0 1 0 0.05 0 class0 0 0.162857 0.0239286 0.5 0.384615 0.875 0.0614035 1 0 0 0 0.5 0.2 0 class0 1 0.141654 0.397321 0.5 1 0.875 0.0161404 1 1 0.0149254 0 0.5 0.05 0 class1 0 0.26797 0.401786 0.5 0 0 0 0 0 0 0 0.5 0.092 0.052 class0 0 0.279398 0.0192857 0.5 0.923077 0.375 0.00140351 1 0 0 0 0.5 0.22 0.11177 class1 1 0.152932 0.0535714 0.5 0.0769231 0.875 0.0657895 1 1 0.0895522 0 0.5 0.1 0.00327 class1 1 0.345865 0.00446429 0 0.538462 0.375 0.0526316 0 0 0 1 0.5 0.116 0.00113 class1 1 0.241805 0.0446429 0 0.230769 0.375 0.00877193 0 0 0 0 0.5 0.112 0 class0 0 0.155338 0.0178571 0.5 0.769231 0.875 0.0438596 1 1 0.0149254 0 0.5 0 0.00678 class1 1 0.111579 0.00892857 0 0.538462 0.875 0.00877193 0 0 0 0 0.5 0.14 0.00204 class0 1 0.265714 0.553571 0.5 0.538462 0.375 0.0175439 1 0 0 0 0.5 0.06 0 class0 1 0.136541 0.107143 0.5 0.461538 0.375 0.0452632 1 1 0.0149254 0 0.5 0.13 0.008 class1 1 0.357143 0.0625 0 0.538462 0.5 0.00877193 1 0 0 1 0.5 0.082 0.004 class0 0 0.166617 0.160714 0.5 0.615385 0.375 0.0350877 0 0 0 1 0.5 0.18 6e-05 class0 1 0.339549 0.135357 0.5 0.615385 0.375 0.0408772 1 0 0 1 0.5 0.1 0 class0 0 0.503759 0.0267857 0.5 0.769231 0.875 0.0964912 1 1 0.0149254 0 0.5 0.1665 0.00892 class1 1 0.275639 0.142857 0 0.923077 0.375 0.0526316 0 0 0 1 0.5 0.06 0 class0 0 0.253083 0.380893 0.5 0.769231 0.875 0.00298246 0 1 0.179104 1 0.5 0.0645 3e-05 class0 1 0.211729 0.055 0.5 0.615385 0.375 0.131579 1 1 0.0746269 1 0.5 0.05 3e-05 class1 1 0.617744 0.553571 0.5 0.692308 1 0 1 1 0.298507 0 0.5 0.076 0.0013 class0 1 0.0350376 0.0267857 0.5 0.538462 0.375 0.0614035 1 1 0.0746269 1 0.5 0.176 0.0069 class1 1 0.162857 0.446429 0.5 0.615385 0.375 0.0307018 1 0 0 1 0.5 0.13 0 class0 1 0.284511 0.196429 0.5 0.769231 0.875 0.192982 1 1 0.179104 1 0.5 0.204 0.01 class1 1 0.246917 0.0178571 0.5 0.538462 0.375 0.0614035 1 1 0.164179 0 0.5 0.016 0.0054 class1 1 0.12782 0.0164286 0.5 0.230769 0.375 0.00438596 0 0 0 1 0.5 0.14 0.00055 class0 1 0.421053 0.0342857 0.5 1 0.375 0.0877193 1 0 0 0 0.5 0.255 0.006 class1 1 0.344662 0.0714286 0.5 0.153846 0.375 0.00877193 0 0 0 1 0.5 0.1105 0 class0 1 0.181654 0.458393 0.5 0.923077 0.375 0.0175439 0 0 0 0 0.5 0 2e-05 class0 1 0.243158 0.0655357 0.5 0.538462 0.875 0.152105 1 0 0 0 0.5 0.13 0.002 class1 1 0.095188 0.00892857 0.5 0.769231 0.375 0.00438596 0 0 0 0 0.5 0.1 0 class0 1 0.0890226 0.0133929 0.5 0.769231 0.375 0.0701754 1 1 0.0298507 1 0.5 0.04 0 class1 1 0.566466 0.00142857 0.5 1 0.875 0.00140351 1 0 0 0 0.5 0 0.03 class1 1 0.736842 0.25 0.5 0.692308 1 0 0 0 0 0 0.5 0 0.00012 class0 1 0.403459 0.1175 0.5 0.461538 0.375 0.122807 0 0 0 1 0 0.2 0 class0 0 0.038797 0.0075 0.5 0.384615 0.375 0.00438596 0 0 0 0 0.5 0.1 1e-05 class0 1 0.236842 0.0207143 0.5 0.615385 0.375 0.0101754 0 1 0.0149254 0 0.5 0.17 0.02803 class0 1 0.304511 0.160714 0.5 0.384615 0.375 0.0350877 1 0 0 1 0.5 0.12 0 class0 0 0.869624 0 0.5 0.538462 0.375 0 0 0 0 0 1 0.092 0 class1 1 0.424812 0.00732143 0.5 0.153846 0.875 0.179825 1 0 0 0 0.5 0.2 0 class1 0 0.131579 0.392857 0 0.769231 0.375 0.105263 1 0 0 1 0.5 0.134 0 class0 1 0.160451 0.0714286 0.5 0.692308 0.125 0.00578947 0 1 0.0298507 0 0.5 0.16 0.013 class0 1 0.45985 0.0178571 0.5 0.153846 0.875 0.175439 1 0 0 1 0.5 0.16 0 class1 0 0.139098 0.419643 0.5 1 0.875 0.0175439 1 1 0.0298507 1 0.5 0.15 0.00551 class1 1 0.310827 0.0476786 0.5 0.153846 0.5 0.00438596 0 0 0 1 0.5 0.22 0.045 class0 1 0.140301 0.410714 0.5 0.153846 0.375 0.122807 1 1 0.134328 0 0.5 0.028 0.00742 class1 1 0.183008 0.03125 0.5 0.230769 0.375 0.0131579 0 1 0.0298507 1 0.5 0.087 3e-05 class0 0 0.057594 0.321429 0.5 0.384615 0.375 0.0482456 1 0 0 1 0.5 0 0 class1 1 0.100301 0.03875 0.5 0.769231 0.375 0.0526316 0 0 0 0 0.5 0.054 7e-05 class0 1 0.269474 0.577321 0.5 0.0769231 0.375 0.105263 1 1 0.134328 0 0.5 0.125 0.0073 class1 0 0.659098 0.0714286 0.5 0 0 0.22807 0 1 0.0149254 0 0.5 0 0.0001 class0 1 0.690526 0.055 0.5 0.769231 0.375 0.00438596 1 0 0 1 0.5 0.13 0 class1 0 0.773233 0.5 0.5 0 0 0 1 1 0.164179 1 0.5 0 0.014 class1 1 0.245564 0.0371429 0 0.153846 0.5 0.0175439 1 1 0.149254 1 0.5 0.066 0.00028 class0 1 0.523759 0.232143 0.5 0.769231 0.875 0.210526 1 0 0 1 0.5 0.175 0 class1 0 0.14782 0.410714 0 0.230769 0.875 0.105263 0 0 0 1 0.5 0.01 0.00016 class0 1 0.0965414 0.330357 0.5 0.538462 0.375 0.0584211 1 1 0.0447761 1 0.5 0.02 0.00028 class1 1 0.517594 0.272321 0.5 0.615385 0.875 0.54386 1 1 0.179104 0 0.5 0 0.0079 class1 1 0.142857 0.0535714 0.5 0.769231 0.375 0.0833333 1 1 0.0447761 1 0.5 0 0.00582 class1 1 0.278195 0.5 0 0 0 0 0 1 0.0298507 0 0.5 0.08 1e-05 class0 1 0.298195 0.0119643 0 0.923077 0.375 0.00298246 0 0 0 0 0.5 0.09 0 class0 1 0.14782 0.0164286 0 0.615385 0.375 0.0921053 1 1 0.0895522 1 0.5 0.104 0.00347 class0 1 0.0476692 0.0119643 0 0.230769 0.375 0.0101754 0 0 0 0 0 0.1 0 class0 0 0.106466 0.303571 0.5 0.538462 0.375 0.00578947 0 0 0 0 0.5 0 0.00351 class0 0 0.704211 0.589286 0.5 0.769231 0.375 0.385965 1 0 0 1 0.5 0.0105 0.10561 class1 1 0.26797 0.178571 0 0.384615 0.375 0.298246 1 0 0 0 0.5 0 0 class0 0 0.169173 0.440357 0.5 0.923077 0.875 0.122807 1 1 0.0895522 0 0.5 0.2 0.00458 class1 1 0.116541 0.348214 0.5 0.538462 0.375 0.00877193 1 0 0 0 0.5 0.07 0 class0 1 0.100301 0 0.5 0.538462 0.375 0 0 0 0 0 1 0.092 0 class0
5d75e1d578c2bfeb5a5c0a1bd38a17edc54f603d
449d555969bfd7befe906877abab098c6e63a0e8
/1106/CH10/EX10.3/ex10_3.sce
db2a2664a72edff28f9f94fdfe6fa91411cd5803
[]
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
ex10_3.sce
// Example 10.3, Page No-438 clear clc fo=100*10^3 C=2*10^-6 Vcc=6 fld=7.8*fo/(2*Vcc) fldn=fld/1000 printf('\nDelta FL= +/- %d kHz', fldn) LR=2*fldn printf('\nLock Range= %d kHz', LR) fcd=sqrt(fld/(C*2*%pi*3.6*10^3)) fcdn=fcd/1000 printf('\nDelta FC= +/- %.3f kHz', fcdn) CR=2*fcdn printf('\nCapture Range= %.3f kHz', CR) R1=12*10^3 C1=1.2/(4*R1*fo) C1n=C1*10^12 printf('\nC1= %d pF', C1n)
e596c5c6b52d23d86b4298724fd6c928b6c80ec1
449d555969bfd7befe906877abab098c6e63a0e8
/728/CH5/EX5.3/Ex5_3.sce
22e23aa84849b7ec3617a783c74bdf99428f7cae
[]
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
377
sce
Ex5_3.sce
//Caption:Calculate the resonant frequency of a circular cavity resonator //Exa:5.3 clc; clear; close; //Given: d=12.5;//diameter(in cm) c=3*10^10;//in cm/s l=5;//length(in cm) a=d/2; //For TM012 mode: n=0; m=1; p=2; P=2.405; f=(c/(2*%pi))*[(P/a)^2+(p*%pi/d)^2]^0.5; disp(f/10^9,'Resonant frequency (in GHz) ='); //Answer in book in wrongly given as 6.27GHz
fe572df440647ad5ad9c224916519b49e4618c17
d963a50c09b7380dd7b1b97cd9997e9bd17ea8f3
/r35/lib/crack.tst
80016cf803b2b5ec2043f6e3cde71f3355ea54a2
[ "BSD-3-Clause" ]
permissive
reduce-algebra/reduce-historical
8220e211b116e0e01ff1a38f51917cac9db6069f
e014152729c4d62bb1ce4f5c311a027042a5495a
refs/heads/master
2023-04-10T22:54:00.796596
2021-04-16T08:52:19
2021-04-16T08:52:19
343,245,204
7
1
NOASSERTION
2021-04-16T08:53:31
2021-03-01T00:15:22
TeX
UTF-8
Scilab
false
false
1,547
tst
crack.tst
% Initial load up list off echo$ lisp(depl!*:=nil)$ % clearing of all dependences setcrackflags()$ lisp write "...................................................................", "......."$ write "An example of the determination of point symmetries for ODEs"$ depend y,x$ de := {df(y,x,2) = (df(y,x)*(2*x*y+x**3) - 4*y**2)/x**4, y, x}$ mo := {0,nil,nil}$ LIEPDE(de,mo)$ nodepend y,x$ lisp write "...................................................................", "......."$ write "An example of the determination of point symmetries for PDEs"$ depend u,x,y$ de := {df(u,x,x)-df(u,y),u,{x,y}}$ mo := {0,nil,nil}$ LIEPDE(de,mo)$ nodepend u,x,y$ lisp write "...................................................................", "......."$ write "An example of the determination of first integrals of ODEs"$ depend y,x$ de := {df(y,x,2)=x*df(y,x)**2-2*df(y,x)/x-y**2/x, y, x}$ mo := {0,{},2}$ FIRINT(de,mo)$ nodepend y,x$ lisp write "...................................................................", "......."$ write "An example of the determination of a Lagrangian for an ODE "$ depend f,x$ depend y,x$ de := {df(y,x,2) = 6*y**2 + x, y, x}$ mo := {0,{}}$ LAGRAN(de,mo)$ nodepend f,x$ nodepend y,x$ lisp write "...................................................................", "......."$ write "An example of the factorization of an ODE " $ depend f,x$ depend y,x$ depend q,x$ de := {df(y,x,2) = df(y,x)**2/y - f*df(y,x) - y*q, y, x}$ mo := {2,{}}$ DECOMP(de,mo)$ nodepend f,x$ nodepend y,x$ nodepend q,x$ end$ --
b40343be8a33f82eb9204da6d469343857a7c9c6
a462bcee025e79a52ab23586a86d1f831d48c682
/Lab 3/quartus/db/soc_system.sld_design_entry_dsc.sci
d29bf545c1c3b04a712b58e31f65cb566680d8e2
[]
no_license
bettencb/cmp_sci_design
930de4d4ff50e1b068e52f3ac14ce057dd58cc44
4edd7197c0f15255110ffc2b2d054c79b47ced85
refs/heads/main
2023-01-02T23:57:06.782563
2020-10-12T07:58:52
2020-10-12T07:58:52
300,545,067
1
0
null
null
null
null
UTF-8
Scilab
false
false
129
sci
soc_system.sld_design_entry_dsc.sci
version https://git-lfs.github.com/spec/v1 oid sha256:41acbe35e369911214eeed20c0f60278b5c3da8b8bf8517979582ba62c32637b size 2713
b6ccb09c6d762380ade778f8aa8173ab318a7148
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/CreatingPlots/testtitle.sce
d98f29af90430d9d57d1681177a969e5a54ea5c8
[]
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
214
sce
testtitle.sce
// plotting a figure x=[1:0.01:6];y=sin(x); clf; plot(x,y,'-r') // add a title title('y=sin(x)','fontsize',5,'color','red','backgroundcolor','cyan') // Plot axes A=gca(); // change the font A.title.font_style=3;
a11179aa07a51966d4a2bd3020ca4d81d5b40dee
449d555969bfd7befe906877abab098c6e63a0e8
/3557/CH18/EX18.3/Ex18_3.sce
40825bde5e3bd240cdce0fbce924c3873211931e
[]
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
446
sce
Ex18_3.sce
//Example18.3// x=[6*10^4 1*10^4 0 -1*10^4 -2*10^4 -3*10^4 -4*10^4 -5*10^4 -6*10^4 -6*10^4 -1e4 0 1e4 2e4 3e4 4e4 5e4 6e4] y=[0.65 0.58 0.56 0.53 0.46 0.30 0 -0.44 -0.65 -0.65 -0.58 -0.56 -0.53 -0.46 -0.30 0 0.44 0.65] plot2d(x,y, style=1) xlabel("H(10^4 A/m)", "fontsize", 2); ylabel("Br(web/m2"); mprintf("(b) The remanent induction Br =0.56 weber/m^2 at (H = 0)") mprintf("\n(c) The coercive field Hc = -4*10^4 amperes/m (at B= 0)")
3a6726af9a3288b6adec5dc249a11325e6746fda
b4e34afbccba260cb01882a6e81a58851bc6ee2c
/newton.sce
b543d14ad160ac6ea678fde625e1996dd0eb1384
[]
no_license
gabrielseibel1/num
258ce3b7a99a3bcd091ba4791be6f48de60a49c2
088ae943687d83d1cf4a84e59bcb70af1eea6ee5
refs/heads/master
2020-06-11T14:52:40.461998
2019-06-27T23:10:50
2019-06-27T23:10:50
194,003,761
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,016
sce
newton.sce
// Acha raízes de f utilizando a sua derivada, df function output = newton(f, df, x, max_iter, tol1, tol2) for i = 1:max_iter x_anterior = x x = x - f(x)/df(x) if (abs(f(x)) < tol1 | abs((x - x_anterior)/x) < tol2) then output = x //disp(i,"Iterações: ") disp(output,"Achei f(x) = 0 em x = ") return end end output = x disp(output,"Não achei f(x) = 0, mais perto foi x = ") return endfunction // Acha raízes de f utilizando a sua derivada, df function output = newton2(f, x, max_iter, tol1, tol2) for i = 1:max_iter x_anterior = x x = x - f(x)/numderivative(f, x) if (abs(f(x)) < tol1 | abs((x - x_anterior)/x) < tol2) then output = x //disp(i,"Iterações: ") disp(output,"Achei f(x) = 0 em x = ") return end end output = x disp(output,"Não achei f(x) = 0, mais perto foi x = ") return endfunction
8e1d1d757f92112786357a5188f2dfb405a082c4
449d555969bfd7befe906877abab098c6e63a0e8
/2339/CH3/EX3.28.1/Ex3_28.sce
2c497a32c7dc33a9196988c22ede7af362bb33fc
[]
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
556
sce
Ex3_28.sce
clc clear //Inputs //The Values in the program are as follows: //Temperature in Celcius converted to Kelvin(by adding 273) //Pressure in bar converted to kPa (by multiplying 100) //Volume in m^3 //Value of R,Cp and Cv in kJ/kg K V1=0.19; P1=5; T1=190+273; P2=1; H=100; G=1.4; R=0.287; Cp=1.005; V2=V1*((P1/P2)^(1/G)); W=((P1*100*V1)-(P2*100*V2))/(G-1); m=(P1*100*V1)/(R*T1); T2=T1*((P2/P1)^((G-1)/G)) x=H/(m*Cp); T3=x+T2; V3=(V2*T3)/T2; Wo=P2*100*(V3-V2); Wf=W+Wo; printf('Total Work Done: %1.2f kJ',Wf); printf('\n');
0063aff0037baf1b8fc6eed2fc09fc6843d66bf3
cf18e17577a53971d3093809b663bfa64741f20f
/coloredNoiseRegressionBands/psd.sce
7b0051511b4708890f882ca44d3530d16c1a230a
[]
no_license
stepanov17/vniim_unsorted
07757339bc2337540ccf5191ae19964834d09ec0
8c8261507d5cbb8be913bf9ae1a3606fd70cbbaf
refs/heads/master
2022-01-17T15:10:18.109538
2021-12-31T18:03:59
2021-12-31T18:03:59
175,603,636
1
0
null
null
null
null
UTF-8
Scilab
false
false
887
sce
psd.sce
// check: the noise is indeed 1 / f^alpha noise, i.e. its PSD ~ 1 / f^alpha clear; clc; fact = 1.; // norming factor alpha = 1.; // 1 / f^alpha noise generator function [cn] = coloredNoise(alpha, n) x = rand(1, n, "normal"); X = fft(x); n2 = n / 2 + 1; freqs = 1 : n2; X = X(freqs); // X(1) = 0.; // PSD(1) = 0 if uncomment this X = X ./ (freqs .^ (0.5 * alpha)); Xc = conj(X(n2 - 1 : -1 : 2)); y = real(ifft([X Xc])); cn = fact * y(1 : n); endfunction function [psd] = PSD(s) ns = length(s); psd = (1. / ns) * abs(fft(s)).^2; // PSD ~ square of FFT magnitude endfunction n = 100 psd = zeros(1, n); navg = 1.e5; for i = 1 : navg s = coloredNoise(alpha, n); psd = psd + PSD(s); end psd = (1. / (fact^2 * navg)) * psd; psdRef = 1. ./ (1 : n).^alpha; T = 1 : 30; // compare: PSD and 1 / f^alpha [T' psdRef(T)' psd(T)']
ba33ae63fa20e64011ca86b683fddd0bab45bcdc
449d555969bfd7befe906877abab098c6e63a0e8
/3877/CH1/EX1.2/Ex1_2.sce
b6779a94583b2d91e70c39419844379cc797b1c0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
3,121
sce
Ex1_2.sce
//Refer to the figure 1.12 //Initialization of variables for fig. a Nb=3//The number of binary links Nt=2//The number of ternary links No=0//The number of other (quartenary etc.) links N = (Nb+Nt+No) //The number of total links L = 2//The number of loops //calculation P1= (N+L-1)//The enumber of joints or pairs F = 3*(N-1)-(2*P1)//The number of degrees of freedom //Result clc printf(' (a)The total number of links is %f \n',N) printf('The number of joints is %f \n',P1) printf('The number of degrees of freedom is %f \n The linkage has zero degree of freedom and thus one or more link should be added to the linkage to make it a mechanism.\n',F) //Initialization of variables for fig. b Nb=7//The number of binary links Nt=3//The number of ternary links No=0//The number of other (quartenary etc.) links N = (Nb+Nt+No) //The number of total links L = 4//The number of loops //calculation P1= (N+L-1)//The enumber of joints or pairs F = 3*(N-1)-(2*P1)//The number of degrees of freedom //Result printf(' (b)The total number of links is %f \n',N) printf('The number of joints is %f \n',P1) printf('The number of degrees of freedom is %f \n With four loops and 1 degree of freedom the number of links should be madee 10 and number of joints be 13 \n',F) //Initialization of variables for fig. c Nb=3//The number of binary links Nt=5//The number of ternary links No=0//The number of other (quartenary etc.) links N = (Nb+Nt+No) //The number of total links L = 4//The number of loops //calculation P1= (N+L-1)//The enumber of joints or pairs F = 3*(N-1)-(2*P1)//The number of degrees of freedom //Result printf(' (c)The total number of links is %f \n',N) printf('The number of joints is %f \n',P1) printf('The number of degrees of freedom is %f \n It is a superstructure With 4 loops the number of links should be 10 for 1 degree of freedom \n',F) //Initialization of variables for fig. d Nb=12//The number of binary links Nt=0//The number of ternary links No=0//The number of other (quartenary etc.) links N = (Nb+Nt+No) //The number of total links L = 5//The number of loops //calculation P1= (N+L-1)//The enumber of joints or pairs F = 3*(N-1)-(2*P1)//The number of degrees of freedom //Result printf(' (d)The total number of links is %f \n',N) printf('The number of joints is %f \n',P1) printf('The number of degrees of freedom is %f \n It is a mechanism with 1 degree of freedom \n',F) //Initialization of variables for fig. e N = 5//The number of total links P2 = 1//The number of pairs with 2 degrees of freedom L = 4//The number of loops //calculation P1= 5//The enumber of joints or pairs with one degree of freedom F = 3*(N-1)-(2*P1)-(P2)//The number of degrees of freedom //Result printf(' (c)The total number of links is %f \n',N) printf('The number of joints with 1 dof is %f \n',P1) printf('The number of joints with 2 dof is %f \n', P2) printf('The number of degrees of freedom is %f \n It is a mechanism with 1 degree of freedom \n',F)
f48510490fff890f5176b664166879d751fb246a
449d555969bfd7befe906877abab098c6e63a0e8
/3511/CH11/EX11.4/Ex11_4.sce
8aef2d3bd753691d792e3fc96885aaff08cb2b42
[]
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
978
sce
Ex11_4.sce
clc; P01=7; // Pressure at inlet in bar T01=300+273.15; // Temperature at inlet in kelvin P02=3; // Pressure at outlet in bar alpha_2=70; // Nozzle angle in degree eff_N=0.9; // Isentropic efficiency of nozzle WT=75; // Power Produced in kW Cp=1.15; // Specific heat in kJ/kg K r=1.33; // Specific heat ratio T_02=T01*(P02/P01)^((r-1)/r); // Isentropic temperature after expansion T02=T01-eff_N*(T01-T_02); // Actual temperature after expansion c2=sqrt (2*Cp*10^3*(T01-T02)); // Absolute velocity // For optimum blade speed ratio u=(c2*sind (alpha_2)/2); // Mean blade velocity beta_2=atand((c2*sind(alpha_2)-u)/(c2*cosd(alpha_2))); // Blade angle // From velocity triangles ct2=c2*sind(alpha_2); w2=c2*cosd(alpha_2)/cosd(beta_2); w3=w2; // Equal inlet and outlet angles beta_3=54; // in degrees ct3=w3*sind(beta_3)-u; m=(WT*10^3)/(u*(ct2+ct3)); // Gas mass flow rate disp ("degree",beta_2,"Blade angle = "); disp ("kg/s",m,"Gas Mass Flow Rate = ");
600fe9cc091076d4a3bda9400b1b02dfba80d120
665eac2bfd0d2f1d559f485375f89e8a91632c6e
/VOL_300/335_03/AS8096.TST
295132749d3726715d52f8388633458747857219
[]
no_license
kubohisa/CUGL
615c29732e5fc2c6bcb29a4013be3351dc21dda6
75fc7cb2f8c5f3869a091b2b5c50c09323bc1c03
refs/heads/main
2023-03-15T16:19:49.355867
2020-10-02T21:19:00
2020-10-02T21:19:00
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
9,848
tst
AS8096.TST
immed equ 98h srcreg equ 38h dstreg equ 30h longoff equ 7654h shortoff equ 33h extern equ 1234h srcreg2 equ 44h shiftcount equ 10 add dstreg, #immed add dstreg, [ srcreg ] add dstreg, [ srcreg ] + add dstreg, extern add dstreg, longoff [ srcreg ] add dstreg, shortoff [ srcreg ] add dstreg, srcreg add dstreg, srcreg2, #immed add dstreg, srcreg2, [ srcreg ] add dstreg, srcreg2, [ srcreg ] + add dstreg, srcreg2, extern add dstreg, srcreg2, longoff [ srcreg ] add dstreg, srcreg2, shortoff [ srcreg ] add dstreg, srcreg2, srcreg addb dstreg, #immed addb dstreg, [ srcreg ] addb dstreg, [ srcreg ] + addb dstreg, extern addb dstreg, longoff [ srcreg ] addb dstreg, shortoff [ srcreg ] addb dstreg, srcreg addb dstreg, srcreg2, #immed addb dstreg, srcreg2, [ srcreg ] addb dstreg, srcreg2, [ srcreg ] + addb dstreg, srcreg2, extern addb dstreg, srcreg2, longoff [ srcreg ] addb dstreg, srcreg2, shortoff [ srcreg ] addb dstreg, srcreg2, srcreg addc dstreg, #immed addc dstreg, [ srcreg ] addc dstreg, [ srcreg ] + addc dstreg, extern addc dstreg, longoff [ srcreg ] addc dstreg, shortoff [ srcreg ] addc dstreg, srcreg addcb dstreg, #immed addcb dstreg, [ srcreg ] addcb dstreg, [ srcreg ] + addcb dstreg, extern addcb dstreg, longoff [ srcreg ] addcb dstreg, shortoff [ srcreg ] addcb dstreg, srcreg and dstreg, #immed and dstreg, [ srcreg ] and dstreg, [ srcreg ] + and dstreg, extern and dstreg, longoff [ srcreg ] and dstreg, shortoff [ srcreg ] and dstreg, srcreg and dstreg, srcreg2, #immed and dstreg, srcreg2, [ srcreg ] and dstreg, srcreg2, [ srcreg ] + and dstreg, srcreg2, extern and dstreg, srcreg2, longoff [ srcreg ] and dstreg, srcreg2, shortoff [ srcreg ] and dstreg, srcreg2, srcreg andb dstreg, #immed andb dstreg, [ srcreg ] andb dstreg, [ srcreg ] + andb dstreg, extern andb dstreg, longoff [ srcreg ] andb dstreg, shortoff [ srcreg ] andb dstreg, srcreg andb dstreg, srcreg2, #immed andb dstreg, srcreg2, [ srcreg ] andb dstreg, srcreg2, [ srcreg ] + andb dstreg, srcreg2, extern andb dstreg, srcreg2, longoff [ srcreg ] andb dstreg, srcreg2, shortoff [ srcreg ] andb dstreg, srcreg2, srcreg br [ srcreg ] clrc clr dstreg clrb dstreg clrvt cmp dstreg, #immed cmp dstreg, [ srcreg ] cmp dstreg, [ srcreg ] + cmp dstreg, extern cmp dstreg, longoff [ srcreg ] cmp dstreg, shortoff [ srcreg ] cmp dstreg, srcreg cmpb dstreg, #immed cmpb dstreg, [ srcreg ] cmpb dstreg, [ srcreg ] + cmpb dstreg, extern cmpb dstreg, longoff [ srcreg ] cmpb dstreg, shortoff [ srcreg ] cmpb dstreg, srcreg dec dstreg decb dstreg di div dstreg, #immed div dstreg, [ srcreg ] div dstreg, [ srcreg ] + div dstreg, extern div dstreg, longoff [ srcreg ] div dstreg, shortoff [ srcreg ] div dstreg, srcreg divb dstreg, #immed divb dstreg, [ srcreg ] divb dstreg, [ srcreg ] + divb dstreg, extern divb dstreg, longoff [ srcreg ] divb dstreg, shortoff [ srcreg ] divb dstreg, srcreg divu dstreg, #immed divu dstreg, [ srcreg ] divu dstreg, [ srcreg ] + divu dstreg, extern divu dstreg, longoff [ srcreg ] divu dstreg, shortoff [ srcreg ] divu dstreg, srcreg divub dstreg, #immed divub dstreg, [ srcreg ] divub dstreg, [ srcreg ] + divub dstreg, extern divub dstreg, longoff [ srcreg ] divub dstreg, shortoff [ srcreg ] divub dstreg, srcreg djnz srcreg, jmpdst ei ext dstreg extb dstreg inc dstreg incb dstreg jbc srcreg, 0, jmpdst jbc srcreg, 1, jmpdst jbc srcreg, 2, jmpdst jbc srcreg, 3, jmpdst jbc srcreg, 4, jmpdst jbc srcreg, 5, jmpdst jbc srcreg, 6, jmpdst jbc srcreg, 7, jmpdst jbs srcreg, 0, jmpdst jbs srcreg, 1, jmpdst jbs srcreg, 2, jmpdst jbs srcreg, 3, jmpdst jbs srcreg, 4, jmpdst jbs srcreg, 5, jmpdst jbs srcreg, 6, jmpdst jbs srcreg, 7, jmpdst jc jmpdst jmpdst je jmpdst jge jmpdst jgt jmpdst jh jmpdst jle jmpdst jlt jmpdst jnc jmpdst jne jmpdst jnh jmpdst jnst jmpdst jnv jmpdst jnvt jmpdst jst jmpdst jv jmpdst jvt jmpdst lcall jmpdst ld dstreg, #immed ld dstreg, [ srcreg ] ld dstreg, [ srcreg ] + ld dstreg, extern ld dstreg, longoff [ srcreg ] ld dstreg, shortoff [ srcreg ] ld dstreg, srcreg ldb dstreg, #immed ldb dstreg, [ srcreg ] ldb dstreg, [ srcreg ] + ldb dstreg, extern ldb dstreg, longoff [ srcreg ] ldb dstreg, shortoff [ srcreg ] ldb dstreg, srcreg ldbse dstreg, #immed ldbse dstreg, [ srcreg ] ldbse dstreg, [ srcreg ] + ldbse dstreg, extern ldbse dstreg, longoff [ srcreg ] ldbse dstreg, shortoff [ srcreg ] ldbse dstreg, srcreg ldbze dstreg, #immed ldbze dstreg, [ srcreg ] ldbze dstreg, [ srcreg ] + ldbze dstreg, extern ldbze dstreg, longoff [ srcreg ] ldbze dstreg, shortoff [ srcreg ] ldbze dstreg, srcreg ljmp jmpdst mul dstreg, #immed mul dstreg, [ srcreg ] mul dstreg, [ srcreg ] + mul dstreg, extern mul dstreg, longoff [ srcreg ] mul dstreg, shortoff [ srcreg ] mul dstreg, srcreg mul dstreg, srcreg2, #immed mul dstreg, srcreg2, [ srcreg ] mul dstreg, srcreg2, [ srcreg ] + mul dstreg, srcreg2, extern mul dstreg, srcreg2, longoff [ srcreg ] mul dstreg, srcreg2, shortoff [ srcreg ] mul dstreg, srcreg2, srcreg mulb dstreg, #immed mulb dstreg, [ srcreg ] mulb dstreg, [ srcreg ] + mulb dstreg, extern mulb dstreg, longoff [ srcreg ] mulb dstreg, shortoff [ srcreg ] mulb dstreg, srcreg mulb dstreg, srcreg2, #immed mulb dstreg, srcreg2, [ srcreg ] mulb dstreg, srcreg2, [ srcreg ] + mulb dstreg, srcreg2, extern mulb dstreg, srcreg2, longoff [ srcreg ] mulb dstreg, srcreg2, shortoff [ srcreg ] mulb dstreg, srcreg2, srcreg mulu dstreg, #immed mulu dstreg, [ srcreg ] mulu dstreg, [ srcreg ] + mulu dstreg, extern mulu dstreg, longoff [ srcreg ] mulu dstreg, shortoff [ srcreg ] mulu dstreg, srcreg mulu dstreg, srcreg2, #immed mulu dstreg, srcreg2, [ srcreg ] mulu dstreg, srcreg2, [ srcreg ] + mulu dstreg, srcreg2, extern mulu dstreg, srcreg2, longoff [ srcreg ] mulu dstreg, srcreg2, shortoff [ srcreg ] mulu dstreg, srcreg2, srcreg mulub dstreg, #immed mulub dstreg, [ srcreg ] mulub dstreg, [ srcreg ] + mulub dstreg, extern mulub dstreg, longoff [ srcreg ] mulub dstreg, shortoff [ srcreg ] mulub dstreg, srcreg mulub dstreg, srcreg2, #immed mulub dstreg, srcreg2, [ srcreg ] mulub dstreg, srcreg2, [ srcreg ] + mulub dstreg, srcreg2, extern mulub dstreg, srcreg2, longoff [ srcreg ] mulub dstreg, srcreg2, shortoff [ srcreg ] mulub dstreg, srcreg2, srcreg neg dstreg negb dstreg nop norml dstreg, srcreg not dstreg notb dstreg or dstreg, #immed or dstreg, [ srcreg ] or dstreg, [ srcreg ] + or dstreg, extern or dstreg, longoff [ srcreg ] or dstreg, shortoff [ srcreg ] or dstreg, srcreg orb dstreg, #immed orb dstreg, [ srcreg ] orb dstreg, [ srcreg ] + orb dstreg, extern orb dstreg, longoff [ srcreg ] orb dstreg, shortoff [ srcreg ] orb dstreg, srcreg pop [ srcreg ] pop [ srcreg ] + pop extern pop longoff [ srcreg ] pop shortoff [ srcreg ] pop srcreg popf push #immed push [ srcreg ] push [ srcreg ] + push extern push longoff [ srcreg ] push shortoff [ srcreg ] push srcreg pushf ret rst scall jmpdst setc shl dstreg, # shiftcount shl dstreg, srcreg shlb dstreg, # shiftcount shlb dstreg, srcreg shll dstreg, # shiftcount shll dstreg, srcreg shr dstreg, # shiftcount shr dstreg, srcreg shra dstreg, # shiftcount shra dstreg, srcreg shrab dstreg, # shiftcount shrab dstreg, srcreg shral dstreg, # shiftcount shral dstreg, srcreg shrb dstreg, # shiftcount shrb dstreg, srcreg shrl dstreg, # shiftcount shrl dstreg, srcreg sjmp jmpdst skip dstreg st dstreg, [ srcreg ] st dstreg, [ srcreg ] + st dstreg, extern st dstreg, longoff [ srcreg ] st dstreg, shortoff [ srcreg ] st dstreg, srcreg stb dstreg, [ srcreg ] stb dstreg, [ srcreg ] + stb dstreg, extern stb dstreg, longoff [ srcreg ] stb dstreg, shortoff [ srcreg ] stb dstreg, srcreg sub dstreg, #immed sub dstreg, [ srcreg ] sub dstreg, [ srcreg ] + sub dstreg, extern sub dstreg, longoff [ srcreg ] sub dstreg, shortoff [ srcreg ] sub dstreg, srcreg sub dstreg, srcreg2, #immed sub dstreg, srcreg2, [ srcreg ] sub dstreg, srcreg2, [ srcreg ] + sub dstreg, srcreg2, extern sub dstreg, srcreg2, longoff [ srcreg ] sub dstreg, srcreg2, shortoff [ srcreg ] sub dstreg, srcreg2, srcreg subb dstreg, #immed subb dstreg, [ srcreg ] subb dstreg, [ srcreg ] + subb dstreg, extern subb dstreg, longoff [ srcreg ] subb dstreg, shortoff [ srcreg ] subb dstreg, srcreg subb dstreg, srcreg2, #immed subb dstreg, srcreg2, [ srcreg ] subb dstreg, srcreg2, [ srcreg ] + subb dstreg, srcreg2, extern subb dstreg, srcreg2, longoff [ srcreg ] subb dstreg, srcreg2, shortoff [ srcreg ] subb dstreg, srcreg2, srcreg subc dstreg, #immed subc dstreg, [ srcreg ] subc dstreg, [ srcreg ] + subc dstreg, extern subc dstreg, longoff [ srcreg ] subc dstreg, shortoff [ srcreg ] subc dstreg, srcreg subcb dstreg, #immed subcb dstreg, [ srcreg ] subcb dstreg, [ srcreg ] + subcb dstreg, extern subcb dstreg, longoff [ srcreg ] subcb dstreg, shortoff [ srcreg ] subcb dstreg, srcreg xor dstreg, #immed xor dstreg, [ srcreg ] xor dstreg, [ srcreg ] + xor dstreg, extern xor dstreg, longoff [ srcreg ] xor dstreg, shortoff [ srcreg ] xor dstreg, srcreg xorb dstreg, #immed xorb dstreg, [ srcreg ] xorb dstreg, [ srcreg ] + xorb dstreg, extern xorb dstreg, longoff [ srcreg ] xorb dstreg, shortoff [ srcreg ] xorb dstreg, srcreg
9abdcf7b49307e10fc02e2506539d719878163fb
449d555969bfd7befe906877abab098c6e63a0e8
/617/CH3/EX3.6/Example3_6.sci
f225ce8c2e5fd1dd451862afae3c19d1e735aa50
[]
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,094
sci
Example3_6.sci
clear all clc() // To find out heat loss through conduction through a furnace k=0.8 // Avg. thermal conductivity in Btu/hr-ft-degF T1=400 // Inner surface temperature of furnace in degF T2=100 // Outer surface temperature of furnace in degF a=3 // Length of furnace in ft b=4 // Breadth of furnace in ft c=2.5 // Height of furnace in ft Aa=2*a*b // Area of surface A in ft^2 Ab=2*b*c // Area of surface A in ft^2 Ac=2*a*c // Area of surface A in ft^2 x=4.5/12 // Thickness of insulation in ft t=24 // Time elapsed in hr M=4 // Number of edges N=8 // Number of corners S=Aa/x+Ab/x+Ac/x+0.54*(a+b+c)*M+0.15*x*N // Shape factor qo=S*k*(T1-T2) // Heat flow per hour q=qo*t // Heat loss in 24 hr printf("The heat loss in 24 hr is %d Btu",q)
5e5d768f938a425bb54c0ca66fa15ac114a10eb3
cb3612e7507309a5c30d1ea7f640c0ccde8f8bf9
/inattentional_blindness.sce
0d10b014d72e978379b8889943c3d742272be755
[]
no_license
aforehand/thesis
b797c6646b5f6bc48d58c3df318c014038fc6c84
8189db373898e264544a5d9d52fc00296ea4abb6
refs/heads/master
2021-01-01T04:54:01.627632
2017-07-26T16:46:02
2017-07-26T16:46:02
97,270,443
0
0
null
null
null
null
UTF-8
Scilab
false
false
17,597
sce
inattentional_blindness.sce
scenario = "Testing"; response_matching = simple_matching; active_buttons = 2; button_codes = 1,2; default_font = "Calibri"; default_font_size = 24; default_text_color = 100,100,100; default_clear_active_stimuli = false; response_logging = log_all; #write_codes = true; #pulse_width = 6; response_port_output=false; begin; #intro text text {caption = "Press the mouse when you see a letter\n from two positions back repeated.\n Focus only on the letters at the center of the screen\n and do not move your head during the experiment.\n\n Press the mouse to begin the experiment.\n Good luck!"; } intro_text; #feedback text text {caption = " ";} feedback_text; #trial beginning text text {caption = "Trial beginning...";} next_trial; #letter array array { bitmap {filename = "\letters\\A.png";} A; bitmap {filename = "\letters\\B.png";} B; bitmap {filename = "\letters\\C.png";} C; bitmap {filename = "\letters\\D.png";} D; bitmap {filename = "\letters\\E.png";} E; bitmap {filename = "\letters\\F.png";} F; bitmap {filename = "\letters\\G.png";} G; bitmap {filename = "\letters\\H.png";} H; bitmap {filename = "\letters\\I.png";} I; bitmap {filename = "\letters\\J.png";} J; bitmap {filename = "\letters\\K.png";} K; bitmap {filename = "\letters\\L.png";} L; bitmap {filename = "\letters\\M.png";} M; bitmap {filename = "\letters\\N.png";} N; bitmap {filename = "\letters\\O.png";} O; bitmap {filename = "\letters\\P.png";} P; bitmap {filename = "\letters\\Q.png";} Q; bitmap {filename = "\letters\\R.png";} R; bitmap {filename = "\letters\\S.png";} S; bitmap {filename = "\letters\\T.png";} T; bitmap {filename = "\letters\\U.png";} U; bitmap {filename = "\letters\\V.png";} V; bitmap {filename = "\letters\\W.png";} W; bitmap {filename = "\letters\\X.png";} X; bitmap {filename = "\letters\\Y.png";} Y; bitmap {filename = "\letters\\Z.png";} Z; } letters; #blank box bitmap {filename = "\letters\\Template.png";} template; #frequency-tagged houses array { LOOP $i 10; bitmap {filename = "\IB\\house_tag_$i.png";} "house$i"; ENDLOOP; } houses; #frequency-tagged faces array { LOOP $i 10; bitmap {filename = "\IB\\face_tag_$i.png";} "face$i"; ENDLOOP; } faces; #trees array { LOOP $i 3; bitmap {filename = "\IB\\tree_tag_$i.png";} "tree_$i"; ENDLOOP; } trees; #drinks array { LOOP $i 3; bitmap {filename = "\IB\\drink_tag_$i.png";} "drink_$i"; ENDLOOP; } drinks; #cakes array { LOOP $i 3; bitmap {filename = "\IB\\cake_tag_$i.png";} "cake_$i"; ENDLOOP; } cakes; #boxes array { LOOP $i 3; bitmap {filename = "\IB\\box_tag_$i.png";} "box_$i"; ENDLOOP; } boxes; #tree-drink transition array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\tree_drink_$i.png";} "tree-drink$i"; ENDLOOP; } trees_drinks; #drink-cake transition array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\drink_cake_$i.png";} "drink-cake$i"; ENDLOOP; } drinks_cakes; #cake-box transition array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\cake_box_$i.png";} "cake-box$i"; ENDLOOP; } cakes_boxes; #box-house transition array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\box_house_$i.png";} "box-house$i"; ENDLOOP; } boxes_houses; #helmet-face transition array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\helmet_face_$i.png";} "helmet-face$i"; ENDLOOP; } helmets_faces; #face-house transitions array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\face_house_$i.png";} "face-house$i"; ENDLOOP; } faces_houses; array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\f_h_alt_$i.png";} "face-house-alt$i"; ENDLOOP; } faces_houses_alt; array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\f_h_dif_$i.png";} "face-house-dif$i"; ENDLOOP; } faces_houses_dif; #house-face transition array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\house_face_$i.png";} "house-face$i"; ENDLOOP; } houses_faces; array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\h_f_alt_$i.png";} "house-face-alt$i"; ENDLOOP; } houses_faces_alt; array { LOOP $i 20; bitmap {filename = "\IB\\transitions\\h_f_dif_$i.png";} "house-face-dif$i"; ENDLOOP; } houses_faces_dif; #placeholder image bitmap {filename = "placeholder.png";} placeholder; #fixation mark picture { bitmap {filename = "lines.png";}; x = 0; y = 0; bitmap {filename = "fixation.png";}; x = 0; y = 0; } fixation_pic; #trial picture picture { bitmap {filename = "lines.png";}; x = 0; y = 0; bitmap placeholder; x = 0; y = 0; bitmap placeholder; x = 0; y = 0; } trial_pic; #wait trial trial { trial_duration = forever; trial_type = first_response; picture { text intro_text; x = 0; y = 0; }; } wait_trial; #trial beginning trial { trial_duration = 1000; trial_type =fixed; picture { text next_trial; x = 0; y = 0; }; } begin_trial; #fixation trial trial { trial_duration = 1000; trial_type = fixed; picture fixation_pic; } fixation_trial; #stimulus trial; variable duration trial { trial_type = specific_response; trial_type = fixed; terminator_button = 2; stimulus_event { picture trial_pic; port_code = 1; stimulus_time_in = 100; stimulus_time_out = 2000; } stim_event; } stim_trial; #feedback trial trial { trial_duration = forever; trial_type = first_response; picture { text feedback_text; x = 0; y = 0; }feedback_pic; } feedback_trial; ############################################################################## begin_pcl; ############################################################################## #variables double scenario_time = 4.8e5; #length of the scenario in ms: 6e5=10mins;4.8e5=8mins;1.2e5=2mins double before_trans_time = 5.8e4;#time before switching from the non-target images in ms double image_dur_time = 1.5e3; #duration of each image double target_prop = 0.2; #proportion of targets in a trial int n_back = 2; #n-back value ############################################################################## #parameters that should not be changed int difficulty; #diffidulty setting determined in training phase int letter_dur; #duration of one letter's presentation int total_dur; #duration of letter and blank int stim_count; #number of letters per run int before_trans; #number of letters shown before switching from the non-target image int image_dur; #number of letters to appear with each image #trial durations int a_dur = 118; #duration of transitions, 8.3 Hz int b_dur = 78; #duration of frequency-tagged image b, 12.5 Hz int c_dur = 58; #duration of frequency-tagged image c, 16.67 Hz int d_dur = 38; #duration of initial iamges, 25 Hz #indexing parameters int trans_index = 1; #keeps track of the index of the transition array int stim_index = 1; #keeps track of how many letters have appeared with the current image int switcher_init = 3; #initial value of the switcher in each block int switcher = 0; #rotates among the tagged images and transitions int trans_dur = 20; #number of images in each transition int index = 1; #letter index int run = 1; #stimuli and image parameters int num_targs; #number of targets presented so far int num_non_targs; #number of non-targets presented so far bool first_trans; # array<int> is_target[0]; #array of target positions array<int> last_image[1] = {1}; int current_image = 1; array<int> codes[2]; bool onset = true; array<int> trans_set[1] = {1}; #pre-trans parameters bool img = true; bool increment = true; bool can_break = false; int pre_trans_index = 1; #last n stimuli array<int> last_n_stims[0]; loop int x = 1 until x > n_back begin last_n_stims.add(0); x = x + 1; end; #event codes int non_target = 1; int b_ho = 2; int house = 3; int ho_f = 4; int face = 5; int f_ho = 6; #for feedback int correct_count = 0; int false_alarm_count = 0; #non-target images array<bitmap> non_targets[0][0]; non_targets.add(trees); non_targets.add(drinks); non_targets.add(cakes); non_targets.add(boxes); #non-target transitions array<bitmap> non_target_trans[0][0]; non_target_trans.add(trees_drinks); non_target_trans.add(drinks_cakes); non_target_trans.add(cakes_boxes); #face-house transitions array<bitmap> face_house_trans[0][0]; face_house_trans.add(faces_houses); face_house_trans.add(faces_houses_alt); face_house_trans.add(faces_houses_dif); #house-face transitions array<bitmap> house_face_trans[0][0]; house_face_trans.add(houses_faces); house_face_trans.add(houses_faces_alt); house_face_trans.add(houses_faces_dif); ############################################################################## #subroutines ############################################################################## #generates random stimulus array index sub int random_exclude(int first, int last, array<int> exclude[n_back]) begin int rval = random(first, last - 1); loop int i = 1; until i > exclude.count() begin if rval == exclude[i] then rval = random_exclude(first, last, exclude); i = 1; else i = i + 1; end; end; return rval end; #generates an array of target positions sub array<int, 1> is_target begin array<int> targs[0]; loop int i = 1 until i > (before_trans + stim_count) begin if i <= int(floor(double(before_trans + stim_count) * target_prop)) then targs.add(1); else targs.add(0); end; i = i + 1; end; loop int i = 1 until i > n_back begin if targs[i] == 0 then i = i + 1; else targs.shuffle(); i = 1; end; end; return targs end; #runs a trial sub do_trial(int phase, array<bitmap> stimuli[20], array<bitmap> next_images[3]) begin trial_pic.set_part(3, letters[index]); loop int j = 1; until j > (total_dur / letter_dur) begin loop int k = 1; until k > (letter_dur / stim_trial.duration()) begin if phase == 1 then #distractor images current_image = random_exclude(1, 4, last_image); elseif phase == 2 then #distractor transitions if trans_index < 1 then current_image = 1; else current_image = trans_index; end; trans_index = trans_index - 1; elseif phase == 3 then #face-house transitions if trans_index > trans_dur then current_image = trans_dur; else current_image = trans_index; end; trans_index = trans_index + 1; else #face and house images current_image = random_exclude(1, 10, last_image); end; trial_pic.set_part(2, stimuli[current_image]); if ((trans_index < 1) || (trans_index > trans_dur)) && (phase != 1) then current_image = random_exclude(1, 3, last_image); trial_pic.set_part(2, next_images[current_image]); end; stim_trial.present(); if k == 1 && j == 1 then stim_event.set_target_button(0); stim_event.set_event_code(""); end; last_image[1] = current_image; k = k + 1; end; if j == 1 then trial_pic.set_part(3, template); end; j = j + 1; end; end; #sets event codes and target stuff sub set_codes(int target) begin if (target == 1) then index = last_n_stims[n_back]; num_targs = num_targs + 1; stim_event.set_target_button(1); stim_event.set_stimulus_time_out(2000); onset = true; else index = random_exclude(1, 26, last_n_stims); stim_event.set_target_button(0); stim_event.set_response_active(true); stim_event.set_stimulus_time_out(total_dur); num_non_targs = num_non_targs + 1; end; int code = codes[run]; if stim_trial.duration() == b_dur then code = code + 10; elseif stim_trial.duration() == c_dur then code = code + 20; end; if target == 1 then code = code + 100; end; if onset then stim_event.set_port_code(code); else stim_event.set_port_code(0); end; stim_event.set_event_code(string(code)+","+string(index)); end; #does the things sub do_the_things(int dur, int code_1, int code_2, int phase, array<bitmap> images[20], array<bitmap> next_images[3], int i) begin stim_trial.set_duration(dur); codes[1] = code_1; codes[2] = code_2; set_codes(is_target[i]); do_trial(phase, images, next_images); end; #updates parameters for main loop sub update_loop_parameters(bool main_loop) begin if main_loop then if ((stim_index > image_dur) || (trans_index > trans_dur)) then stim_index = 1; trans_index = 1; trans_set[1] = random_exclude(1, 4, trans_set); first_trans = false; switcher = mod((switcher + 1), 4); onset = true; end; else if increment then if stim_index > image_dur then stim_index = 1; trans_index = 1; img = false; end; if trans_index > trans_dur then trans_index = 1; pre_trans_index = pre_trans_index + 1; if pre_trans_index == non_targets.count() then increment = false; end; img = true; end; else if stim_index > image_dur then stim_index = 1; trans_index = trans_dur; img = false; if pre_trans_index == non_targets.count() then can_break = true; end; pre_trans_index = pre_trans_index - 1; end; if trans_index < 1 then trans_index = trans_dur; if pre_trans_index == 1 then increment = true; end; img = true; end; end; end; loop int j = last_n_stims.count(); until j == 1 begin last_n_stims[j] = last_n_stims[j-1]; j = j - 1; end; last_n_stims[1] = index; end; #displays results sub display_results begin correct_count = response_manager.total_hits(); false_alarm_count = response_manager.total_false_alarms(); double performance = double(correct_count - false_alarm_count) / double(num_targs); string cap = "Results:"; cap = cap + "\nNumber of Targets: " + string(num_targs); cap = cap + "\nHits: " + string(correct_count); cap = cap + "\nFalse Alarms: " + string(false_alarm_count); cap = cap + "\nPercentage Correct: " + printf(performance * 100.0, "%.1f") + "%"; cap = cap + "\nPress the mouse to continue."; feedback_text.set_caption(cap); feedback_text.redraw(); feedback_trial.present(); end; #displays the non-target images sub pre_trans begin loop int i = 1 until (i > before_trans) && can_break begin can_break = false; if img then do_the_things(d_dur, non_target, non_target, 1, non_targets[pre_trans_index], non_targets[pre_trans_index], i); stim_index = stim_index + 1; else if increment then do_the_things(a_dur, non_target, non_target, 3, non_target_trans[pre_trans_index], non_targets[pre_trans_index + 1], i); trans_index = trans_index + 1; else do_the_things(a_dur, non_target, non_target, 2, non_target_trans[pre_trans_index], non_targets[pre_trans_index], i); trans_index = trans_index - 1; end; end; onset = false; update_loop_parameters(false); i = i + 1; end; trans_index = 1; end; #performs one run of target trials sub do_run (array<bitmap> trans_1[trans_dur], array<bitmap> images_b[10], array<bitmap> trans_2[3][trans_dur], array<bitmap> images_c[10], array<bitmap> trans_3[3][trans_dur]) begin #Initial images pre_trans(); loop int i = before_trans + 1; until i > (before_trans + stim_count) begin #First transition if first_trans then do_the_things(a_dur, b_ho, b_ho, 3, trans_1, images_b, i); #First Stimulus elseif switcher == 0 then do_the_things(b_dur, face, house, 4, images_b, images_b, i); stim_index = stim_index + 1; #Second transition elseif switcher == 1 then do_the_things(a_dur, f_ho, ho_f, 3, trans_2[trans_set[1]], images_c, i); #Second Stimulus elseif switcher == 2 then stim_trial.set_duration(c_dur); do_the_things(c_dur, house, face, 4, images_c, images_c, i); stim_index = stim_index + 1; #Third transition elseif switcher == 3 then do_the_things(a_dur, ho_f, f_ho, 3, trans_3[trans_set[1]], images_b, i); end; onset = false; update_loop_parameters(true); i = i + 1; if i == (before_trans + int(double(stim_count) / 2.0)) then run = 2; end; end; display_results(); end; #calculates the maximum of two numbers sub double max(double num_1, double num_2) begin double max; if num_1 >= num_2 then max = num_1; else max = num_2; end; return max; end; #initializes parameters sub init begin num_targs = 0; num_non_targs = 0; first_trans = true; is_target.resize(before_trans+stim_count); is_target = is_target(); correct_count = 0; false_alarm_count = 0; switcher = switcher_init; end; #converts timing variables into letter count variables sub get_counts begin stim_count = int(floor(scenario_time / double(total_dur))); before_trans = int(floor(before_trans_time / double(total_dur))); image_dur = int(max(floor(image_dur_time / double(total_dur)), 1.0)); end; #main sub main begin input_file in = new input_file; in.open("\logfiles\\difficulty.txt"); letter_dur = int(in.get_line()); total_dur = int(in.get_line()); in.close(); get_counts(); init(); run = 1; wait_trial.present(); begin_trial.present(); fixation_trial.present(); do_run(boxes_houses, houses, house_face_trans, faces, face_house_trans) end; main();
e6fda332eda8a72462dd65b2ad8efa4be211a459
e2ae697563b1b764d79ea1933b555ab0d5e3849c
/macros/modified_gainplot.sci
67a6fd1dd80debf76b23ae56c54675cdff872645
[]
no_license
gq-liu/IPDesignLab
c49b760740f47ec636232a6947aecb3c0626518a
b2f9a9eecad6616c99a2ec20fcceb14fb3ed0c3f
refs/heads/master
2022-01-18T13:30:55.972779
2019-05-06T17:23:12
2019-05-06T17:23:12
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
6,066
sci
modified_gainplot.sci
function []=modified_gainplot(sl,fmin,fmax,pas,comments,f_unit) //! // Copyright INRIA // // Gain magnitude diagram with frequencies given in Hz or rad/s, selected // by the last argument ('h' or 'r'). If the last argument is not // 'h' neither 'r' then the default frequency unit is Hz in view of // maintaining backwards compatibility with the original syntax adopted // in Scilab 2.7. // // Distributed with the toolbox RLTOOL. // Developed using the original code of gainplot.sci available in Scilab 2.7. // Adapted by Jose Paulo V. S. da Cunha - State University of Rio de Janeiro // Brazil - e-mail: jpaulo@ieee.org. // // Last modified: May 1 2004 // [lhs,rhs]=argn(0); dom='c'; //--------------------- pi2=2*%pi; //--------------------- select rhs case 1, f_unit='h'; case 2, if fmin=='h'|fmin=='r' then f_unit=fmin; rhs=1; else f_unit='h'; end, case 3, if fmax=='h'|fmax=='r' then f_unit=fmax; rhs=2; else f_unit='h'; end, case 4, if pas=='h'|pas=='r' then f_unit=pas; rhs=3; else f_unit='h'; end, case 5, if comments=='h'|comments=='r' then f_unit=comments; rhs=4; else f_unit='h'; end, case 6, if f_unit=='h'|f_unit=='r' then rhs=5; else error('gainplot: Wrong frequency unit'); end, else error('gainplot: Wrong number of arguments'); end; // // Selects the conversion constants for frequencies: // if f_unit=='r' then conversion2=%pi; else conversion2=0.5; end //--------------------- pas_def='auto' // default // noxtitle=%f; ilf=0 flag=type(sl); if flag==15 then flag=16;end select flag case 16 then // sl,fmin,fmax [,pas] [,comments] typ=sl(1);typ=typ(1); if typ<>'lss'&typ<>'r' then error(97,1) end sl1=sl(1); if sl1(1)=='r' then dom=sl(4),else dom=sl(7),end if dom==[] then error(96,1),end // // Detects if the system is discrete-time without sampling period: // discrete_time_without_T=(dom=='d'); if dom=='d' then dom=1;end select rhs case 1 then //sl comments=' ' fmin_default=1.d-3; fmax_default=1.d3; // if dom=='c' then fmax_default=1.d3; else fmax_default=1/(2*dom),end if dom=='c' then fmax_default=1.d3; else fmax_default=conversion2/dom,end // [frq,repf]=repfreq(sl,fmin_default,fmax_default);sl=[] [frq,repf]=modified_repfreq(sl,fmin_default,fmax_default,f_unit);sl=[] [d,phi]=dbphi(repf); case 2 then // sl,frq comments=' ' if min(fmin)<=0 then error('gainplot: requires strictly positive frequency vector') end // [frq,repf]=repfreq(sl,fmin);fmin=[];sl=[] [frq,repf]=modified_repfreq(sl,fmin,f_unit);fmin=[];sl=[] [d,phi]=dbphi(repf); case 3 , //sl,frq,comments ou sl,fmin,fmax if type(fmax)==1 then comments=' ' if fmin<=0 then error('gainplot: requires strictly positive frequency range') end // [frq,repf]=repfreq(sl,fmin,fmax,pas_def),sl=[] [frq,repf]=modified_repfreq(sl,fmin,fmax,pas_def,f_unit),sl=[] [d,phi]=dbphi(repf); else comments=fmax if min(fmin)<=0 then error('gainplot: requires strictly positive frequency vector') end // if type(dom)==1 then nyq_frq=1/2/dom;end if type(dom)==1 then nyq_frq=conversion2/dom;end if find(fmin>nyq_frq)~=[] then warning('There are frequencies beyond Nyquist f!'); end // [frq,repf]=repfreq(sl,fmin);fmin=[];sl=[] [frq,repf]=modified_repfreq(sl,fmin,f_unit);fmin=[];sl=[] [d,phi]=dbphi(repf); end case 4 , if type(pas)==1 then comments=' ', else comments=pas;pas=pas_def end, if min(fmin)<=0 then error('gainplot: requires strictly positive frequency vector') end // [frq,repf]=repfreq(sl,fmin,fmax,pas) [frq,repf]=modified_repfreq(sl,fmin,fmax,pas,f_unit) [d,phi]=dbphi(repf); case 5 then, if min(fmin)<=0 then error('gainplot: requires strictly positive frequency vector') end // [frq,repf]=repfreq(sl,fmin,fmax,pas) [frq,repf]=modified_repfreq(sl,fmin,fmax,pas,f_unit) [d,phi]=dbphi(repf); else error('Invalid call: sys,fmin,fmax [,pas] [,com]') end; case 1 then //frq,db,phi [,comments] ou frq, repf [,comments] noxtitle=%t; // // The system is discrete-time with specified sampling period: // discrete_time_without_T=%f; select rhs case 2 , //frq,repf comments=' ' [phi,d]=phasemag(fmin),fmin=[] case 3 then if type(fmax)==1 then comments=' '//frq db phi d=fmin,fmin=[] phi=fmax,fmax=[] else [phi,d]=phasemag(fmin);fmin=[] comments=fmax end; case 4 then comments=pas;d=fmin;fmin=[];phi=fmax;fmax=[] else error('inputs:frq,db,phi,[com] or frq,repf,[com]') end; frq=sl;sl=[];[mn,n]=size(frq); if min(frq)<=0 then error('gainplot: requires strictly positive frequencies') end if mn<>1 then ilf=1;//un vecteur de frequences par reponse else ilf=0;//un seul vecteur de frequence end; else error('gainplot: invalid plot') end; [mn,n]=size(phi) // //Captions if comments==' ' then comments(mn)=' '; mnc=0 strf='051' else mnc=mn strf='151' end; rect=[min(frq),min(d),max(frq),max(d)] plot2d1("oln",min(frq),min(d),0,'051',' ',rect); xgrid(4) if ilf==0 then plot2d1("oln",frq',d',[1,3:mn+1],strf,strcat(comments,'@'),rect); else plot2d1("gln",frq',d',[1,3:mn+1],strf,strcat(comments,'@'),rect); end if ~noxtitle then //xtitle(' ','Hz','db'); // // Selects the units for the axes: // if f_unit=='r' then if discrete_time_without_T then xtitle(' ','W (rad)','(dB)'); else xtitle(' ','w (rad/s)','(dB)'); end else if discrete_time_without_T then xtitle(' ',['normalized';'frequency'],'(dB)'); else xtitle(' ','f (Hz)','(dB)'); end end end endfunction
f63db76337774b5d0fe079bfb2e35279cd190126
449d555969bfd7befe906877abab098c6e63a0e8
/2048/CH7/EX7.4/lead_lag.sce
0a7fbb640a4e79e27cb14156b215b54a0d78e798
[]
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
860
sce
lead_lag.sce
// A procedure to design lead controllers, as explained in Fig. 7.12 on page 257. // 7.4 exec('tf.sci',-1) w = linspace(0.001,%pi,1000); a = linspace(0.001,0.999,100); lena = length(a); omega = []; lead = []; for i = 1:lena, zero = a(i); pole = 0.9*zero; sys = tf([1 -zero],[1 -pole],-1); frq = w/(2*%pi); [frq,repf]=repfreq(sys, frq); [db,phase] =dbphi(repf); [y,j] = max(phase); omega = [omega w(j)]; lead = [lead y]; comega = (pole+zero)/(pole*zero+1); clead = zero-pole; clead1 = sqrt((1-zero^2)*(1-pole^2)); clead = clead/clead1; // [w(j) acos(comega) y atan(clead)*180/pi] end subplot(2,1,1), plot(lead,omega) xtitle('','','Frequency, in radians'), xgrid; halt; subplot(2,1,2), plot(lead,a) xtitle('','Lead generated, in degrees','Zero location'), xgrid;
1a37d1ad538ba1aa71c7cbeb41fdbb20f5b1291b
449d555969bfd7befe906877abab098c6e63a0e8
/773/CH11/EX11.06/11_06.sci
9e4668f31995f2a67750c5c0a98f2a39fe1c3849
[]
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
sci
11_06.sci
//value// s=%s; H=syslin('c',1/((s+1)*(s+5))); evans(H,100) printf("Clearly from the graph it observed that given point -0.85 lies on the root locus \n") // there is another process to check whether the points lie on the locus of the system P=-3+5*%i; //P=selected point k=-1/real(horner(H,P)); disp(k,"k=') Ns=H('num');Ds=H('den'); roots(Ds+k*Ns) //contains P as particular root
e965a56bd7ecc753e260b7f999ab3f0d11f902a0
449d555969bfd7befe906877abab098c6e63a0e8
/779/CH9/EX9.10/9_10.sce
3bc343c98b11c110e7aa34cd6629516b2f57affc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
240
sce
9_10.sce
// At 0.1Mpa, 110 degree h2 = 2696.2; hf = 844.89; hfg = 1947.3; x2 = (h2-hf)/hfg; vf = 0.001023; // at T = 70 degree V = 0.000150; // In m3 m1 = V/vf; m2 = 3.24; x1 = (x2*m2)/(m1+m2); disp(x1,"The quality of the steam in the pipe line is")
52742730fde666a91fc0ba6f08bbc1a0f07875ea
1489f5f3f467ff75c3223c5c1defb60ccb55df3d
/tests/test_ods_6_n.tst
aa601503d86f4dbdfe462b3688562fbfbc6840ae
[ "MIT" ]
permissive
ciyam/ciyam
8e078673340b43f04e7b0d6ac81740b6cf3d78d0
935df95387fb140487d2e0053fabf612b0d3f9e2
refs/heads/master
2023-08-31T11:03:25.835641
2023-08-31T04:31:22
2023-08-31T04:31:22
3,124,021
18
16
null
2017-01-28T16:22:57
2012-01-07T10:55:14
C++
UTF-8
Scilab
false
false
1,948
tst
test_ods_6_n.tst
** File Info Version: 1.0 (encrypted) Num Logs = 2 Num Trans = 0 Num Writers = 0 Total Entries = 4 Tranlog Offset = 218 Transaction Id = 3 Index Free List = n/a Total Size of Data = 169 Data Transformation Id = 2 Index Transformation Id = 7 ** Entry Info for: all num: 0000000000000000 pos: 0000000000000020 len: 0000000000000038 txn: 0000000000000002 txo: 0000000000000000 flags: lk=0 tx=0 0000000000000020 ba df 9b 0d 72 d9 0c 43 87 fa 37 5c f4 ab b5 6c ....r..C..7\...l 0000000000000030 c9 9c 39 10 05 fd d5 c1 61 8c 0d 17 8b ce f0 40 ..9.....a......@ 0000000000000040 55 7a bd c2 ed 5e 68 6e ac 24 63 c6 fc 2c 63 c4 Uz...^hn.$c..,c. 0000000000000050 25 5f c2 f4 59 8f c1 f3 %_..Y... num: 0000000000000001 pos: 000000000000008e len: 000000000000001b txn: 0000000000000002 txo: 0000000000000000 flags: lk=0 tx=0 000000000000008e 95 01 5b b8 f0 32 63 6e cb 8c 6a 8e 4a 28 d4 b8 ..[..2cn..j.J(.. 000000000000009e 71 4f f3 66 d3 37 99 c0 03 47 c2 qO.f.7...G. num: 0000000000000002 pos: 0000000000000073 len: 000000000000001b txn: 0000000000000002 txo: 0000000000000000 flags: lk=0 tx=0 0000000000000073 81 e0 49 81 b2 18 4a 80 80 74 2c 79 45 df d4 99 ..I...J..t,yE... 0000000000000083 23 01 81 b1 29 a7 a7 dd fd fe 63 #...).....c num: 0000000000000003 pos: 0000000000000058 len: 000000000000001b txn: 0000000000000002 txo: 0000000000000000 flags: lk=0 tx=0 0000000000000058 2f 90 c4 fa 5b 8d c5 f8 39 c1 7f a7 6d 24 b7 46 /...[...9...m$.F 0000000000000068 31 f3 83 b2 be 08 60 ad e2 f9 1e 1.....`.... ** Freelist Info No freelist entries. ** Transaction Log Info version = 1.0 (encrypted) sequence = 2 val_hash = 2177926815 entry_offs = 0 append_offs = 56 ** Transaction Log Info for: all
08b734a48f41280e7ab539b76f13eb3f9c0d7584
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4/macros/mtlb/mtlb_exist.sci
34590aaab30a5b67b0c853fab5a5356783071ee5
[ "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
248
sci
mtlb_exist.sci
function r=mtlb_exist(nam) // Copyright INRIA fptr=funptr(nam) if fptr<>0 then fptr=int(fptr/100) if fptr<=500 then r=5 else r=3 end elseif exists(nam)==1 then if type(nam)==11|type(nam)==13 then r=2 else r=1 end end
6466396eea5c7b071e05d1a0120cf410e29f6ae1
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/macros/sci2for/cla2for.sci
ad9db6b8e0bc2d0f6a25106ed67c149aaaa3e252
[ "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
2,691
sci
cla2for.sci
function [txt,vnms,vtps,nwrk]=cla2for(clause,vnms,vtps,nwrk) // traduit une clause (if while for select) //! // Copyright INRIA typ=clause(1) //write(6,'cla2for '+typ(1)) select typ(1) case %if then ncl=size(clause) ncas=(ncl-2)/2 [t1,t2,ilst,vnms,vtps,nwrk]=exp2for(clause(2),1,vnms,vtps,nwrk) t1=t1(1); txt=[t2;' '+%if+'('+t1(1)+') '+%then] [t1,vnms,vtps,nwrk]=ins2for(clause(3),1,vnms,vtps,nwrk) txt=[txt;indentfor(t1)]; for ic=2:ncas [t1,t2,ilst,vnms,vtps,nwrk]=exp2for(clause(2*ic),1,vnms,vtps,nwrk) txt=[txt;t2;' '+%elseif+'('+t1(1)(1)+') '+%then]; [t1,vnms,vtps,nwrk]=ins2for(clause(1+2*ic),1,vnms,vtps,nwrk) txt=[txt;indentfor(t1)]; end; [t1,vnms,vtps,nwrk]=ins2for(clause(ncl),1,vnms,vtps,nwrk) if t1<>[] then txt=[txt;' '+%else;indentfor(t1)]; end txt=[txt;' endif'] case %while then [lbl,nwrk]=newlab(nwrk) tl1=part(' '+string(10*lbl)'+' ',1:6) [lbl,nwrk]=newlab(nwrk) tl2=part(' '+string(10*lbl)'+' ',1:6) [t1,t2,ilst,vnms,vtps,nwrk]=exp2for(clause(2),1,vnms,vtps,nwrk) t1=t1(1); txt=[t2;tl1+'continue';' '+%if+'(.not.'+t1(1)+') goto '+tl2] [t1,vnms,vtps,nwrk]=ins2for(clause(3),1,vnms,vtps,nwrk) txt=[txt;t1;'goto '+tl1;tl2+'continue'] case %for then name=typ(2) if find(name==vnms(:,1))==[] then nv=size(vtps)+1 vnms=[vnms;[name,name]] vtps(nv)=list('0','1','1',0) end forexp=1 [lbl,nwrk]=newlab(nwrk) tl1=part(string(10*lbl)+' ',1:6); [t1,t2,ilst,vnms,vtps,nwrk]=exp2for(clause(2),1,vnms,vtps,nwrk) if size(t1(1)(1),2)>1 then t1=strcat(t1(1)(1),',') txt=[t2;' do '+tl1+' '+name+' = '+t1]; else t1=t1(1) txt=[t2;' do '+tl1+' i_'+name+' = 0,'+t1(5)+'-1'; ' call dcopy('+t1(4)+','+t1(1)+'(1+i_'+name+'*'+t1(4)+'),1,'+name+',1)'] ; end forexp=0; [t1,vnms,vtps,nwrk]=ins2for(clause(3),1,vnms,vtps,nwrk) txt=[txt; indentfor(t1);tl1+'continue'] case %select then ncas=(size(clause)-3)/2 [exp1,t1,ilst,vnms,vtps,nwrk]=exp2for(clause(2),1,vnms,vtps,nwrk) exp1=exp1(1) [exp2,t2,ilst,vnms,vtps,nwrk]=exp2for(clause(3),1,vnms,vtps,nwrk) exp2=exp2(1) txt=[t1;t2;' '+%if+'('+exp1(1)+'.eq.'+exp2(1)+') '+%then]; [t1,vnms,vtps,nwrk]=ins2for(clause(4),1,vnms,vtps,nwrk) txt=[txt;indentfor(t1)]; for ic=4:2:2*ncas [exp2,t2,ilst,vnms,vtps,nwrk]=exp2for(clause(1+ic),1,vnms,vtps,nwrk) exp2=exp2(1) txt=[txt;' '+%elseif+'('+exp1(1)+'.eq.'+exp2(1)+' '+%then] [t1,vnms,vtps,nwrk]=ins2for(clause(2+ic),1,vnms,vtps,nwrk) txt=[txt;indentfor(t1)]; end; [t1,vnms,vtps,nwrk]=ins2for(clause(3+2*ncas),1,vnms,vtps,nwrk) if t1<>[] then txt=[txt;' '+%else;indentfor(t1)]; end txt=[txt;' endif'] end //write(6,txt)
384f8b55f039b9591d0407583d7dc4bce496e29a
29d8820a457f748f5bb162c5a84ce51437271a23
/sampling-therom-code.sce
98078b98480f8dbb24bb1976a356fa6f3c68325a
[]
no_license
pscretn/scilab-dsp
eb79c9ce10292724dc731f8b160dfec515603f96
ad35c46f6217866da2af8d9b9417a2ab22d71ff0
refs/heads/master
2023-02-26T23:22:21.969133
2020-11-29T17:25:20
2020-11-29T17:25:20
317,001,029
1
0
null
null
null
null
UTF-8
Scilab
false
false
606
sce
sampling-therom-code.sce
clc clear fm=20 t=0:0.001:0.1 x=sin(2*3.14*fm*t) subplot(2,2,1) plot(t,x) xlabel ("time") ylabel("amplitude") title("sine") //fs>2fm// fs1=800 n=0:1/fs1:0.1 y1=sin(2*3.14*fm*n) subplot(2,2,2) plot2d3(n,y1) subplot(2,2,2) plot(n,y1) xlabel ("time") ylabel("amplitude") title("fs > 2fm") //fs=2fm fs1=40 n=0:1/fs1:0.1 y1=sin(2*3.14*fm*n) subplot(2,2,3) plot2d3(n,y1) subplot(2,2,3) plot(n,y1) xlabel ("time") ylabel("amplitude") title("fs = 2fm") //fs<2fm// fs1=27 n=0:1/fs1:0.1 y1=sin(2*3.14*fm*n) subplot(2,2,4) plot2d3(n,y1) subplot(2,2,4) plot(n,y1) xlabel ("time") ylabel("amplitude") title("fs < 2fm")
e47801eb80462116ba1951e1d4425310e4481e15
449d555969bfd7befe906877abab098c6e63a0e8
/2195/CH3/EX3.15.1.a/ex_3_15_1_a.sce
c8c70d2ee908671fd266753d8188b688fec91db3
[]
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
247
sce
ex_3_15_1_a.sce
//Example 3.15.1.a//voltage clc; clear; close; format('v',6) r1=25;// in kilo ohms r2=5;//in kilo ohms v=30;//in volts vr2=(r2/(r1+r2))*v;// voltage in volts across 5 kilo ohms resistance disp(vr2,"voltage in volts across 5 kilo ohms resistance")
c787f103b72810541fb6b71c1347d0e76a1207fd
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set7/s_Electronics_Circuits_And_Systems_Y._N._Bapat_2561.zip/Electronics_Circuits_And_Systems_Y._N._Bapat_2561/CH10/EX10.7/Ex10_7.sce
10da7b589ecc949593ca74bd69c173c36de2afa3
[]
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
202
sce
Ex10_7.sce
errcatch(-1,"stop");mode(2);//Ex10_7 x=72; disp("Decimal number="+string(x))//decimal value str=dec2hex(x)// decimal to hexadecimal disp("Eqivalent Hexadecimal number="+string(str)) exit();
1886c8315b1fd02026705a119edc8d0ab406d328
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH13/EX13.39/Ex13_39.sce
694c2c5ace1da8da22b233760af60c743fb2e38f
[]
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
501
sce
Ex13_39.sce
clear //Given C=1200*10**-12 //F E=500 L=0.075 //H //Calculation // q0=C*E I0=q0/(sqrt(L*C)) f=1/(2*%pi*sqrt(L*C)) T=1/f U=q0**2/(2.0*C) //Result printf("\n (i) The initial charge onthe capcitor is %0.3f c",q0) printf("\n (ii) The maximum current is %0.0f mA",I0*10**3) printf("\n (iii) The value of frequency is %0.0f *10**3 Hz",f*10**-3) printf("\n Time period is %0.0f *10**-5 S",T*10**5) printf("\n (iv) Total energy is %0.3f *10**-4 J",U*10**4)
704021ef713d1ee8eab51bce6d938c5f0f5ea0f6
449d555969bfd7befe906877abab098c6e63a0e8
/2252/CH22/EX22.1/Ex22_1.sce
18f97f492e2657addf07b46ad92919b51c291e92
[]
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
634
sce
Ex22_1.sce
function[r,theta]=rect2pol(A) x=real(A) y=imag(A) r=sqrt(x^2+y^2) theta=atand(y/x) endfunction function[z]=pol2rect(r,theta) x=r*cos(theta*%pi/180) y=r*sin(theta*%pi/180) z=x+y*%i endfunction Va=400/sqrt(3)//per phase applied voltage Ef=Va//per phase excitation voltage delta=4*2//equivalent electrical degrees by which the rotor is retarted Xs=2//per phase synchronous reactance Vt=pol2rect(Va,0) Ef=pol2rect(Ef,-8) Xs=pol2rect(2,90) Ia=(Vt-Ef)/Xs [Ia theta]=rect2pol(Ia) mprintf("Armature current drawn by the motor is %f A, lagging the applied voltage by %f degrees", Ia, -theta)
174dd283c64f83f591a1af1655acbb064621c582
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH2/EX2.3/Ex2_3.sce
9ea9b7eb97adc840d3e376d0b1488fad01e79766
[]
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
590
sce
Ex2_3.sce
//Initilization of variables F=100 //N x1=2 //m x2=5 //m y1=0 //m y2=1 //m z1=4 //m z2=1 //m //Calculations xside=(x2-x1) //m yside=(y2-y1) //m zside=(z2-z1) //m LD=sqrt(xside^2+yside^2+zside^2) Fx=(xside/LD)*F //N Fy=(yside/LD)*F //N Fz=(zside/LD)*F //N Mx=-Fy*z1 //N-m My=Fx*x1-Fz*z1 //N-m Mz=Fy*x1 //N-m //Result clc printf('Fx is:%f N\n',Fx) //N printf('Fy if:%f N\n',Fy) //N printf('Fz is:%f N\n',Fz) //N printf('Moment about X-Axis is:%f N.m\n',Mx) //N-m printf('Moment about Y-Axis is:%f N.m\n',My) //N-m printf('Moment about Z-Axis is:%f N.m',Mz) //N-m
539931a53bc672fac79b2a8843ff407479257d19
449d555969bfd7befe906877abab098c6e63a0e8
/2414/CH4/EX4.5/Ex4_5.sce
f233a1701ef111c4f9d82cbbbad346e773329585
[]
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
307
sce
Ex4_5.sce
clc; clear all; //chapter 4 //page no 120 //example 4.5 f=[500 2000 10000]; //frequency in Hz Af=1 ./sqrt(1+(f./1000)^8); //Linear amplitude response AdBf=20*log10(Af); mprintf(' f,Hz A(f) AdB(f)\n') for i=1:3 mprintf(' %5i Hz %.5f %.3f dB\n',f(i),Af(i),AdBf(i)) end
e2814455e3a533fd881ba7cdb129cbd7829d8b04
449d555969bfd7befe906877abab098c6e63a0e8
/3821/CH14/EX14.10/Example14_10.sce
9241bba54119480fed2770ec51506c07504c485d
[]
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
943
sce
Example14_10.sce
////Chapter No 14 Air Standard Cycles ////Example No 14.10 Page No 312 ///Find Middle temperature //Input data clc; clear; T1=300; //Initial temp in K T3=2500; //Final temp in K P1=1; //Initial pressure in N/m^2 P3=50; //Final pressure in N/m^2 gamma1=1.4; Cv=0.718; //Calculation r=(P3*T1)/(P1*T3); //Compression ratio eta=(1-(1/r^(gamma1-1))); //Standard effeciency in % T2=T1*((P3/P1)^((gamma1-1)/gamma1)); //Middle temperature in K Qs=Cv*(T3-T2); //Heat supplied in KJ/Kg WD=eta*Qs; //Work done KJ/Kg //Output printf('Compression ratio= %f \n',r); printf('Standard effeciency= %f percent \n',eta); printf('Middle temperature= %f K \n',T2); printf('Heat supplied= %f KJ/Kg \n',Qs); printf('Work done= %f KJ/Kg \n',WD);
455355c46e91e1592a1d0cba9f5845b05f388fe7
eb5936025640ccea178a740474cbe63c3c877762
/Mul8/Mul8.tst
5597a5993016115dfb02ead6fd4421f51bf60394
[ "MIT" ]
permissive
SathvikJoel/project_hack
94bad0245f1b7ab0b128115fa117b601555dfce4
5d6bba6012472230bcca2730263e045a3b3174a1
refs/heads/master
2023-01-08T22:49:51.633858
2020-11-10T10:11:48
2020-11-10T10:11:48
289,897,875
0
0
null
null
null
null
UTF-8
Scilab
false
false
626
tst
Mul8.tst
/* * Test file for Mul8 * * Contains 4 pairs that do not result in overFlow && 2 pairs resulting in overFlow */ load Mul8.hdl, output-file Mul8.out, output-list a%B1.8.1 b%B1.8.1 out%B1.8.1 OF%B1.1.1; // 13 * 9 = 117 set a %B00001101 , set b %B00001001 , eval, output; // 19 * 8 = 152 set a %B00010011 , set b %B00001000 , eval, output; // 22 * 10 set a %B00010110 , set b %B00001010 , eval, output; // 15 * 15 set a %B00001111 , set b %B00001111 , eval, output; // 21 * 15 = 315 set a %B00010101 , set b %B00001111 , eval , output; // 127 * 32 = 4064 set a %B01111111 , set b %B00100000 , eval , output ;
feb7ffcc01f3bd8b264c8aca75de6aba663fe76c
449d555969bfd7befe906877abab098c6e63a0e8
/3472/CH17/EX17.6/Example17_6.sce
ed09d1279af030eb010cf3cd63db7064f64af2b5
[]
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,576
sce
Example17_6.sce
// A Texbook on POWER SYSTEM ENGINEERING // A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar // DHANPAT RAI & Co. // SECOND EDITION // PART II : TRANSMISSION AND DISTRIBUTION // CHAPTER 10: POWER SYSTEM STABILITY // EXAMPLE : 10.6 : // Page number 272 clear ; clc ; close ; // Clear the work space and console funcprot(0) // Given data A = 0.98*exp(%i*0.3*%pi/180) // Constant B = 82.5*exp(%i*76.0*%pi/180) // Constant(ohm) C = 0.0005*exp(%i*90.0*%pi/180) // Constant(mho) D = A // Constant V_S = 110.0 // Sending end voltage(kV) V_R = 110.0 // Receiving end voltage(kV) // Calculations alpha = phasemag(A) // α(°) beta = phasemag(B) // β(°) P_max = (V_S*V_R/abs(B))-(abs(A)*V_R**2/abs(B)*cosd((beta-alpha))) // Maximum power transfer(MW) B_new = abs(B)*sind(beta) // Constant(ohm) beta_new = 90.0 // β(°) P_max_new = (V_S*V_R/B_new)-(V_R**2/B_new*cosd(beta_new)) // Maximum power transfer(MW) // Results disp("PART II - EXAMPLE : 10.6 : SOLUTION :-") printf("\nSteady state stability limit, P_max = %.2f MW", P_max) printf("\nSteady state stability limit if shunt admittance is zero & series resistance neglected, P_max = %.2f MW \n", P_max_new) printf("\nNOTE: Changes in the obtained answer from that of textbook is due to precision")
cb2dc6a97328b5e90a32aa06ffe9a3fc73939ccb
449d555969bfd7befe906877abab098c6e63a0e8
/2498/CH3/EX3.16/ex3_16.sce
9b228c27c2bff41147e5aed257cc3ae96b0409c0
[]
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
339
sce
ex3_16.sce
// Exa 3.16 clc; clear; close; format('v',6) // Given data R = 50;// in ohm Vin = 10;// in V V_Z = 6;// in V I = (Vin-V_Z)/R;// in A I = I * 10^3;// in mA I_Zmin = 5;// in mA // I = I_Z+I_L; I_Rmax = I-I_Zmin;// in mA // The minimum value of R R = V_Z/(I_Rmax*10^-3);// in ohm disp(R,"The minimum value of R in ohm is");
3569052569288e121e153457fe7da05922cad193
1232196a72221f6cc0ee0a9a47111ef1188dafe9
/xcos_blocks/pfet_gldn.sci
14c53ba84a1a415455b994bef93a795312343bdd
[]
no_license
sumagin/rasp30
06dc2ee1587a4eaf3cf5fb992375b8589617f882
a11dcffaed22dbac1f93c2f4798a48c7b0b1f795
refs/heads/master
2021-01-24T23:51:54.459864
2016-07-08T22:03:43
2016-07-08T22:03:43
16,685,217
2
3
null
2015-07-23T15:28:49
2014-02-10T05:17:38
C
UTF-8
Scilab
false
false
3,318
sci
pfet_gldn.sci
function [x,y,typ]=pfet_gldn(job,arg1,arg2) // Copyright INRIA x=[];y=[];typ=[]; select job case 'plot' then standard_draw(arg1) case 'getinputs' then //** GET INPUTS [x,y,typ]=standard_inputs(arg1) case 'getoutputs' then [x,y,typ]=standard_outputs(arg1) case 'getorigin' then [x,y]=standard_origin(arg1) case 'set' then x=arg1; graphics=arg1.graphics;exprs=graphics.exprs model=arg1.model; if size(exprs,'*')==1 then exprs=[exprs;sci2exp(0)];end // compatibility while %t do [ok,gain,over,exprs]=getvalue('Set gain block parameters',.. ['Gain';.. 'Do On Overflow(0=Nothing 1=Saturate 2=Error)'],.. list('mat',[-1,-1],'vec',1),exprs) if ~ok then break,end if gain==[] then message('Gain must have at least one element') else model.ipar=over // temporary storage removed in job compile model.opar(1)=gain ot=do_get_type(gain) if ot==1 then ot=-1 elseif ot==2 then message("Complex type is not supported"); ok=%f; end if ok then in=2 out=1 it=-ones(in,1) ot=-ones(out,1) inp=[-[1:in]',ones(in,1)] oup=[-[1:out]',ones(out,1)] [model,graphics,ok]=set_io(model,graphics,... list(inp,it),... list(oup,ot),[],[]) end if ok then graphics.exprs=exprs x.graphics=graphics;x.model=model break end end end case 'compile' then model=arg1 ot=model.intyp if model.opar==list() then gain=model.rpar(1) else gain=model.opar(1) end over=model.ipar model.ipar=[]; if ot==1 then model.rpar=double(gain(:)); model.opar=list(); model.sim=list('ota_c',5); else if ot==2 then error("Complex type is not supported"); else select ot case 3 model.opar(1)=int32(model.opar(1)) supp1='i32' case 4 model.opar(1)=int16(model.opar(1)) supp1='i16' case 5 model.opar(1)=int8(model.opar(1)) supp1='i8' case 6 model.opar(1)=int32(model.opar(1)) supp1='ui32' case 7 model.opar(1)=int16(model.opar(1)) supp1='ui16' case 8 model.opar(1)=int8(model.opar(1)) supp1='ui8' else error("Type "+string(ot)+" not supported.") end select over case 0 supp2='n' case 1 supp2='s' case 2 supp2='e' end end model.sim=list('gainblk_'+supp1+supp2,4) end x=model case 'define' then model=scicos_model() junction_name='nfet'; funtyp=4; model.sim=list(junction_name,funtyp) model.in=[-1;-1] model.in2=[-2;-3] model.intyp=[1 1] model.out=-1 model.out2=0 model.outtyp=-1 model.evtin=[] model.evtout=[] model.state=[] model.dstate=[] model.rpar=[] model.ipar=[] model.blocktype='c' model.firing=[] model.dep_ut=[%t %f] label=[sci2exp(2)]; gr_i=['text=[''Src'';'' Gate''];';'xstringb(orig(1),orig(2),text,sz(1),sz(2),''fill'');'] x=standard_define([6 3],model,label,gr_i) end endfunction
e9d88d249ada4e38b51f4af20c594be44f12608a
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH2/EX2.13/Ex2_13.sce
6caddb1a53b8ed0c6504a5c60d3557c991911c35
[]
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
284
sce
Ex2_13.sce
//Initilization of variables rx=20 //in ry=0 //in rz=14 //in Fx=0 //lb Fy=-25 //lb Fz=0 //lb //Calculation Mx=ry*Fz-rz*Fy //lb-in My=rx*Fz-rz*Fx //lb-in Mz=rx*Fy-ry*Fx //lb-in //Result clc printf('The moment of the 25-lb force is:%fi+%fj%fk lb.in',Mx,My,Mz) //lb-in
a7b3939927ca24f4926bd9748d7689806f764313
449d555969bfd7befe906877abab098c6e63a0e8
/167/CH2/EX2.13/ex13.sce
4863d7715b7cd699c5fd4d26bb6d30edbe32c9cc
[]
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
401
sce
ex13.sce
//example 13 // annual lighting cost of a classroom clear clc p=80 //power consumed by fluoroscent lamp in watt n=30 //no. of lamps used P=p*n/1000 //lighting power in kW t=250*12 //operating hours in a year E=P*t //lighting energy/year c=E*0.07 //cost of lighting a classroom for a year in dollars printf("\n Hence,annual energy cost of lighting for the classroom is = %.0f $/year. \n",c);
20beadfd26dbd7cad974e394b78d6ca058fef608
449d555969bfd7befe906877abab098c6e63a0e8
/3673/CH17/EX17.2/Ex17_2.sce
37ba5875857e2f6677b303d6005e99339b680e93
[]
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
372
sce
Ex17_2.sce
//Example 17_2 page no:826 clc; //given Rl=600; k=600; fc=1000; //calculating the impedence and capacitance L=k/(4*%pi*fc); L=L*1000;//converting to milli henry C=1/(4*%pi*fc*k); C=C*10^6;//converting to micro farad disp(L,"the inductance required for high pass filter is (in mH)"); disp(C,"the capacitance required for high pass filter is (in microFarad)");
ea643907f4e14c9347c9c377108bcae17ad4ae7b
449d555969bfd7befe906877abab098c6e63a0e8
/2498/CH5/EX5.20/ex5_20.sce
20f88a564163742e68810142abe624adcbbef12f
[]
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
563
sce
ex5_20.sce
// Exa 5.20 clc; clear; close; format('v',6) // Given data Vi= 10*10^-3;// input voltage in V A=1000;// open loop voltage gain Do= 10;//second harmonic distortion in % feedback= 40;//feedback in dB feedback= 10^(feedback/20); // feedback= 1+A*bita or bita= (feedback-1)/A Af= A/(1+A*bita); // New value of second harmonic distortion, Df= Do/(1+A*bita);// in % disp(Df," The new value of second harmonic distortion in % is : ") // New value of input required, Vs= Vi*(1+A*bita);// in V disp(Vs,"The new value of input required in volts is : ")
5a6878ea496901a83b513751197f9758232d11e5
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH16/EX16.06/16_06.sce
35bbb8004b112dd0c88f80275d8d23d2906b7c24
[]
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,434
sce
16_06.sce
//Problem 16.06: A coil of inductance 159.2 mH and resistance 40 ohm is connected in parallel with a 30 μF capacitor across a 240 V, 50 Hz supply. Calculate (a) the current in the coil and its phase angle, (b) the current in the capacitor and its phase angle, (c) the supply current and its phase angle,(d) the circuit impedance, (e) the power consumed, (f) the apparent power, and (g) the reactive power. Draw the phasor diagram. //initializing the variables: C = 30E-6; // in Farads R = 40; // in Ohms L = 159.2E-3; // in Henry V = 240; // in Volts f = 50; // in Hz //calculation: XL = 2*%pi*f*L Z1 = (R^2 + XL^2)^0.5 ILR = V/Z1 phi1 = atan(XL/R) phi1d = phi1*180/%pi Xc = 1/(2*%pi*f*C) Ic = V/Xc phi2 = %pi/2 phi2d = phi2*180/%pi Ih = ILR*cos(phi1) + Ic*cos(phi2) Iv = -1*ILR*sin(phi1) + Ic*sin(phi2) I = (Ih^2 + Iv^2)^0.5 phi = atan(abs(Iv)/Ih) Z = V/I P = V*I*cos(phi) phid = phi*180/%pi S = V*I Q = V*I*sin(phi) printf("\n\n Result \n\n") printf("\n (a)Current through coil is %.3f A and lagged by phase angle is %.2f°",ILR,phi1d) printf("\n (b)Current through capacitor is %.3f A and lead by phase angle is %.0f°",Ic,phi2d) printf("\n (c)supply Current is %.3f A and lagged by phase angle is %.2f°",I,phid) printf("\n (d)Impedance Z = %.2f Ohm ",Z) printf("\n (e)Power consumed = %.0f Watt ",P) printf("\n (f)apparent Power = %.1f VA ",S) printf("\n (g)reactive Power = %.1f var ",Q)
39280664d81e8de150697ecd70919b5aa356f8fa
2e7ac15637155640e3712a844d056c754373fa8b
/TP6/PREM/integration_prem.sce
07301a58cbc78730ac25eef722843a66f5290568
[]
no_license
BenoitURRUTY/math_appli_student
f02c8c6179935f11cd1e6a561ae4a75dee034037
f94d76cba43e27042a4a69b91385a33c92a569a1
refs/heads/master
2020-09-14T16:23:50.490866
2019-12-17T16:15:57
2019-12-17T16:15:57
223,183,360
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,556
sce
integration_prem.sce
/// integration verticale du modele PREM pour calculer masse Terre et duree trajet /// PREM = profils verticaux de rho et Vp (polynomes), selon Dziewonski & Anderson 1981 /// intervalle en prof : 0= centre Terre, 6471km = surface /// IMPORTANT : travailler en unites SI !!!!!!! /// avec dz=10km, m=5.970e24kg, g=9.8105975 /// avec dz= 1km, m=5.972e24kg, g=9.8135578, t=10.1mn clear //// lecture des donnees du modele PREM /// 2 lignes d'entete fd = file('open','PREM_table1.txt','old'); read(fd,1,1,'(A)'); read(fd,1,1,'(A)'); /// n lignes avec intervalle de prof en km, coef polynomes^2 pour rho (g/cm3) et Vp(km/s) prem = read(fd,-1,10); // intervalle prof1-prof2 et coeff polynome^3 de rho & Vp file('close',fd) /// conversion profondeurs en m prem(:,1:2) = prem(:,1:2) *1e3; /// rayon terrestre en m rt = 6371e3; /// tester valeurs de PREM //zz=prem(:,1); //zzr=prem(:,1)/6371; //rho=prem(:,3)+prem(:,4).*zzr+prem(:,5).*zzr.*zzr+prem(:,6).*zzr.*zzr.*zzr; //vp =prem(:,7)+prem(:,8).*zzr+prem(:,9).*zzr.*zzr+prem(:,10).*zzr.*zzr.*zzr; //plot(zz,rho); plot(zz,vp) // initialisation masse m en kg, temps trajet en s m = 0; tt = 0; /// resolution verticale dz en m dz=1e3; /// boucle verticale de dz a 6371km /// compteur ii pour conserver profil de d (et m, g) ii = 0 for zz=dz:dz:rt ii = ii+1; zzr = zz/rt; // zz normalisee dans polynomes rho(ii) = 0; /// masse vol kg/m^3 vp(ii) = 0; /// vp en m/s for nn=1:size(prem,1) // selection polynome selon zz rho(ii) = rho(ii) + (zz>=prem(nn,1) & zz<prem(nn,2))* ... (prem(nn,3) + prem(nn,4)*zzr + ... prem(nn,5)*zzr*zzr + prem(nn,6)*zzr*zzr*zzr); vp(ii) = vp(ii) + (zz>=prem(nn,1) & zz<prem(nn,2))* ... (prem(nn,7) + prem(nn,8)*zzr + ... prem(nn,9)*zzr*zzr + prem(nn,10)*zzr*zzr*zzr); end rho(ii) = rho(ii) * 1e3; // conversion g/cm3 > kg/m3 vp(ii) = vp(ii) * 1e3; // conversion km/s > m/s /// masse correspondant a dz dm = 4* %pi * zz*zz * rho(ii) * dz; m = m + dm; /// temps de parcours correspondant a dz dt = dz/vp(ii); tt = tt + dt; end // sur zz disp(m,'Masse de la Terre en kg : ') disp(tt/60,'Temps de trajet en minutes : ') /// gravite g = G.m/rt^2 avec m en kg et rt en m, G en N.m^2.kg^-2 g = 6.67e-11 * m /rt/rt disp(g,'Gravité g en m/s^2 :') /// plot profil d clf(); plot(zz/1e3-[dz:dz:rt]/1e3,rho/1e3,'-b') plot(zz/1e3-[dz:dz:rt]/1e3,vp/1e3,'-r') xtitle('Profils verticaux de PREM','Profondeur [km]','Masse volumique [g/cm3] et vitesse [km/s]') legend('Masse volumique','Vitesse ondes P',pos=4); ////////////////
fa897f8e765640ce2d23984dd7b7aa08f02beed3
449d555969bfd7befe906877abab098c6e63a0e8
/3802/CH8/EX8.2/Ex8_2.sce
51a826d16f5aaa9e91b6646e149cd49586c946bc
[]
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
600
sce
Ex8_2.sce
//Book Name:Fundamentals of Electrical Engineering //Author:Rajendra Prasad //Publisher: PHI Learning Private Limited //Edition:Third ,2014 //Ex8_2.sce clc; clear; p=4; s=30; c=90; Cs=2*c; printf("\n Number of coil sides=%d \n",Cs) Cs_per_slot=Cs/s; printf("\n Number of coil sides per slot=%d \n",Cs_per_slot) Yb1=Cs/p+2; //Winding is not split Yb2=Cs/p-2; //Winding is split Yb=Yb2; printf("\n Back pitch=%d \n",Yb) Cs1=1+Yb; Cs3=3+Yb; Cs5=5+Yb; //Top coil sides 1,3,5 are in in slot,while all the corresponding bottom coil sides 44,46,48 are in slot 8.
f09e2fe182d627ff447ff61d00c04ac57774f405
7e776703c36b604cef1ac31f35e2c4f819ef2d14
/data/recdev/easy/gen.sce
4d59d65859dee7a717872ef86360f5e26d7347bc
[]
no_license
joaovitor32/facial-recognizer
c02fc99d319c4978f24cf9bd65802eaafd8e1d7b
920b8ebaba9b0b1d69b74057a85864f3561e4c4b
refs/heads/main
2023-06-04T10:04:16.705812
2021-06-19T19:20:20
2021-06-19T19:20:20
375,869,998
2
0
null
null
null
null
UTF-8
Scilab
false
false
472
sce
gen.sce
// generate dataset fname = unix_g('noext *.jpg'); for i=1:size(fname,'*') a = imread(fname(i) + '.jpg'); b = a/2; // b = a + 2*(26/255)*(rand(a)-0.5); // b = normal(b); imwrite(b,fname(i) + '-dark.jpg'); end //for i=1:size(fname,'*') // a = imread(fname(i) + '.jpg'); // b = a + 2*(26/255)*(rand(a)-0.5); // b = normal(b); // imwrite(b,fname(i) + '-noise.jpg'); //end // mogrify -resize 100x100 is done after the above has been performed on the // 260x260
da0161406b24a030dacf54e8e0043b9a669f7f3f
449d555969bfd7befe906877abab098c6e63a0e8
/3775/CH3/EX3.10/Ex3_10.sce
ee08c1c16940ca9f3ff6852f4e8e958b153a2e4d
[]
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
201
sce
Ex3_10.sce
//Ex 3.10 page 124 clc; clear; close; R=2;// ohm Vs=230;// V f=50;// Hz alpha = 120;// degree Ia=10;// A Vo=2*sqrt(2)*Vs*cos(alpha*%pi/180)/%pi V=Ia*R-Vo;// V printf('emf on load side = %.2f V', V)
b6a216cf98c9cc4a4b6ff44dac1d467d3cc5d45c
449d555969bfd7befe906877abab098c6e63a0e8
/2207/CH2/EX2.7.2/ex_2_7_2.sce
59aa8648285d51a7a41f3e0f1a089d07f740b08f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
240
sce
ex_2_7_2.sce
//Example 2.7.2;//MINIMUM WIDTH clc; clear; close; //given data : format('v',7) v=100;//in volts r=20;//in ohms l=0.5;//in henry il=50;//in mA t1=log(1-((il*10^-3)/(v/r)))/(-(r/l));// disp(t1*10^6,"minimum pulse width in micro seconds is")
b3a0570d56b0028a996e74a73e199d8e799df324
449d555969bfd7befe906877abab098c6e63a0e8
/2168/CH25/EX25.14/Chapter25_example14.sce
d795e7c89aad81c1e54deb3b4066528e524a74ce
[]
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,333
sce
Chapter25_example14.sce
clc clear //Input data T1=15+273//Inlet temperature of air in K rp=4//Pressure ratio T4=560+273//Maximum temperature of the cycle in K nc=83//Isentropic efficiency of the compressor in percent nt=86//Isentropic efficiency of the turbine in percent x=75//Heat exchanger making use of heat available in percent g=1.4//Ratio of specific heats //Calculations T5i=(T4*(1/rp)^((g-1)/g))//Temperature in K dt=(T4-T5i)//Isometric temperature drop through turbine in degree C ta=((nt/100)*dt)//Actual temperature drop in degree C T5=(T4-ta)//Temperature in K T2i=(T1*rp^((g-1)/g))//Temperature in K tc=(T2i-T1)//Temperature change in degree C T2=(tc/(nc/100))+T1//Temperature in K q=(T5-T2)//Available heat in exchanger in kcal per kg *Cp T3=((q*(x/100))+T2)//Temperature in K //Without heat exchanger qw=(T4-T2)//Heat supplied *Cp in kcal/kg tw=(T4-T5)//Turbine work *Cp in kcal/kg cw=(T2-T1)//Compressor work *Cp in kcal/kg nw=(tw-cw)//Net workdone *Cp in kcal/kg no=(nw/qw)*100//Overall efficiency in percent //With heat exchanger qs=(T4-T3)//Heat supplied *Cp in kcal/kg no1=(nw/qs)*100//Overall efficiency in percent //Output printf('The overall efficiency \n (a) without heat exchanger is %3.1f percent \n (b) with heat exchanger making use of %i percent of heat available is %3.1f percent',no,x,no1)
e0f1e57ba53f2970d1e628eef283a4df1aa3bb7f
d976bbc11c40569df55ffeebaa44336b1aebb02b
/transformee_esscher.sce
237a01dadbdbaa2951dce0c3a2ecb047add2710e
[]
no_license
jonathanVisbecq/Projet-MODAL-SNA
212271eb7c47164b32b26823c629ad5f44c8230b
596e0052536cfe4522371bbd6de0ca0c37ba2f4d
refs/heads/master
2021-01-02T09:27:42.502076
2013-06-19T16:30:39
2013-06-19T16:30:39
null
0
0
null
null
null
null
ISO-8859-1
Scilab
false
false
2,205
sce
transformee_esscher.sce
//------------------------------------------------------------------------------ // Application de la transformee d'Esscher pour notre problème //------------------------------------------------------------------------------ // Paramètres lambda=0.45 mu=0.55 N = 10 // Nombre de simulations a effectuer nbSimulations = 5000 // Nombre de variables aléatoires à simuler à chaque fois que nécessaire n = 100 // Fonction f dans l'expression de la transformée d'Esscher function y=f(x) if x==1 then y = 1/lambda elseif x==-1 then y = 1/mu else y = 0 end endfunction function [p, e, eConf]=probaEspDepassementChgt(lambda, mu, N, nbSimulations, n) Ll = 0 // Nouvelle intensité sous la transformation d'Esscher new_intensity = exp(f(1))*lambda + exp(f(-1))*mu // La nouvelle loi des saut est l'ancienne multipliée par un facteur exponentiel new_p = exp(f(1))*lambda/(exp(f(1))*lambda + exp(f(-1))*mu) Tps = [] nb = 0 for i=1:nbSimulations X = 1 Xf = f(1) Tn = 0 while (X>0) & (X<N) i = 1 //T = h*grand(1, n, 'geom', (lambda+mu)*h) T = grand(1, n, 'exp', 1/(new_intensity)) U = grand(1, n, 'def') e = 1*(U<=new_p) + (-1)*(U>new_p) while (X>0) & (X<N) & (i<=n) Tn = Tn + T(i) X = X + e(i) Xf = Xf + f(e(i)) i = i+1 end end if X==N then nb = nb + 1 //Tps = [Tps, Tn+h] // Calcul de la vraisemblance L = Xf - Tn*( lambda*(exp(f(1))-1) + mu*(exp(f(-1))-1) ) L = exp(L) //disp(L) //disp(Tn) Tn = Tn/L Tps = [Tps, Tn] end end //disp(sum(Ll)/nbSimulations) p = nb/nbSimulations disp(length(Tps)) e = sum(Tps)/length(Tps) eConf = 1.96*sqrt(variance(Tps))/sqrt(nbSimulations) endfunction [p, e, eConf]=probaEspDepassementChgt(lambda, mu, N, nbSimulations, n) disp(e+eConf, e, e-eConf) [p2, e2, eConf2] = probaEspDepassement(lambda, mu, N, nbSimulations, h, n) disp(e2+eConf2, e2, e2-eConf2)
e41fb88c1f71e3f1c49ef52dcad2330ce2668f20
449d555969bfd7befe906877abab098c6e63a0e8
/629/CH2/EX2.2/example2_2.sce
961a4bf3727b6cf8c95891e442a0055602c14b19
[]
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
464
sce
example2_2.sce
clear clc //Example 2.2 CALCULATING VISCOSITY OF LIQUID AS A FUNCTION OF TEMPERATURE T1=20+273; //[K] T2=40+273; //[K] mu1=10^-3; //[N.s/m^2] mu2=6.53*10^-4; //[N.s/m^2] //ln(mu)=ln(C)+b/T A=[1 1/T1;1 1/T2] B=[log(mu1);log(mu2)] //Az=B, z=[log(C);b] z=inv(A)*B C=exp(z(1)) b=z(2) //[K] //At T=30°C, T=30+273; //[K] //Viscosity mu=C*exp(b/T)*10^4 //in 10^-4 N.s/m^2 printf("\n The viscosity of water at 30°C = %.2f*10^(-4) N.s/m^2. \n",mu)
4eff92058691ef3c615a670b34d4cb81adec4dfa
449d555969bfd7befe906877abab098c6e63a0e8
/1850/CH7/EX7.2/exa_7_2.sce
e29ff2af362bc97cf53a3a1123a31bdfa355dbe7
[]
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
762
sce
exa_7_2.sce
// Exa 7.2 clc; clear; close; //given data f=1;// in kHz f=f*10^3;// in Hz V_CC= 10;// in volt I_B_max= 500;// in nA (for 741 IC op-amp) I_B_max= I_B_max*10^-9;// in A I1= 100*I_B_max;// in A V_out= (V_CC-1);// in volt V_in= V_out/29; R1= V_in/I1;// in ohm R1=R1*10^-3;//in k ohm // 5.6 k ohm resistor may be used for R1, being standard value resistor R1=5.6;// in k ohm (standard value) A=29; R_f= A*R1; // 180 k ohm resistor may be used to provide A > 29 R_f=180;// in k ohm (standard value) R_comp= R_f; R=R1;// in k ohm R=R*10^3;// in ohm C=1/(2*%pi*f*R*sqrt(6));// in F C=C*10^6;// in micro F disp(R_comp,"Value of R_comp and R_f in kohm"); disp(R*10^-3,"Value of R and R1 in kohm"); disp(C,"Used capacitor in micro F")
aa9a8acb8c641622b56196b62c9a65c8b6285a66
449d555969bfd7befe906877abab098c6e63a0e8
/3772/CH10/EX10.7/Ex10_7.sce
7c909293b815c746b63f9c3d75e67e03a7ef051e
[]
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,432
sce
Ex10_7.sce
// Problem no 10.7,Page No.261 clc; clear; close; //Calculations theta=atan(1*2**-1)*(180*%pi**-1) //Radian //Taking moment about A R_EH=10*8*4**-1 //Horizontal component of reaction at A R_AH=20 //KN //Applying the summation of horizontal forces we get F_AB=20*cos(theta*%pi*180**-1)**-1 //Applying the summation of vertical forces we get R_AV=10*5**0.5*sin(theta*%pi*180**-1) //Vertical Reaction at E R_EV=0 //Joint C //Applying the summation of vertical forces we get F_DC=10*sin(theta*%pi*180**-1)**-1 //Applying the summation of horizontal forces we get F_CB=F_DC*cos(theta*%pi*180**-1) //Joint D //Applying the summation of vertical forces we get F_DB=F_DC*sin(theta*%pi*180**-1) //Applying the summation of horizontal forces we get F_DE=F_DC*cos(theta*%pi*180**-1) //Joint E //Applying the summation of vertical forces we get F_EB=R_EV*sin(theta*%pi*180**-1) //Result printf("Forces in Each members are as follows:F_AB %.2f",F_AB);printf(" KN(Tensile)") printf("\n :F_DC %.2f",F_DC);printf(" KN(compression)") printf("\n :F_CB %.2f",F_CB);printf(" KN(Tensile)") printf("\n :F_DB %.2f",F_DB);printf(" KN(Tensile)") printf("\n :F_DE %.2f",F_DE);printf(" KN(compression)") printf("\n :F_EB %.2f",F_EB);printf(" KN")
dcca94c9ac60d734209e287aecad053813d6e568
449d555969bfd7befe906877abab098c6e63a0e8
/291/CH3/EX3.5a/eg3_5a.sce
e3970876015a604507183479ca1e6f3118ff26d9
[]
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
349
sce
eg3_5a.sce
white_balls= 6; black_balls = 5; total = white_balls + black_balls; probability_whiteandblack = white_balls*black_balls/(total*(total-1)); probability_blackandwhite = white_balls*black_balls/(total*(total-1)); reqd_probability = probability_whiteandblack + probability_blackandwhite; disp(reqd_probability, "Thus, the required probability is")
24e232e13d7dcd3113068f233944305aaf7de2cc
449d555969bfd7befe906877abab098c6e63a0e8
/1409/CH2/EX2.22/2_22.sce
8c823ecbf5fa6cc79ba1f75c592ca30031972d3b
[]
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
515
sce
2_22.sce
clc; //Page no:2-31 //Example-2.22 //There are two antennas, therefore power delivered by each antenna is Pt=I^2*R //Pt'=I^2'*R and Pt'=Pt/2 //I^2*R/2=I^2'*R //I^2'=I^2/2=2 //I'=sqrt(2)A //Let I' is denoted by I1 //Total current required for two antennas is given as I1=sqrt(2); Itotal=I1*2; Itot=2; u=0.6; //Itot=Ic*sqrt(1+(u^2/2)) Ic=Itot/sqrt(1+(u^2/2)); disp(Ic,'Ic='); //Keeping Ic constant we calculate modulation index to get Itotal=2*sqrt(2) u1=sqrt([(Itotal/Ic)^2-1]*2); disp(u1,'u=');
73bf59fc35ccacc514aa19c6b80833010fcea792
449d555969bfd7befe906877abab098c6e63a0e8
/1286/CH8/EX8.24/8_24.sce
0f90acb9831956f315532cabd116785968c29721
[]
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
8_24.sce
clc //initialisation of variables T2=300///k T1=900//k T3=600//k Q2=15000//k.cal Q1=12000//k.cal //CALCULATIONS na=1-(T2/T1) nb=1-(T2/T3) w1=Q1*na w2=Q2*nb //results printf(' \n w1= % 1f kcal',w1) printf(' \n w2= % 1f kcal',w2)
275e8386625e62a875e5009335be3115198491a0
449d555969bfd7befe906877abab098c6e63a0e8
/964/CH4/EX4.5/4_5.sce
dc308e5a70e2b0be519c0cfcd8cb924c9c5366da
[]
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
180
sce
4_5.sce
clc; clear; function y=f(x) y=x^3 endfunction x=2.5; delta=0.01; deltafx=abs(derivative(f,x))*delta; fx=f(x); disp(fx+deltafx,"and",fx-deltafx,"true value is between")
5c6a97a2030fc00dca7b24193377d4433679eae2
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH10/EX10.6/Ex10_6.sce
ab0ac44e535715477125cda034d69a4a73488ceb
[]
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
575
sce
Ex10_6.sce
//Initilization of variables theta=75 //degrees alpha=(150*%pi)/180 //rad r=1 theta1=30 //degrees lhor=14 //in //calculations a=((2*r)/alpha)*sind(theta) //in y=-a*sind(90-theta) //in //Length of arc l=r*alpha //in //Slope length calculations DF=7 //in AB=DF //in BC=1 //in BF=BC*cosd(theta1) //in FC=BC*sind(theta1) //in DC=DF+FC //in EC=DC/cosd(theta1) //in //Centroid of EC is at G yslope=0.5*EC*sind(theta1)+BF //in //Y of composite figure Y=((2*l*y)+14*-1+(2*EC*yslope))/(2*l+lhor+2*EC) //in //Result clc printf('The centroid is at Y=%f in',Y)
68335b47578a08345405646baba6d2f373ff2731
449d555969bfd7befe906877abab098c6e63a0e8
/2276/CH11/EX11.9/chapter11_ex9.sce
7cc4d17f68976b761bf33638259554d2d6ceaaa0
[]
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
666
sce
chapter11_ex9.sce
clc clear //input ib=-10;//base current in microamperes rl=6;//load resistance in kilo ohms v=30;//supply voltage in volts //calculations //when vce=0V ic=v/rl;//collector current in milliamperes //whenic=0mA vce=v;//collector emitter voltage in volts //line AB where A(Vce=0V,Ic=5mA) and B(Vce=30V,Ic=0mA) cuts characteristic curve at point P //from co-ordinates of P Vce=16;//collector emitter voltage in volts Ic=2.4;//collector current in milliamperes ie=Ic+(-ib/1000);//emitter current in amperes //output mprintf('the parameters of the operating point under the conditions specified are Vce=%3.0fV,Ic=%3.1fmA and Ie=%3.2fmA',Vce,Ic,ie)
cf3ae4b7645f8ce3d712825dca798315597d5510
449d555969bfd7befe906877abab098c6e63a0e8
/680/CH15/EX15.01/15_01.sce
dc840394d806d5d67ab91ef641886191ad30cd20
[]
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
284
sce
15_01.sce
//Problem 15.01: //initializing the variables: FECI93 = 391.2 FECI95 = 425.4 FECI99 = 434.1 c93 = 245000; // in $ //calculation: c95 = c93*FECI95/FECI93 c99 = c93*FECI99/FECI93 printf("\n\nResult\n\n") printf("\n Cost(1995) is %.0f $ and Cost(1999) is %.0f $",c95,c99)
6219c7abef3ca75d041f6d9ce3cb104e823db96a
449d555969bfd7befe906877abab098c6e63a0e8
/2510/CH11/EX11.11/Ex11_11.sce
ded3aa878b676a61c038d70ff728d4a054d2e3b1
[]
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
507
sce
Ex11_11.sce
//Variable declaration: //Froma example 11.10: Q = 880.0 //Heat loss due to radiation (Btu/h) A = 10.0 //Area of pipe (ft^2) TH = 140.0 //Absolute outside temperature of pipe (°F) TC = 60.0 //Absolute temperature of surrounding atmosphere (°F) //Calculation: hr = Q/(A*(TH-TC)) //Radiation heat transfer coefficient (Btu/h.ft^2.°F) //Result: printf("The radiation heat transfer coefficient is : %.1f Btu/h.ft^2.°F.",hr)
ae15061705a47a070e7f4dafa4f45fde436ab502
449d555969bfd7befe906877abab098c6e63a0e8
/869/CH6/EX6.7/6_7.sce
f35e3808731bb51ea6d05542dc8cb9ba5a4cdeac
[]
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
137
sce
6_7.sce
clc //initialisation of variables d= 24 //in mu= 0.05 W= 2000 //lb //CALCULATIONS F= W*mu*2/d //RESULTS printf ('F= %.2f lb',F)
31bb3d03ead0be551d72db10af6fa5f0ae6c225c
449d555969bfd7befe906877abab098c6e63a0e8
/1382/CH2/EX2.49/EX_2_49.SCE
44f55bde175e89c7b2c724e4a68f729bcdd3b552
[]
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
628
sce
EX_2_49.SCE
// Example 2.49:Ai,Ri,Av,Avs,Ais clc; clear; close; Rl=1000;//Load resistance in ohms Rs=1200;// Internal Resistance //H Paramters are Hib=22;//in ohms Hrb=3*10^-4; Hfb=-0.98; Hob=0.5*10^-6;// in ampere per volt Ai= -Hfb/(1+Hob*Rl);// Current gain Ri= Hib+(Hrb*Ai*Rl);// Input resistance in ohms Av=(Ai*(Rl/Ri));// Voltage Gain dh=(Hib*Hob)-(Hrb*Hfb); Avs=(Av*Ri)/(Ri+Rs);// Overall Voltage gain Ais=(Ai*Rs)/(Ri+Rs);// Overall Current gain disp(Ai,"Current gain is") disp(Ri,"Input resistance in ohms is") disp(Av,"Voltage gain is") disp(Ais,"Overall Current gain is") disp(Avs,"Overall Voltage gain is")
23267cd8dfe2562bad5140228ba4f88107024e0c
449d555969bfd7befe906877abab098c6e63a0e8
/26/CH1/EX1.2.13/1_2_13.sce
bf3f435605e700b6b3ed86628cea6260a8f9ab08
[]
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
397
sce
1_2_13.sce
disp('the augmented matrix is') a=[1 -3 0 -1 0 -2;0 1 0 0 -4 1;0 0 0 1 9 4;0 0 0 0 0 0] disp(a) disp('R1=R1+R3') a(1,:)=a(1,:)+a(3,:) disp(a) disp('R1=R1+3*R2') a(1,:)=a(1,:)+3*a(2,:) disp(a) disp('corresponding equations are:') disp('x1-3*x5=5, x2-4*x5=1, x4+9*x5=4, and 0=0') disp('free variables:x3, x5') disp('general solution is:') disp('x1=5+3*x5, x2=1+4*x5, x3, x4=4-9*x5, x5')
9d7bca5935db81db3733620928f3ca508a495d4e
449d555969bfd7befe906877abab098c6e63a0e8
/1118/CH7/EX7.2/eg7_2.sce
e0e0f78617b27b2dcc3ad64461b5f3f776664896
[]
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
309
sce
eg7_2.sce
clear; //clc(); r=10.5;..//radius of the conductor d_ab=3; d_bc=5; d_ca=3.6; Deq=(d_ab*d_bc*d_ca)^(1/3); r1=0.7788*r/1000; a=log([Deq/r1]); l=2*10^(-4)*a; printf("\n the inductance is: %.5f H/km\n ",l); xl=2*(%pi)*50*l/10000; printf("\n the inductive reactance is: %f Ohm/km\n ",xl);
dfdec95f20fb9dd3ea38bd22158667d094eecf61
449d555969bfd7befe906877abab098c6e63a0e8
/1826/CH7/EX7.9/ex7_9.sce
c9c07584ab58f91c7c336dd491a1613fec750ec9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
238
sce
ex7_9.sce
// Example 7.9, page no-165 clear clc d=8900 //kg/m^3 cu=63.5 t=10^-14 //s avg=6.023*10^23 n=avg*d*1000/cu m=9.1*10^-31//kg e=1.6*10^-19 sig=(n*t*e^2)/m printf("The electrical conductivity is %.3f *10^7 /Ohm-m",sig*10^-7)
11a354a2a35d60ccd2791df69fbe76eb5e733793
449d555969bfd7befe906877abab098c6e63a0e8
/2498/CH2/EX2.21/ex2_21.sce
577441ef292af096b959976adbf5ae257db2682a
[]
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
556
sce
ex2_21.sce
// Exa 2.21 clc; clear; close; format('v',6) // Given data R_F = 0.01; Vdc = 30;// in V R_L = 1;// in k ohm R_L = R_L * 10^3;// in ohm Idc = Vdc/R_L;// in A Idc = Idc * 10^3;// in mA // Vdc = Vm-( (5000*Idc)/C ); Gamma = 0.01;// ripple factor //Gamma = 2900/(C*R_L); C = 2900/(Gamma*R_L);// in F Vm = Vdc + ((5000*Idc*10^-3)/C);// in V // The input voltage required V2 = (2*Vm)/sqrt(2);// in V disp(V2,"The input voltage required in V is"); //Note: The value of Vm in the book is not accurate, So the answer in the book is wrong.
13d042eb78ab9d1e27f1e30dc914c06da310536a
f78a758dc17a311b355e12366d1315f7a9c2b763
/Mercedes-Benz/MBN LV 148 2013/E48-03 Transient process in the lower operating range with limited function 0.tst
30816bab9b93604a1edbed059c47d99fa5efdf95
[]
no_license
CZPFOX/Standards
9dbf036f7e3e5767c23872c884ae7da83e66f81c
af34157e6e447d1a2b39136b9f3734feb663d9bb
refs/heads/master
2020-06-18T12:58:06.033918
2019-07-11T02:55:42
2019-07-11T02:55:42
196,309,147
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,746
tst
E48-03 Transient process in the lower operating range with limited function 0.tst
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <AutoTestC version="2.0.0"> <Title>Transient process in the lower range with limitations</Title> <Organization>Mercedes-Benz</Organization> <Standard>MBN LV 148</Standard> <Item>E48-03 Transient process in the lower operating range with limited function</Item> <system> <PowerSystem>2</PowerSystem> <voltage>36</voltage> <count>3</count> </system> <wave id="0"> <type>0</type> <dspin id="0">36</dspin> <dspin id="1">0</dspin> <dspin id="2">0</dspin> <dspin id="3">0</dspin> <dspin id="4">0</dspin> <spin id="0">0</spin> <spin id="1">0</spin> <comboindex id="0">0</comboindex> <comboindex id="1">0</comboindex> <comboindex id="2">0</comboindex> <time>60</time> <timeUnit>0</timeUnit> </wave> <wave id="1"> <type>1</type> <dspin id="0">36</dspin> <dspin id="1">24</dspin> <dspin id="2">0</dspin> <dspin id="3">0</dspin> <dspin id="4">0</dspin> <spin id="0">0</spin> <spin id="1">0</spin> <comboindex id="0">0</comboindex> <comboindex id="1">0</comboindex> <comboindex id="2">0</comboindex> <time>1.8</time> <timeUnit>1</timeUnit> </wave> <wave id="2"> <type>0</type> <dspin id="0">24</dspin> <dspin id="1">0</dspin> <dspin id="2">0</dspin> <dspin id="3">0</dspin> <dspin id="4">0</dspin> <spin id="0">0</spin> <spin id="1">0</spin> <comboindex id="0">0</comboindex> <comboindex id="1">0</comboindex> <comboindex id="2">0</comboindex> <time>500</time> <timeUnit>1</timeUnit> </wave> <wave id="3"> <type>1</type> <dspin id="0">24</dspin> <dspin id="1">36</dspin> <dspin id="2">0</dspin> <dspin id="3">0</dspin> <dspin id="4">0</dspin> <spin id="0">0</spin> <spin id="1">0</spin> <comboindex id="0">0</comboindex> <comboindex id="1">0</comboindex> <comboindex id="2">0</comboindex> <time>1.8</time> <timeUnit>1</timeUnit> </wave> <wave id="4"> <type>0</type> <dspin id="0">36</dspin> <dspin id="1">0</dspin> <dspin id="2">0</dspin> <dspin id="3">0</dspin> <dspin id="4">0</dspin> <spin id="0">0</spin> <spin id="1">0</spin> <comboindex id="0">0</comboindex> <comboindex id="1">0</comboindex> <comboindex id="2">0</comboindex> <time>500</time> <timeUnit>1</timeUnit> </wave> </AutoTestC>
4af94b469a3b28a59638df015f8155ce923a29a2
449d555969bfd7befe906877abab098c6e63a0e8
/1092/CH2/EX2.5/Example2_5.sce
fe7ee31327e3b97182f84cedf04b484fd8f7c7cb
[]
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
847
sce
Example2_5.sce
// Electric Machinery and Transformers // Irving L kosow // Prentice Hall of India // 2nd editiom // Chapter 2: Dynamo Construction and Windings // Example 2-5 clear; clc; close; // Clear the work space and console. // Given data P = 12; // No. of poles theta = 360; // No. of mechanical degrees of rotation alpha_b = 180; // No. of electrical degrees for finding case b in the question // Calculations alpha = ( P * theta ) / 2; // No. of electrical degrees in one revolution n = alpha / 360; // No. of ac cycles theta_b = ( 2 * alpha_b ) / P; // No. of mechanical degrees of rotation // for finding case b in the question // Display the results disp("Example 2-5 Solution : ") printf("\n a: alpha = %d degrees", alpha); printf("\n n = %d cycles ", n); printf("\n b: theta = %d mechanical degrees ", theta_b );
4f89b3fd9a0d24e7bd3f04cea1262cf2a7ea501f
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/blog/bow/bow.5_13.tst
0934e2d234d0efcdeab28054733677327cf4fb41
[]
no_license
mandar15/NLP_Project
3142cda82d49ba0ea30b580c46bdd0e0348fe3ec
1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2
refs/heads/master
2020-05-20T13:36:05.842840
2013-07-31T06:53:59
2013-07-31T06:53:59
6,534,406
0
1
null
null
null
null
UTF-8
Scilab
false
false
6,032
tst
bow.5_13.tst
5 56:1.0 119:0.16666666666666666 251:0.25 266:1.0 308:0.2 1166:1.0 1388:0.3333333333333333 5 1:0.5454545454545454 3:0.01818181818181818 7:2.0 25:1.0 30:1.0 44:0.125 57:0.09090909090909091 134:0.5 283:1.0 430:1.0 436:1.0 508:1.0 561:1.0 598:1.0 931:1.0 1029:1.0 1105:1.0 1413:1.0 1438:1.0 5 1:0.18181818181818182 3:0.01818181818181818 14:0.25 25:0.5 56:1.0 57:0.09090909090909091 127:1.0 184:1.0 232:1.0 341:0.5 646:1.0 709:1.0 844:1.0 1048:0.3333333333333333 5 1:0.36363636363636365 3:0.01818181818181818 16:0.5 32:0.125 51:0.16666666666666666 56:1.0 57:0.09090909090909091 134:0.5 175:0.3333333333333333 276:1.0 1285:2.0 5 1:0.36363636363636365 3:0.03636363636363636 32:0.125 50:0.2 57:0.2727272727272727 106:2.0 107:1.0 113:1.0 127:1.0 175:0.3333333333333333 224:1.0 406:1.0 439:0.5 442:1.0 816:1.0 825:1.0 924:0.5 1021:1.0 1022:1.0 1194:1.0 1198:1.0 1239:1.0 1454:1.0 5 1:0.36363636363636365 3:0.01818181818181818 16:0.5 32:0.125 33:1.0 107:1.0 304:0.3333333333333333 311:1.0 408:0.5 436:2.0 851:0.3333333333333333 863:1.0 960:1.0 1413:1.0 5 3:0.01818181818181818 14:0.25 25:0.5 32:0.125 49:1.0 64:0.06666666666666667 406:1.0 521:1.0 1189:1.0 5 3:0.01818181818181818 56:1.0 73:0.2 175:0.3333333333333333 408:0.5 857:0.5 5 1:0.9090909090909091 3:0.01818181818181818 7:1.0 14:0.25 16:1.0 25:0.5 57:0.09090909090909091 106:1.0 107:1.0 110:1.0 144:1.0 406:1.0 652:1.0 1198:1.0 1367:1.0 5 1:0.09090909090909091 3:0.03636363636363636 6:1.0 14:0.25 16:0.5 32:0.125 50:0.2 57:0.09090909090909091 106:1.0 112:1.0 175:0.3333333333333333 304:0.3333333333333333 436:1.0 610:1.0 809:1.0 917:0.5 1378:1.0 5 3:0.01818181818181818 5:1.0 14:0.25 73:0.2 161:0.3333333333333333 246:1.0 261:0.16666666666666666 406:1.0 765:1.0 978:1.0 5 1:0.09090909090909091 14:0.25 57:0.09090909090909091 175:0.6666666666666666 385:1.0 595:1.0 835:1.0 5 1:0.2727272727272727 14:0.25 16:1.0 32:0.125 50:0.2 55:1.0 57:0.45454545454545453 64:0.06666666666666667 73:0.2 82:0.5 83:1.0 92:1.0 134:0.5 142:1.0 162:1.0 175:0.3333333333333333 261:0.16666666666666666 286:0.5 299:0.25 302:0.5 364:1.0 413:1.0 442:1.0 468:1.0 543:2.0 681:1.0 917:0.5 965:1.0 1166:1.0 5 57:0.09090909090909091 64:0.06666666666666667 142:1.0 162:0.5 175:0.3333333333333333 252:1.0 5 3:0.01818181818181818 14:0.25 96:0.25 141:1.0 173:0.3333333333333333 175:0.3333333333333333 485:1.0 810:1.0 816:1.0 1398:1.0 1616:1.0 5 3:0.03636363636363636 32:0.125 43:0.3333333333333333 56:3.0 57:0.09090909090909091 137:1.0 139:1.0 161:0.3333333333333333 162:0.5 165:1.0 175:0.3333333333333333 233:1.0 261:0.16666666666666666 333:1.0 402:1.0 440:1.0 809:1.0 828:1.0 5 1:0.09090909090909091 5:1.0 53:1.0 55:1.0 1198:1.0 1667:1.0 5 1:0.09090909090909091 3:0.01818181818181818 14:0.25 25:0.5 71:1.0 141:1.0 175:0.3333333333333333 261:0.16666666666666666 298:1.0 501:1.0 567:1.0 5 1:0.18181818181818182 3:0.01818181818181818 191:1.0 697:0.16666666666666666 869:1.0 1162:1.0 1582:1.0 5 1:0.18181818181818182 3:0.01818181818181818 5:1.0 14:0.25 16:0.5 44:0.125 53:1.0 55:1.0 64:0.13333333333333333 70:1.0 96:0.25 217:1.0 261:0.3333333333333333 282:0.5 295:1.0 308:0.2 377:1.0 485:1.0 593:0.5 632:1.0 869:1.0 1475:1.0 5 1:0.18181818181818182 3:0.07272727272727272 44:0.125 64:0.06666666666666667 73:0.4 114:1.0 118:1.0 162:0.5 173:1.3333333333333333 264:1.0 295:1.0 307:0.5 416:0.16666666666666666 485:2.0 924:0.5 5 3:0.01818181818181818 32:0.125 295:1.0 5 1:0.18181818181818182 3:0.03636363636363636 25:0.5 50:0.8 57:0.18181818181818182 62:1.0 73:0.2 96:0.5 178:1.0 224:0.5 253:0.3333333333333333 290:1.0 302:0.5 334:1.0 439:0.5 895:3.0 1198:1.0 5 3:0.01818181818181818 5:1.0 14:0.25 16:0.5 43:0.3333333333333333 96:0.25 109:1.0 114:1.0 175:0.3333333333333333 246:1.0 253:0.1111111111111111 280:1.0 381:1.0 435:0.5 869:1.0 1083:1.0 5 162:0.5 5 1:0.18181818181818182 3:0.01818181818181818 16:0.5 43:0.3333333333333333 44:0.125 49:1.0 50:0.4 56:1.0 57:0.8181818181818182 83:1.0 96:0.5 142:1.0 173:0.3333333333333333 175:0.3333333333333333 246:1.0 301:1.0 357:1.0 536:1.0 628:1.0 650:1.0 870:1.0 933:1.0 1189:1.0 5 3:0.01818181818181818 14:0.25 50:0.2 68:0.3333333333333333 73:0.2 88:0.5 92:1.0 119:0.16666666666666666 246:1.0 548:1.0 5 1:0.18181818181818182 3:0.01818181818181818 16:0.5 51:0.16666666666666666 106:1.0 162:0.5 246:1.0 264:0.5 276:1.0 436:1.0 602:1.0 5 3:0.01818181818181818 14:0.25 15:1.0 32:0.125 161:0.3333333333333333 162:0.5 246:1.0 308:0.2 5 1:0.09090909090909091 3:0.01818181818181818 16:0.5 57:0.36363636363636365 106:1.0 246:1.0 308:0.2 411:1.0 5 3:0.05454545454545454 56:1.0 57:0.09090909090909091 246:1.0 253:0.1111111111111111 259:1.0 302:0.5 308:0.2 593:0.5 602:1.0 5 1:0.09090909090909091 3:0.03636363636363636 16:1.0 43:0.3333333333333333 44:0.125 51:0.16666666666666666 56:1.0 57:0.2727272727272727 73:0.2 97:1.0 165:1.0 245:1.0 252:1.0 253:0.1111111111111111 308:0.4 333:1.0 410:2.0 450:1.0 463:1.0 777:1.0 1011:1.0 1077:1.0 1626:1.0 5 1:0.09090909090909091 3:0.01818181818181818 142:2.0 246:1.0 1582:1.0 5 1:0.18181818181818182 3:0.01818181818181818 55:1.0 57:0.18181818181818182 124:1.0 161:0.3333333333333333 162:0.5 265:1.0 325:1.0 381:1.0 419:1.0 442:1.0 567:1.0 5 1:0.09090909090909091 3:0.03636363636363636 5:1.0 57:0.09090909090909091 246:1.0 302:0.5 308:0.2 321:1.0 350:1.0 501:1.0 5 3:0.01818181818181818 14:0.25 16:0.5 44:0.125 51:0.16666666666666666 57:0.09090909090909091 73:0.2 96:0.25 162:0.5 233:1.0 281:0.5 298:1.0 308:0.2 331:1.0 450:1.0 914:1.0 1406:1.0 5 16:0.5 25:0.5 44:0.125 50:0.2 51:0.16666666666666666 57:0.09090909090909091 73:0.2 162:0.5 175:0.3333333333333333 253:0.1111111111111111 276:1.0 298:1.0 308:0.2 5 3:0.01818181818181818 51:0.16666666666666666 56:1.0 57:0.18181818181818182 71:1.0 90:1.0 141:1.0 162:0.5 175:0.6666666666666666 245:1.0 282:0.5 298:1.0 308:0.2 638:1.0 5 1:0.09090909090909091 14:0.5 44:0.125 64:0.13333333333333333 96:0.25 162:0.5 175:0.3333333333333333 261:0.16666666666666666 264:0.5 298:2.0 406:1.0 479:0.5 524:1.0 638:1.0 5 1:0.18181818181818182 57:0.09090909090909091 175:0.3333333333333333 589:1.0 859:1.0 1158:1.0 1450:1.0
a31735a3e7cf371aee6e928e680610d261b46d2f
449d555969bfd7befe906877abab098c6e63a0e8
/1898/CH3/EX3.6/Ex3_6.sce
92867d3df3371e7467ceb1414a88d624ee40c35b
[]
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
856
sce
Ex3_6.sce
clear all; clc; disp("Scilab Code Ex 3.6 : ") //Given: d_o = 0.025; //m l_o =0.25; //m F =165; //kN delta = 1.2; //mm G_al = 26; //GPa sigma_y = 440; //MPa //Calculations: //Modulus of Elasticity: A = (%pi/4)*(d_o^2); avg_normal_stress = (F*10^3)/A; avg_normal_strain = delta/l_o; E_al = avg_normal_stress/ avg_normal_strain; E_al = E_al/10^6; //Contraction of Diameter: nu = (E_al/(2*G_al))-1; strain_lat = nu*(avg_normal_strain) ; d_contraction = strain_lat* d_o ; //Display: printf("\n\nThe Modulus of Elasticity = %10.1f GPa",E_al); printf("\nThe contraction in diameter due to the force = %10.4f mm",d_contraction); //------------------------------------------------------------------------------END----------------------------------------------------------------------------------------
a7ce39f4a7fcb0c5b69889bb0ebdc854e7eaf4b4
449d555969bfd7befe906877abab098c6e63a0e8
/3860/CH1/EX1.15/EX1_15.sce
247b65b589cc75f713182a8d0c1cf3a43546bfd3
[]
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,728
sce
EX1_15.sce
//Example 1.15: add -5 to 7, -5 and +5 , -5 and +3 clc//clears the console clear //clears all existing variables //**************************************************************************** x=bitcmp(5,4) //finds complement of 5 y=1; u=x+y //1 is added to the complement v=7; w=u+v a=dec2bin(w) //binary conversion of the decimal number disp(' binary form of the number obtained by adding 7 to -5 ') disp(a) //result is displayed disp(' the msb is discarded,so four bit representation in binary form =') a=dec2bin(w-(2^4),4) disp(a) //final result is displayed. disp('*****************************************************************') //**************************************************************************** x=bitcmp(5,4) //finds complement of 5 y=1; u=x+y //1 is added to the complement v=5; w=u+v a=dec2bin(w) //binary conversion of the decimal number disp(' binary form of the number obtained by adding +5 to -5 ') disp(a) //result is displayed disp(' the msb is discarded,so four bit representation in binary form =') a=dec2bin(w-(2^4),4) disp(a) //final result is displayed. disp('*****************************************************************') //**************************************************************************** x=bitcmp(5,4) //finds complement of 5 y=1; u=x+y //1 is added to the complement v=3; w=u+v a=dec2bin(w,5) //binary conversion of the decimal number disp(' binary form of the number obtained by adding +3 to -5 ') disp(a) //result is displayed disp(' the msb is discarded,so four bit representation in binary form =') a=dec2bin(w,4) disp(a) //final result is displayed. disp('*****************************************************************')
05e1767ca5e0a2a1f54bb5e4c1af8069068c4279
449d555969bfd7befe906877abab098c6e63a0e8
/3754/CH20/EX20.17/20_17.sce
f32161a16fd7d0c711b6ba32d276a1f226a99faf
[]
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,618
sce
20_17.sce
clear// //Variables IZmin = 0 //Minimun Zener current (in Ampere) ILmax = 2.0 //Maximum load current (in Ampere) VL = 12.0 //Voltage across load (in volts) VSmin = 15.0 //Minimum Input voltage (in volts) VSmax = 20.0 //Maximum Input Voltage (in volts) beta = 100 //common emitter current gain VBE = 0.5 //Voltage between base-emitter junction (in volts) VZ = 12.5 //Voltage across zener diode (in volts) IZmin = 1.0 * 10**-3 //Current through Zener diode ICmax = ILmax //Maximum Collector current (in Ampere) //Calculation IBmax = ICmax / beta //Maximum collector current IR = IBmax + IZmin //Current through resistance R (in Ampere) Rmax = (VSmin - VZ)/ IR //Maximum value of resistance R (in ohm) IZmax = (VSmax - VZ)/ Rmax //Maximum value of Zener current (in Ampere) PZmax = VZ * IZmax //Maximum power dissipation in Zener Diode (in watt) PRmax = (VSmax - VZ) * IZmax //Maximum power dissipated in Resistance R (in watt) VCEmax = VSmax - VL //Maximum value of collector-to-emitter voltage (in volts) PDmax = VCEmax * ILmax //Maximum power dissipation of the transistor (in watt) //Result printf("\n Maximum value of R is %0.0f ohm.\nMaximum power dissipation of the zener diode is %0.2f W.\nMaximum power dissipation of resistance R is %0.2f W.\nMaximum power dissipation of the transistor is %0.3f W.",Rmax,PZmax,PRmax,PDmax)
b801d9b58c176dd1835677e4ca1443deda886515
449d555969bfd7befe906877abab098c6e63a0e8
/1202/CH19/EX19.3/19_3.sce
13916c5941c8608af132be8a534360f513668235
[]
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
831
sce
19_3.sce
clear clc //Example 19.3 disp('Example 19.3') //function for minimization c=-[-24.5 -16 36 24 21 10]'; //Equality Constraints Aeq=[0.80 0.44 -1 0 0 0;0.05 0.1 0 -1 0 0;0.1 0.36 0 0 -1 0;0.05 0.1 0 0 0 -1]; beq=zeros(4,1); //Inequality Constraints A=[0 0 1 0 0 0;0 0 0 1 0 0;0 0 0 0 1 0]; b=[24000 2000 6000]'; //Lower bound on x lb=zeros(6,1); //Initial guess: such that it satisfies Aeq*x0=beq x0=zeros(6,1); x0(1:2)=[5000 3000]';//Initial guess for x1 and x2 x0(3:6)=Aeq(:,3:6)\(beq-Aeq(:,1:2)*x0(1:2));//solution of linear equations //Note that x0 should also satisfy A*x0<b and lb [xopt,fopt]=karmarkar(Aeq,beq,c,x0,[],[],[],[],A,b,lb) disp(xopt,"Optimum value of x=") mprintf("\nMax value of f=$ %f /day\n",-fopt) mprintf('\n Note that the answer in book is not as accurate as the one\n... calculated from scilab')
0accdbb83dae984a85f320db5873dd15a2c41306
b24d354cfcd174c92760535d8b71e22ced005d81
/DSP functions/zpklp2xn/test_4.sce
c5800a114fecc435b6764fef3ba5cc3af08f7268
[]
no_license
shreniknambiar/FOSSEE-Signal-Processing-Toolbox
57ad8e2a71d64f95c4ccfd131e00095cf2b9c6f8
143cf61eff31240870dc0c4f61e32818a4482365
refs/heads/master
2021-01-01T18:25:34.435606
2017-07-25T18:23:47
2017-07-25T18:23:47
98,334,322
0
0
null
2017-07-25T17:48:00
2017-07-25T17:47:59
null
UTF-8
Scilab
false
false
280
sce
test_4.sce
// Test # 4 : Checking the type for Input Argument #3 exec('./zpklp2xn.sci',-1); [z,p,k,n,d]=zpklp2xn(0.1,2,[2 9],[3 0.4],[0.1,0.6]); // !--error 10000 //K must be a scalar //at line 45 of function zpklp2xn called by : //[z,p,k,n,d]=zpklp2xn(0.1,[2 9],[3 0.4],[0.1,0.6])
7ec69296b4e72b57ee26615f456ba2a3affef9b5
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH4/EX4.1/Ex4_1.sce
3314050f3c1f450c14efbb1bbb9e64b73212b418
[]
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
153
sce
Ex4_1.sce
clear //Given m=9*10**9 r=6.4*10**6 //m //Calculation C=r/m //Result printf("\n The capacitance of the earth is %0.0f micro F",C*10**6)
10b31d4bc461208312c4469bde2353a2ad29fccd
0592c9e4cfbb77a0755aff6f0c798d9fe31f6ff4
/scilab/Calibration_Equity/src/PDEDupire/src/sci_vprice.sci
718f0aa0ba011630bc8796211813e6348faff284
[]
no_license
FinancialEngineerLab/premia-13-cpp_FICC
e19caa6a9cadb4ad1361053efc0dfc9418071cf9
e271da627dbfc8c2c1f7e9f700766544f64c72b2
refs/heads/master
2023-03-16T11:11:26.830681
2016-04-19T05:58:16
2016-04-19T05:58:16
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
77
sci
sci_vprice.sci
function [stk,txt,top]=sci_vprice() stk=list('exec(vprice)','0','?','?','?')
554774cb5791975a682e87c389152ca101215881
bae725b750433ba5d58470784eeb87687023da7e
/macros/surrogates.sci
5038279840b2071a8be79aabad37835acd060425
[ "MIT" ]
permissive
aamadou/IsItChaos
eac61da272b4fb22f83bdceaceb5774385f481e5
def74ddd5710898f876a9a7d39916e5cc1a8b6b5
refs/heads/master
2016-08-04T21:00:17.832904
2014-03-24T13:18:39
2014-03-24T13:18:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,038
sci
surrogates.sci
function [x]=surrogates(orbit,NbrIti,ExactSpect,Grain) // Initialisation Commandline=''; NbrComp=size(orbit,2); if isdef('NbrIti','local')... then Commandline=Commandline+' -i'+string(NbrIti), end; if isdef('NbSurr','local')... then Commandline=Commandline+' -n'+string(NbSurr), end; if isdef('CrossDirect','local')... then Commandline=Commandline+' -C'+string(CrossDirect), end; if isdef('ExactSpect','local')... then Commandline=Commandline+' -s', end; if isdef('Grain','local')... then Commandline=Commandline+' -I'+string(Grain), end; // Utilisation de Lyap_K from TiSeAn if isdef('orbit','local')... then mdelete('tmp') write('tmp',string(orbit)), Commandline=' tmp'+Commandline+' -c'+string(NbrComp)+' -otmpout.dat', end; mdelete('tmpout.dat') Commandline='surrogates'+Commandline, // Reading the output x=host(Commandline); if x~=0... then disp('Erreur!!! Fichier ou Tisean manquant'); return; end; x=read('tmpout.dat',-1,1,'(a)'); x=evstr(x); endfunction
0c4653eefee8eeb4d992bd0766d585ea93e8ffe8
449d555969bfd7befe906877abab098c6e63a0e8
/2510/CH9/EX9.11/Ex9_11.sce
b37c3251dd879a53156cb1680d5b82895091271c
[]
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
932
sce
Ex9_11.sce
//Variable declaration: P = 1.0132 * 10**5 //Air pressure (Pa) T = 300.0+273.0 //Air temperature (K) V = 5.0 //Air flow velocity (m/s) D = 2.54/100.0 //Diameter of tube (m) R = 287.0 //Gas constant (m^2/s^2.K) //From Appendix: Pr = 0.713 //Prandtl number of nitrogen mu = 1.784*10**(-5) //Dynamic viscosity of nitrogen (kg/m.s) k = 0.0262 //Thermal conductivity of nitrogen (W/m.K) Cp = 1.041 //Heat capacity of nitrogen (kJ/kg.K) //Calculation: p = P/(R*T) //Density of air Re = D*V*p/mu //Reynolds number //From table 9.5: Nu = 0.023*(Re**0.8)*(Pr**0.3) //Nusselt number h = (k/D)*Nu //Heat transfer coefficient (W/m^2.K) //Result: printf("The required Heat transfer coefficient is : %.2f W/m^2.K.",h)
9ed4ef7cf051c4cb5b87ba30bba4ddf757bdba76
449d555969bfd7befe906877abab098c6e63a0e8
/716/CH3/EX3.8.c/Solved_Ex3_8c.sce
15c1a2ae4793ce44889b9e98a7c3f4e89c61d46f
[]
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
365
sce
Solved_Ex3_8c.sce
//X=L(x(t))->find initial value,x(0) and final value,x(inf) using initial and final value theorem clc; clear; s=poly(0,"s"); X=(7*s+6)/s/(3*s+5); xinf=horner(s*X,0); disp(xinf,'x(inf) by final Value theorem:'); x0=(7+6/%inf^2)/(3+5/%inf);//directly putting and dividing Numerator and Denominator by infinity powers disp(x0,'x(0) by initial Value theorem:');
767d1311a5fb325102742e9de5e4484a5953708b
bce0c755bfdc527c8cc0737e8e1e59467267cff9
/macros/multiDenoiseColor.sci
34b04ba55ad9b86a87de47b9b1864b64cbe9cdf6
[]
no_license
shubham0108/FOSSEE-Image-Processing-Toolbox
bacc26e6c7139383a374ea16f6c62565a7ff0603
68cddb2ca8dabddfe47251ac6647011acb849a2c
refs/heads/master
2021-06-16T02:27:39.886532
2020-05-01T09:23:39
2020-05-01T09:23:39
97,078,162
0
0
null
2017-07-13T03:57:21
2017-07-13T03:57:21
null
UTF-8
Scilab
false
false
4,585
sci
multiDenoiseColor.sci
// Copyright (C) 2015 - IIT Bombay - FOSSEE // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // Author: Shubham Lohakare, Ashish Manatosh Barik // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in // function [denoise] = multiDenoiseColor(imgToDenoiseIndex, temporalWindowSize, filterStrength, filterStrengthColor, templateWindowSize, searchWindowSize, n,varargin) // Removes colored noise from an image taking reference images of the same captured in small intervals // // Calling Sequence // out = multiDenoiseColor(imgToDenoiseIndex, temporalWindowSize, filterStrength, filterStrengthColor,templateWindowSize, searchWindowSize, n, srcImg1, srcImg2, srcImg3) // out = multiDenoiseColor(imgToDenoiseIndex, temporalWindowSize, filterStrength,filterStrengthColor, templateWindowSize, searchWindowSize, n, srcImg1, srcImg2, srcImg3,srcImg4) // out = multiDenoiseColor(imgToDenoiseIndex, temporalWindowSize, filterStrength,filterStrengthColor, templateWindowSize, searchWindowSize, n,srcImg1, srcImg2, srcImg3,srcImg4,srcImg5) // // Parameters // imgToDenoiseIndex : Target image to denoise index in srcImgs sequence // temporalWindowSize : Number of surrounding images to use for target image denoising. Should be odd. // filterStrength : Parameter regulating filter strength. Bigger h value perfectly removes noise but also removes image details, smaller h value preserves details but also preserves some noise. // filterStrengthColor : same as filterStrength but for color components of noise. // templateWindowSize : Size in pixels of the template patch that is used to compute weights. Should be odd. // searchWindowSize : Size in pixels of the window that is used to compute weighted average for given pixel. Should be odd. // n : number of images passed. // srcImgs : The input images which are passed. They are variable arguments. // // Description // Modification of denoiseColor function for images sequence where consequtive images have been captured in small period of time. It removes colored noise.The output is a denoised image // // Examples // a= imread("img1.jpg"); // b= imread("img2.jpg"); // c= imread("img3.jpg"); // imgToDenoiseIndex=1; // temporalWindowSize =1; // templateWindowSize =7; // searchWindowSize =21; // filterStrength = 10; // filterStrengthColor = 10; // n = 3; // k=multiDenoiseColor(imgToDenoiseIndex,temporalWindowSize,filterStrength,filterStrengthColor,templateWindowSize,searchWindowSize,n,a,b,c); // // Examples // a= imread("img1.jpg"); // b= imread("img2.jpg"); // c= imread("img3.jpg"); // d= imread("img4.jpg"); // imgToDenoiseIndex=1; // temporalWindowSize =1; // templateWindowSize =7; // searchWindowSize =21; // filterStrength = 100; //filterStrengthColor=30; // n = 4; // choice = 1; // k=multiDenoiseColor(imgToDenoiseIndex,temporalWindowSize,filterStrength,filterStrengthColor,templateWindowSize,searchWindowSize,n,a,b,c,d); // // Examples // a= imread("pic.jpeg"); // b= imread("pic1.jpeg"); // c= imread("pic2.jpeg"); // d= imread("pic3.jpeg"); // e= imread("pic4.jpeg"); // imgToDenoiseIndex=3; // temporalWindowSize =3; // templateWindowSize =7; // searchWindowSize =21; // filterStrength = 75; //filterStrengthColor = 50; // n = 5; // choice = 2; // k=multiDenoiseColor(imgToDenoiseIndex,temporalWindowSize,filterStrength,filterStrengthColor,templateWindowSize,searchWindowSize,n,a,b,c,d,e); // // Authors // Shubham Lohakare, NITK Surathkal // Ashish Mantosh, NIT Rourkela [lhs, rhs] = argn(0) select rhs case 10 then for i = 1:n varargin(i) = mattolist(varargin(i)) end out = raw_multiDenoiseColor(imgToDenoiseIndex, temporalWindowSize, filterStrength, templateWindowSize, searchWindowSize, n,varargin(1), varargin(2), varargin(3)) case 11 then for i = 1:n varargin(i) = mattolist(varargin(i)) end out = raw_multiDenoiseColor(imgToDenoiseIndex, temporalWindowSize, filterStrength, templateWindowSize, searchWindowSize, n, varargin(1), varargin(2), varargin(3), varargin(4)) case 12 then for i = 1:n varargin(i) = mattolist(varargin(i)) end out = raw_multiDenoiseColor(imgToDenoiseIndex, temporalWindowSize, filterStrength, templateWindowSize, searchWindowSize, n,varargin(1), varargin(2), varargin(3), varargin(4), varargin(5)) end channel = size(out) for i= 1: channel denoise(:,:,i) = (out(i)) end endfunction
720ef8597aa99c2b5d73531d6e65d7db7d3f5b85
1988df91caa448a35bbf274a6d2698fe434571b1
/tst/decide/monad.tst
60ec6d3cd81816c195adf4e64c740b71461b789e
[]
no_license
namin/GETFOL
bd60e9a2d9f0905c50ff5c0cff4b6bf57a2049e2
bf42caf61799578eb82e9f17b3342bc2ee638a22
refs/heads/master
2021-10-25T08:08:20.142137
2021-10-22T16:16:40
2021-10-22T16:16:40
204,234,318
4
1
null
2019-08-25T02:05:54
2019-08-25T02:05:54
null
UTF-8
Scilab
false
false
949
tst
monad.tst
RESET; NAMECONTEXT MONAD; declare indvar x z y; declare indconst a b c; declare funconst g h 2; declare funconst f 3; declare predconst P R Q 1; declare predconst S T V 2; COMMENT | GENERAL THEOREMS | monad forall y. exists x. (P(y) or not P(x)); monad forall y. P(y) imp exists x. P(x); COMMENT | ABOUT WFF-PUSH-NEGATION | monad forall x. exists y. wffif P(trmif P(y) then x else y) then P(trmif P(y) then trmif P(y) then x else trmif P(y) then x else y else y) or TRUE else P(y) or TRUE; monad forall x. exists y. wffif P(x) then P(y) else not P(y); COMMENT | ABOUT PUSHV | monad forall y. exists x. (P(f(a,b,x)) or not P(f(a,b,y))); monad exists z. forall y. exists x. (P(f(z,b,x)) or not P(f(x,b,z))); monad exists z. forall y. exists x. (P(f(z,b,x)) or not P(f(x,b,y))); COMMENT | monad exists z. forall y. exists x. (P(f(z,b,x)) and not P(f(x,b,y))); | COMMENT | This wff is not reducible to a (forall-exists) prenex form |
f913f8445d9c20c3adb3ca7f7083d1284d9d1d68
449d555969bfd7befe906877abab098c6e63a0e8
/48/CH15/EX15.16/eg_15_16.sce
af44279500cb2ba256ee732f42b0cdfb5cfaa056
[]
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
657
sce
eg_15_16.sce
clc; clear; n=4; a=zeros(1,n); for i=1:n for j=1:n pad(i,j)=modulo(i+j-2,4); end end for i=1:n for j=1:n pmu(i,j)=modulo((i-1)*(j-1),4); end end t=0; for i=1:n for j=1:n if(pad(i,j)==1) t=1; break; end end end if(t==0) disp("Modulo 4 ring is not a field"); end for i=0:3 for j=0:3 if(modulo(i*j,4)==1) a(i)=1; end end end res=0; for i=1:max(size(a)) if(a(i)==1) res=res+1; end end if(res==4) disp("Modulo 4 ring is a field"); else disp("Modulo 4 ring is not a field"); end
f211d14f7d739a10a9f3bc059b5b4269353f5ef0
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/macros/m2sci/sci_max.sci
cc23829c4feda702fa31d342a06acaababb5f182
[ "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
851
sci
sci_max.sci
function [stk,txt,top]=sci_max() // Copyright INRIA txt=[] v=stk(top+1-rhs)(1) if stk(top+1-rhs)(5)=='4' then v='bool2s('+v+')';end if rhs==1 then [m,n]=checkdims(stk(top)) x=stk(top)(1) if m==-1&n==-1 then set_infos([ ' mtlb_max('+x+') may be replaced by ' ' max('+x+')'+' if '+x+'is a vector' ' max('+x+',''r'')'+' if '+x+'is a matrix'],1) stk=list('mtlb_max('+x+')','0','?','?','1') elseif m==1|n==1 then stk=list('max('+x+')','0','1','1','1') else stk=list('max('+x+',''r'')','0','1',stk(top)(4),'1') end elseif rhs==2 then stk=list('max('+v+','+stk(top)(1)+')','0','?','?','1') else if stk(top)(1)=='1' then stk=list('max('+v+',''r'')','0','1',stk(top+1-rhs)(4),'1') else stk=list('max('+v+',''c'')','0',stk(top+1-rhs)(3),'1','1') end end if lhs<>1 then stk(2)='-1' stk=list(stk,stk) end
a1bd08efe1dcb5993fc22e5c6c82924181180aee
b674a3fe219a3fceb620097d376aefe9c6a603eb
/SERT_Compact/tempTestFile2.tst
eab4d190367759fa4faa9e18980dbb6aa3fe4bb2
[]
no_license
SBUSITeam/ShelterInsurance
95603b23808613fb67624053b154a6ae5bafff19
f038d0ffba08b9cefe580bc47b8772b9002f9e13
refs/heads/master
2020-06-08T05:47:55.704138
2014-05-19T19:53:25
2014-05-19T19:53:25
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
86
tst
tempTestFile2.tst
Data 3 Default A B 2 Data 3_1 Hello again randomID B 0 Data 3_2 100000 A randomType 0
d475adfb4a5ec520dedfe91f30e7a521cb629553
297b29fb450286d0f7fa619e58c9f4a86949544a
/CoaFreqEstim.sci
9beea2481f194c21b23616767685a7ff8b0c4f93
[]
no_license
harshal93shah/scilabcom
46dc948c1e0d0b37b0a69dfa203347298cc01e40
09c5506089a4283968d963ed3812de9823c5a008
refs/heads/master
2020-04-06T07:03:23.954966
2016-10-04T11:49:41
2016-10-04T11:49:41
54,882,787
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,172
sci
CoaFreqEstim.sci
function [fest] = CoaFreqEstim(in,mod,algo,fs,f) fest=[]; // Display mode mode(0); // Display warning for floating point exception ieee(1); //CoaFreqEstim-CoarseFrequencyEstimator which estimates frequency offset //CoaFreqEstim(in,mod,algo,fs,f)estimates for the carrier frequency offset //returns a scalar estimate of the frequency offset fft based algorithm or correleation based algo //for mod of BPSK,QPSK,PSK,PAM and QAM //CoaFreqEstim(in,mod,'fft',fs,fr) or //CoaFreqEstim(in,m,'corr',fs,fm) //in:input-Input vector signal can be complex //m:ModulationOrder-Modulation order the object uses //Specify the modulation order of the PSK signal as a positive, real scalar //fs:Sample rate (Hz)-specify the sample rate in samples per second as a positive, real scalar //fr:Frequency resolution (Hz) -Specify the frequency resolution for the offset frequency estimation as a positive, real scala //The value for this property must be less than or equal to half the SampleRate //checking conditions on in //fm:Maximum measurable frequency offset (Hz) //Specify the maximum measurable frequency offset as a positive, real scalar //The value of this property must be less than SampleRate/ ModulationOrder //checking conditions on in if( or( isnan(in)) | min(size(in))~=1) then error("CoaFreqEstim:improper input"); end if(~strcmp('BPSK',mod)|~strcmp('PAM',mod)) then m=2; elseif(~strcmp('QPSK',mod)) m=4; elseif(~strcmp('8PSK',mod)) m=8; elseif(~strcmp('QAM',mod)) m=4; if (~strcmp(algo,'corr')) then error("CoaFreqEstim:QAM should have algo fft"); end end //checking condition on Sample rate if (~isreal(fs) | length(fs)~=1 | isnan(fs)|fs<=0) then error("CoaFreqEstim:improper Sample rate"); end //checking condition on Frequency resolution if(~strcmp(algo,'fft')) then if (~isreal(f) | length(f)~=1 | isnan(f)|f<=0|f>=(fs/2)) then error("CoaFreqEstim:improper Frequency resolution "); end N= 2^ceil(log2(fs/f)); l=length(in); if(l<= N) then for i = (l+1):N in(i) = 0; end else error("CarrierSynchronizer:input is too large "); end x= abs(fft(in.^m)); [l,k]=max(x); if(k>N/2) then k = k-N; end fest = k*fs/(N*m); elseif(~strcmp(algo,'corr')) then if (~isreal(f) | length(f)~=1 | isnan(f)|f<=0|f>=(fs/m)) then error("CoaFreqEstim:improper Frequency resolution "); end N=length(in); L=min(round(fs/f),N) R= zeros(N,1); for i = 1:N for j =i:N R(i)=R(i)+in(j)*conj(in(j-i+1)); end R(i)=R(i)/(N-i+1); end s=sum(R(2:L)); phi=atan(imag(s),real(s)); fest= phi*fs/(%pi*(L)); else error("CoaFreqEstim:improper algorithm "); end