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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f94efcfa375609bc2ecc4c3bc921e923385f1db | 449d555969bfd7befe906877abab098c6e63a0e8 | /3640/CH5/EX5.2/Ex5_2.sce | 7f511da3573e1b4ba341c142bbdfad1deee29809 | [] | 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 | 791 | sce | Ex5_2.sce | clc
I=100 //current drawn in amperes
ra=0.07 //armature resistance in ohms
Vt=230 //terminal voltage of motor in volts
mprintf("Eg*=VT*-Iara*=%fV\n",Vt-(I*ra))
n=1200 //speed of rotation in rev/min
mprintf("w*=%dπrad/sec\n",(n/60)*2)
mprintf("KaΦ=Eg*/w*=%fV-s/rad\n",(Vt-(I*ra))/((n/60)*2*%pi))//ans may vary due to roundoff error
Ia=100 //armature current in ampere
mprintf("τd=KaΦIa=%fN-m\n",(Ia*(Vt-(I*ra))/((n/60)*2*%pi)))//ans may vary due to roundoff error
Td=300 //torque in N-m
Ia=Td/((Vt-(I*ra))/((n/60)*2*%pi))//ans may vary due to roundoff error
mprintf("Ia=τd/KaΦ=%fA\n",Ia)
ra=0.07 //resistance in ohms
VT=230 //voltage in volts
w=(VT-Ia*ra)/((Vt-(I*ra))/((n/60)*2*%pi))
mprintf("w=(VT-Iara)/KaΦ=%frad/sec\n",w)//ans may vary due to roundoff error
|
777f891afd4fdb71f8436dd2ca4c3b1879fa8164 | ac1f8441b0319b4a391cd5a959bd3bb7988edfa7 | /data/news2015/news2015/SplitsNEWS15/EnKo/enko.7.tst | 73de23dc5bcee63486f9e27646e9d995d893314d | [
"MIT"
] | permissive | SaeedNajafi/transliterator | 4d58b8604fa31f52ee2dce7845e002a18214fd5e | 523a087b777a5d6eec041165dabb43848f6222e6 | refs/heads/master | 2021-09-18T17:02:59.083727 | 2018-07-17T06:01:21 | 2018-07-17T06:01:21 | 129,796,130 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 17,888 | tst | enko.7.tst | a b d u s 압 두 스
a b r a h a m 아 브 라 함
a c k e r m a n n 아 커 만
a d a l b e r t 아 달 베 르 트
a d d i n g t o n 애 딩 턴
a i k e n 에 이 킨
a l a s k a 알 래 스 카
a l b a n i a 알 바 니 아
a l b a n y 올 버 니
a l e c 앨 릭
a l f a 알 파
a l m q v i s t 알 름 크 비 스 트
a m b e r 앰 버
a n c h o r a g e 앵 커 리 지
a n c o n a 안 코 나
a n d e r s 안 데 르 스
a n d e r s e n 안 데 르 센
a n d r e 안 드 레
a n d r e s 안 드 레 스
a n g e l a 앙 겔 라
a n g e l a 앤 젤 라
a n g e l l 에 인 절
a n g e l o 안 젤 로
a n k r a h 안 크 라
a n n e m a r i e 아 네 마 리
a n s e l 언 셀
a n t e l a m i 안 텔 라 미
a n t o n o v 안 토 노 프
a p p e l 아 펠
a p p i a 아 피 아
a r a g o n 아 라 곤
a r l i n g t o n 알 링 턴
a r n e 아 르 네
a r n i m 아 르 님
a s s e r 아 세 르
a s t l e y 애 스 틀 리
a s u n c i o n 아 순 시 온
a u d e n 오 든
a v a 에 바
a v v a k u m 아 바 쿰
b a b e 베 이 브
b a d a j o z 바 다 호 스
b a d e n 바 덴
b a h r a i n 바 레 인
b a i e r 바 이 어
b a n a c h 바 나 흐
b a n t i n g 밴 팅
b a r d e m 바 뎀
b a r n a b y 바 르 나 비
b a r s t o w 바 르 스 토 우
b a r t o l o m m e o 바 르 톨 롬 메 오
b a s r a 바 스 라
b a s s e t t 바 셋
b a t c h e l o r 배 첼 러
b a u t i s t a 바 티 스 타
b a y r e u t h 바 이 로 이 트
b e a d l e 비 들
b e b e l 베 벨
b e c h e r 베 허
b e l a s c o 벨 라 스 코
b e l l 벨
b e n i t o 베 니 토
b e n n e t t 베 넷
b e r g s o n 베 르 그 송
b e r m a n 버 만
b e r n a r d o 베 르 나 르 도
b e r n e 베 른
b e r n o u l l i 베 르 누 이
b e s a n c o n 브 장 송
b e s s a r a b i a 베 사 라 비 아
b i b e r 비 버
b i l l i n g s 빌 링 스
b i n y o n 비 니 언
b i r k h o f f 버 코 프
b i s h o p 비 숍
b l a c k 블 랙
b l a c k s t o n e 블 랙 스 톤
b l o c k 블 록
b o 보
b o e t h i u s 보 이 티 우 스
b o n s e l s 본 젤 스
b o p p 보 프
b o r d e a u x 보 르 도
b o r g e 보 르 그
b o r j a 보 르 하
b o r o d i n 보 로 딘
b o t h a 보 타
b o t s f o r d 보 츠 포 드
b o v e t 보 베
b o w i e 보 위
b o w m a n 보 먼
b r a h m s 브 람 스
b r a z z a v i l l e 브 라 자 빌
b r e n d a n 브 렌 던
b r o o k i n g s 브 루 킹 스
b r u c e 브 루 스
b r u c h 브 루 흐
b r y a n 브 라 이 언
b u b e r 부 버
b u k h a r i n 부 하 린
b u n d y 번 디
b u r d i n 버 딘
b u r g 부 르 그
b u r n e t t 버 넷
b u s o n i 부 소 니
b u t l e r 버 틀 러
b u t t e r f i e l d 버 터 필 드
c a i r d 케 어 드
c a l d e c o t t 콜 더 컷
c a l f a 찰 파
c a m p a n e l l a 캄 파 넬 라
c a n b e r r a 캔 버 라
c a n t o r 칸 토 어
c a p r i v i 카 프 리 비
c a r a c a s 카 라 카 스
c a r d a n o 카 르 다 노
c a r d i f f 카 디 프
c a r d i n a l 카 디 날
c a r p e n t i e r 카 르 펜 티 에 르
c a r r e r a 카 레 라
c a r s o n 카 슨
c a s a d e s u s 카 자 드 쥐
c a s s i d y 캐 시 디
c e s a r o t t i 체 사 로 티
c h a p l i n 채 플 린
c h a u m o n t 쇼 몽
c h e d d a r 체 더
c h e r n o v 체 르 노 프
c h e s t e r 체 스 터
c i n d y 신 디
c i r i a c o 크 리 아 코
c o i m b r a 코 임 브 라
c o l o m b o 콜 롬 보
c o l t 콜 트
c o n d o r c e t 콩 도 르 세
c o n s t a n c e 콘 스 탄 스
c o p e n h a g e n 코 펜 하 겐
c o s s a 코 사
c r a n a c h 크 라 나 흐
c r a w f o r d 크 로 퍼 드
c r o c e 크 로 체
c r o n a c a 크 로 나 카
c u b a 쿠 바
c u r t i s 커 티 스
c u r t i z 커 티 스
d a g e r m a n 다 게 르 만
d a k a r 다 카 르
d a m o n 데 이 먼
d a r t 다 트
d a v i d s o n 데 이 비 슨
d e s m o u l i n s 데 물 랭
d i a l l o 디 앨 로
d i c e y 다 이 시
d i e s e l 디 젤
d i x i e 딕 시
d o d g e 다 지
d o i s y 도 이 지
d o n 단
d o n a l d 도 널 드
d o r e e n 도 린
d o r t m u n d 도 르 트 문 트
d o w n s 다 운 스
d o w n s 다 운 즈
d r e x l e r 드 렉 슬 러
d u b l i n 더 블 린
d u d l e y 더 들 리
d u l u t h 덜 루 스
e a s t o n 이 스 턴
e b b i n g h a u s 에 빙 하 우 스
e c k a r d t 에 카 르 트
e d d i n g t o n 에 딩 턴
e i s e n s t a d t 아 이 젠 슈 타 트
e l a m 엘 람
e l i z a b e t h 엘 리 자 베 스
e l y 일 리
e m i n e s c u 에 미 네 스 쿠
e n d r e 엔 드 레
e r i c k 에 릭
e r r o l 에 럴
e s a i a s 에 사 이 아 스
e s e n i n 예 세 닌
e u c l i d 유 클 리 드
e u l e r 오 일 러
e v a n s v i l l e 에 번 즈 빌
e v e r s o n 에 버 슨
e z e k i e l 에 제 키 엘
f a n o 파 노
f e c h n e r 페 히 너
f e r n 펀
f e t 페 트
f i l m e r 필 머
f i n l a n d 핀 란 드
f i o n a 피 오 나
f i o r e n t i n o 피 오 렌 티 노
f i r e s t o n e 파 이 어 스 톤
f i s h e r 피 셔
f l e i s c h e r 플 라 이 셔
f l o r e n c e 플 로 렌 스
f o n t e y n 폰 테 인
f o s t e r 포 스 터
f o u r n i e r 푸 르 니 에
f r a g o n a r d 프 라 고 나 르
f r a n c e s c a 프 란 체 스 카
f r a n c i s 프 랑 시 스
f r a n c i s c o 프 란 시 스 코
f r a n k e n 프 랑 켄
f r a s e r 프 레 이 저
f r a z e r 프 레 이 저
f r i e d m a n 프 리 드 만
f r i s c h 프 리 슈
f r o m e n t i n 프 로 망 탱
f u l l e r 풀 러
f u l l e r t o n 풀 러 턴
f u n k 풍 크
f u r m a n o v 푸 르 마 노 프
g a b r i e l 가 브 리 엘
g a j 가 이
g a j d u s e k 가 이 듀 섹
g a l l o n i 갤 로 니
g a l l u p 갤 럽
g a n c e 강 스
g a n g e s 갠 지 스
g a r f i e l d 가 필 드
g a r n i e r 가 르 니 에
g e o f f r e y 제 프 리
g e o r g e t t e 조 젯
g e o r g i a 그 루 지 아
g e o r g i a 조 지 아
g e r a s i m o v 게 라 시 모 프
g e r l a c h 게 를 라 흐
g e r m a i n 제 르 맹
g i b b o n s 기 번 스
g i g l i 질 리
g i l l e s p i e 길 레 스 피
g i n a s t e r a 히 나 스 테 라
g i u l i a n o 줄 리 아 노
g o e b e l 괴 벨
g o e s 구 스
g o g o l 고 골 리
g o k h a l e 고 칼 레
g o l d b e r g 골 드 버 그
g o l d m a n n 골 드 만
g o m b r i c h 곰 브 리 치
g o r c h a k o v 고 르 차 코 프
g o r e 고 어
g o r t e r 고 르 테 르
g o r t e r 호 르 터
g o t t l i e b 고 틀 리 브
g r a c e 그 라 스
g r e e c e 그 리 스
g r e e r 그 리 어
g r e k o v 그 레 코 프
g r e y 그 레 이
g r o e t h u y s e n 그 레 튀 쟁
g u a d a l u p e 과 달 루 페
g u i l l a u m e 기 욤
g u i l l a u m i n 기 요 맹
g u l d b e r g 굴 드 베 르 그
g u l d b e r g 굴 베 르 그
g u l l s t r a n d 굴 스 트 란 드
g u s t a v e 구 스 타 브
h a b e r 하 버
h a i t i 아 이 티
h a l l w a c h s 할 박 스
h a m b u r g 함 부 르 크
h a n d e l 헨 델
h a n k e l 항 켈
h a r d i e 하 디
h a r s a n y i 허 샤 니
h a s e n c l e v e r 하 젠 클 레 버
h a s k e l l 하 스 켈
h a u s h o f e r 하 우 스 호 퍼
h a w o r t h 하 스
h a y d n 하 이 든
h e a l e y 힐 리
h e l d 헬 드
h e l m s 헬 름 스
h e l s i n k i 헬 싱 키
h e r r i o t 에 리 오
h e r s h e y 허 시
h e r t f o r d 하 트 퍼 드
h e y m a n s 하 이 만 스
h i b e r n i a 하 이 버 니 아
h i l f e r d i n g 힐 퍼 딩
h i n t o n 힌 턴
h o d g s o n 호 지 슨
h o l l o w a y 홀 러 웨 이
h o l t 홀 트
h o u d o n 우 동
h o w e l l s 하 우 얼 스
h u g u e n o t 위 그 노
h u g u e t t e 위 게 트
h u r l e y 헐 리
h u t c h e s o n 허 치 슨
h u t c h i n s o n 허 친 슨
h y a t t 하 이 엇
i l o n a 일 로 나
i m b e r t 임 베 르 트
i n d r a 인 드 라
i r v i n g 어 빙
i s k a n d a r 이 스 칸 달
i s l a m a b a d 이 슬 라 마 바 드
i s l e r 아 이 슬 러
i s r a e l 이 스 라 엘
j a g a n 제 이 건
j a m s a 잠 사
j a n i c e 제 니 스
j a q u e s 자 크
j e n a 예 나
j e n n y 제 니
j e p s e n 제 프 슨
j e r e m i a h 예 레 미 야
j e r r o l d 제 럴 드
j e r z y 예 지
j e s s 제 스
j o f f r e 조 프 르
j o h n s o n 욘 손
j o h n s o n 존 슨
j o i n v i l l e 주 앵 빌
j o s p i n 조 스 팽
j o u v e t 주 베
j u l i a n 율 리 아 누 스
j u l i e 줄 리
k a l i m a n t a n 칼 리 만 탄
k a m a l 카 말
k a n d e l 캔 들
k a n t o r 캔 터
k a r p 카 프
k a y 케 이
k a z a n 카 잔
k e k k o n e n 케 코 넨
k e l l e r m a n n 켈 러 만
k e n 켄
k e n t 켄 트
k e p l e r 케 플 러
k e y s e r l i n g 카 이 절 링
k h a c h a t u r y a n 하 차 투 리 안
k i s s i n g e r 키 신 저
k l i m t 클 림 트
k l i n g e r 클 링 거
k l u g e 클 루 게
k o e n i g s b e r g e r 퀴 니 스 버 거
k o h l r a u s c h 콜 라 우 슈
k o k 코 크
k o l a r o v 콜 라 로 프
k r a k o w 크 라 코 프
k r a s n o y a r s k 크 라 스 노 야 르 스 크
k u l i k o v 쿨 리 코 프
k u s c h 쿠 시
k y d 키 드
l a g o s 라 고 스
l a o 라 오
l a s k y 래 스 키
l a u r e l 라 우 렐
l e m a i t r e 르 메 트 르
l e n z 렌 츠
l e o n 레 옹
l e o n 리 옹
l e p s i u s 렙 시 우 스
l e s z e k 레 셰 크
l e v 예 프
l e y t e 레 이 테
l i b y a 리 비 아
l i e 리
l i n d g r e n 린 드 그 렌
l i s t e r 리 스 터
l o f t u s 로 프 터 스
l o m b r o s o 롬 브 로 소
l o n d o n 런 던
l o w e l l 로 웰
l o w i e 로 위
l u b a 루 바
l u c a s 루 카 스
l u c i e n 뤼 시 앵
l u j o 루 조
l u t h e r 루 터
l u t o s l a w s k i 루 토 슬 라 프 스 키
l y m a n 라 이 먼
l y o n 리 옹
l y s e n k o 리 센 코
l y t t o n 리 턴
m a c y 메 이 시
m a d a g a s c a r 마 다 가 스 카 르
m a g e e 매 기
m a g g i e 매 기
m a g n i t o g o r s k 마 그 니 토 고 르 스 크
m a h e n d r a 마 헨 드 라
m a i m o n 마 이 몬
m a i o r 마 이 오 르
m a l a w i 말 라 위
m a l d e n 몰 덴
m a l i k 말 리 크
m a l o n e y 멀 로 니
m a l t h u s 맬 서 스
m a l u s 말 뤼 스
m a m a l o n i 마 말 로 니
m a n d e r 만 데 르
m a n d e v i l l e 맨 더 빌
m a r a 마 라
m a r c 마 르 크
m a r g e r y 마 제 리
m a r i o n 매 리 언
m a r i u s 마 리 우 스
m a r t i n o 마 르 티 노
m a r t i n s o n 마 르 틴 손
m a r x 마 르 크 스
m a r y l a n d 메 릴 랜 드
m a t h e s o n 마 테 존
m a u r i z i o 마 우 리 치 오
m a x i m 맥 심
m a x i m e 막 심
m a x i m i l i a n 막 시 밀 리 안
m a y a 마 야
m b a s o g o 음 바 소 고
m e c k l e n b u r g 메 클 렌 부 르 크
m e l v i l l e 멜 빌
m e l v i n 멜 빈
m e r c o u r i 메 르 쿠 리
m e s s e r e r 메 세 레 르
m e s s i a e n 메 시 앙
m e s s i e r 메 시 에
m i a m i 마 이 에 미
m i k h a i l o v 미 하 일 로 프
m i l l e t 밀 레
m i l n e 밀 른
m i r i a m 미 리 엄
m i t s c h e r l i c h 미 처 리 히
m o l i n a 몰 리 나
m o l o t o v 몰 로 토 프
m o n d r i a a n 몬 드 리 안
m o n g e 몽 주
m o o d 무 드
m o r g a n 모 르 건
m o u s a 무 사
m u r m a n s k 무 르 만 스 크
m u s c a t 무 스 카 트
m u s k o g e e 무 스 코 기
n ' d i a y e 느 쟈 예
n a d a r 나 다 르
n a i r 나 이 르
n a t 냇
n a t o r p 나 토 르 프
n a z a r e t h 나 사 렛
n e b o j s a 네 보 이 사
n e f f 네 프
n e k r a s o v 네 크 라 소 프
n e r u d a 네 루 다
n e r v a 네 르 바
n e y 네
n i c h o l s 니 콜 스
n i c o l e 니 콜
n i j m e g e n 네 이 메 겐
n i k e 나 이 키
n i k e 니 케
n i x o n 닉 슨
n o r f o l k 노 퍽
n o r t h c l i f f e 노 스 클 리 프
n o r t h u m b e r l a n d 노 섬 벌 랜 드
n o v i k o v 노 비 코 프
n o v o s i b i r s k 노 보 시 비 르 스 크
o a x a c a 오 악 사 카
o b 오 브
o c h o a 오 초 아
o g i l v y 오 글 비
o h a n a 오 하 나
o l g a 올 가
o l i v i a 올 리 비 아
o l y m p i a 올 림 피 아
o m s k 옴 스 크
o r e g o n 오 리 건
o r w e l l 오 웰
p a c h e r 파 허
p a d g e t t 패 젯
p a i n e 페 인
p a n k h u r s t 팽 크 허 스 트
p a o l o 파 올 로
p a r a m a r i b o 파 라 마 리 보
p a r e t o 파 레 토
p a r i n i 파 리 니
p a r i s h 패 리 쉬
p a s t o r 파 스 터
p a t t e r s o n 패 터 슨
p a u l i n e 폴 린
p a v l o v 파 블 로 프
p e a r l 펄
p e d r o 페 드 로
p e l t i e r 펠 티 에
p e m b r o k e 펨 브 룩
p e r d u e 퍼 듀
p e r m 페 름
p e r r i e r 페 리 에
p e r r i n 페 랭
p e r s s o n 페 르 손
p e t i p a 페 티 파
p e t t i t 페 티 트
p f i t z n e r 피 츠 너
p h i l i p p i 빌 립 보
p i a z z e t t a 피 아 체 타
p i c a r d 피 카 르
p i c k e r i n g 피 커 링
p i o t r o w s k i 피 오 트 로 프 스 키
p i r q u e t 피 르 케
p i s a r e v 피 사 레 프
p i t m a n 피 트 먼
p i t t 피 트
p i z a r r o 피 사 로
p l e k h a n o v 플 레 하 노 프
p o l l a c k 폴 락
p o m p a d o u r 퐁 파 두 르
p o m p i d o u 퐁 피 두
p o m p o n a z z i 폼 포 나 치
p o n c h i e l l i 폰 키 엘 리
p o r t e r 포 터
p o t a n i n 포 타 닌
p r a t a 프 라 타
p r i n c i p e 프 린 시 페
p r o c t e r 프 록 터
p u c k 퍽
p u n s a l m a a g i y n 푼 살 마 긴
p y m 핌
q u e b e c 퀘 벡
q u e n t i n 퀀 틴
q u i n t o n 퀸 턴
q u i r k 쿽 크
q u i s l i n g 크 비 슬 링
r a f a e l 라 파 엘
r a f i k 라 피 크
r a m e a u 라 모
r a m o n 라 몬
r a n a s i n g h e 라 나 싱 헤
r a n d o l p h 랜 돌 프
r a n k o v i c 랑 코 비 치
r a t h e n a u 라 테 나 우
r e a d 리 드
r e b e c c a 레 베 카
r e i d 리 드
r e i n e r 라 이 너
r e i n h a r d t 라 인 하 르 트
r e n a n 르 낭
r h i n e 라 인
r i c h t e r 리 히 터
r i c k e t t s 리 케 츠
r i e m e n s c h n e i d e r 리 멘 슈 나 이 더
r i v e r s i d e 리 버 사 이 드
r o b b i n s 로 빈 스
r o d g e r s 로 저 스
r o m b e r g 롬 버 그
r o o s e v e l t 루 스 벨 트
r o s a l i e 로 잘 리
r o t h s c h i l d 로 스 차 일 드
r o y c e 로 이 스
r u b i n s t e i n 루 빈 슈 타 인
r y a n 라 이 언
s a b i n e 사 빈
s a l e 사 르
s a l i m 살 림
s a l m o n 살 몽
s a l o m o n 살 로 몬
s a l w e e n 살 윈
s a m o a 사 모 아
s a n t e r 상 테 르
s a r a j e v o 사 라 예 보
s a r g e n t 사 전 트
s a u s s u r e 소 쉬 르
s c h e l l i n g 셸 링
s c h i c k e l e 시 켈 레
s c h m a l e n b a c h 슈 말 렌 바 흐
s c h m i t t 슈 미 트
s c h r e k e r 슈 레 커
s c h u l t z 슐 츠
s c h w a b e 슈 바 베
s c h w a r z 슈 왈 츠
s c h w i n g e r 슈 윙 거
s e g a n t i n i 세 간 티 니
s e i p e l 자 이 펠
s e m 셈
s e v e r o 세 베 로
s e y f e r t 시 퍼 트
s h c h e p k i n 시 쳅 킨
s h e r i d a n 셰 리 던
s h o c k l e y 쇼 클 리
s h o l o k h o v 숄 로 호 프
s i b e l i u s 시 벨 리 우 스
s i d n e y 시 드 니
s i e m e n s 지 멘 스
s i k o r s k i 시 코 르 스 키
s i m o n e 시 모 네
s i n g h 싱
s l o b o d a n 슬 로 보 단
s l o v e n i a 슬 로 베 니 아
s m e d l e y 스 메 들 리
s m e l l i e 스 멜 리
s o l 솔
s o l o w 솔 로
s p o h r 슈 포 어
s t a f f o r d 스 태 포 드
s t a u b 스 타 웁
s t e a d 스 테 드
s t e e l e 스 틸
s t e f f e n 스 테 픈
s t e i n e r 슈 타 이 너
s t e l l a 스 텔 라
s t e p h e n 스 티 븐
s t o c k t o n 스 톡 턴
s t o k e s 스 토 크 스
s t r i c k l a n d 스 트 릭 랜 드
s u l l a 술 라
s u m a t r a 수 마 트 라
s u m m e r s 서 머 스
s u p e r v i e l l e 쉬 페 르 비 엘
s u r i k o v 수 리 코 프
s u t t e r 수 터
s w e e l i n c k 스 벨 링 크
s w i f t 스 위 프 트
s y l v e s t e r 실 베 스 터
t a j i k i s t a n 타 지 키 스 탄
t a l l i s 탤 리 스
t a r k i n g t o n 타 킹 턴
t e n n a n t 테 넌 트
t e n n e s s e e 테 네 시
t h a t c h e r 대 처
t h o m a s 도 마
t h o m a s 토 마 스
t h o m s e n 톰 센
t h o r p e 소 프
t i s o 티 소
t o g l i a t t i 톨 리 아 티
t o n y 토 니
t o w n s e n d 타 운 센 드
t r i c i a 트 리 시 아
t r o l l o p e 트 롤 럽
t r u d e a u 트 뤼 도
u s t i n o v 유 스 티 노 프
u t r e c h t 위 트 레 흐 트
u w e 우 베
v a l e n t i n e 발 렌 타 인
v a l e r i e 발 레 리
v a n e 베 인
v a r r o 바 로
v a u g h a n 본
v e c e l l i o 베 첼 리 오
v e r m o n t 버 몬 트
v e r s a i l l e s 베 르 사 유
v e r t o v 베 르 토 프
v i e u x t e m p s 비 외 탕
v i r c h o w 피 르 호
v l a d i v o s t o k 블 라 디 보 스 토 크
v o l t a 볼 타
v o r o s h i l o v 보 로 실 로 프
v o y n i c h 보 니 치
w a g n e r 바 그 너
w a k e f i e l d 웨 이 크 필 드
w a l t e r 발 터
w a l t h e r 발 터
w a t e r b u r y 워 터 베 리
w e i e r s t r a s s 바 이 어 슈 트 라 스
w e i l 바 일
w e l l e s l e y 웰 즐 리
w e n d 웬 드
w e s t i n g h o u s e 웨 스 팅 하 우 스
w e s t o n 웨 스 턴
w e y d e n 바 이 덴
w h i t w o r t h 휘 트 워 스
w i l k e s 윌 크 스
w i l l c o c k s 윌 콕 스
w i l l e m s t a d 빌 렘 스 타 트
w i l l i 빌 리
w i l l i a m s o n 윌 리 엄 슨
w i m b l e d o n 윔 블 던
w i t t i g 비 티 히
w o l f e r s 월 퍼 스
w o l l s t o n e c r a f t 울 스 턴 크 래 프 트
w o o d r o w 우 드 로
w o o l l e y 울 리
x i e 셰
y a s s i n 야 신
y a t e s 예 이 츠
y e h u d i 예 후 디
z a c h a r i a s 자 카 리 아 스
z a i r e 자 이 르
z a m b e z i 잠 베 지
z a n e t t i 사 네 티
z a n z i b a r 잔 지 바 르
z e m a n 제 만
z e p p e l i n 체 펠 린
|
d45771942ce70dd34d31cd013d03e72c42b5d176 | 1232196a72221f6cc0ee0a9a47111ef1188dafe9 | /xcos_blocks/lpf_2.sci | 2a528603d83890736eced0f0fab069214fc2159a | [] | 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 | 2,256 | sci | lpf_2.sci | function [x,y,typ]=lpf_2(job,arg1,arg2)
// Copyright INRIA
x=[];y=[];typ=[];
select job
case 'plot' then
standard_draw(arg1)
case 'getinputs' then
[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;
while %t do
[ok,in_out_num,ibias1,ibias2,exprs]=getvalue('Set 2nd Order LPF Parameters',['Number of 2nd Order LPF blocks';'First Stage Bias';'Second Stage Bias'],list('vec',1,'vec',-1,'vec',-1),exprs)
if ~ok then break,end
if length(ibias1) ~= in_out_num then
message('The number of first stage bias values that you have entered does not match the number of 2nd Order LPF blocks.');
ok=%f;
end
if length(ibias2) ~= in_out_num then
message('The number of second stage bias values that you have entered does not match the number of 2nd Order LPF blocks.');
ok=%f;
end
if ok then
model.in=in_out_num
model.out=in_out_num
model.ipar=in_out_num
model.rpar = [ibias1;ibias2]
model.state = zeros(2*in_out_num,1)
graphics.exprs=exprs;
x.graphics=graphics;x.model=model
break
end
end
case 'define' then
ibias1 = 40e-9
ibias2 = 40e-9
xx=[0;0]
in_out_num =1
model=scicos_model()
model.sim=list('lpf_2_c',5)
model.in=in_out_num
model.in2=-1
model.intyp=-1
model.out=in_out_num
model.out2=-1
model.outtyp=-1
model.rpar = [ibias1;ibias2]
model.ipar=in_out_num
model.state=xx
model.blocktype='d'
model.dep_ut=[%f %t]
exprs=[sci2exp(in_out_num); sci2exp(ibias1) ; sci2exp(ibias2)]
gr_i=['txt=''2nd Order LPF '';';'xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')']
x=standard_define([6 3],model,exprs,gr_i)
end
endfunction
|
c233436f5ec1b91a2941fe8de74ddd6bc074c23e | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/percent/%p_i_r.sci | 5b3091b7cb435a165f588dd4f154da055f6f7ec2 | [
"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 | 703 | sci | %p_i_r.sci | function f=%p_i_r(i,j,f2,f)
// %p_i_r(i,j,f2,f) <=> f(i,j)=f2 for polynomial matrices
//!
// Copyright INRIA
if type(i)==10 then // s2('num'),s2('den'),sl('dt')
[lhs,rhs]=argn(0)
if rhs<>3 then error(21),end
nams=['num','den','dt']
kf=find(i==nams)
if kf==[] then error(21),end
f=f2;kf=kf+1
if kf==4 then error('inserted element '+i+' has incorrect type'),end
if size(f(kf))<>size(j) then
warning('inserted element '+i+' has inconsistent dimension')
end
f(kf)=j
return
end
[n,d]=f(2:3),[ld,cd]=size(d),l=maxi(i),c=maxi(j)
if l>ld then d(ld+1:l,:)=ones(l-ld,cd),ld=l,end
if c>cd then d(:,cd+1:c)=ones(ld,c-cd),end
n(i,j)=f2,[l,c]=size(f2),d(i,j)=ones(l,c)
f(2)=n,f(3)=d
|
50a25b1fbf8c8b436d9dd26d481bc84489990f96 | 15b814fbf5ba965e98871286249c9f382d1eee4c | /adaptive/simulation11/adaptive-pid.sce | 10684f22ee9258ae6da7590389889cdf57075bfd | [] | no_license | oscarkremer/disciplines | b5338f3a97c7a20e4b39618d7da0d4396dc35f07 | b8d1ca9da37f81c99ee08dbee795d2d936597666 | refs/heads/master | 2020-07-22T14:57:42.643799 | 2019-12-07T15:51:40 | 2019-12-07T15:51:40 | 207,239,678 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,623 | sce | adaptive-pid.sce | clear
close
delta_t=0.001
t = (0:delta_t:10);
t = t'
ifinal=size(t);ifinal=ifinal(1);
F = t;
a = 1;
b = 2;
s = poly(0, 's');
g = syslin('c', a/(s + b))
y = csim(F', t', g)';
filtro = 1/(s+1)^2;
hf = syslin('c', filtro);
u_fil = csim(F', t', hf);
y_fil = csim(y', t', hf);
dy_fil = csim(y', t', s*hf);
P = 10000*eye(2, 2);
theta_plot = zeros(2, ifinal);
p = zeros(ifinal);
p(1) = norm(P, 'fro')
theta = [10;10];
y0 = [0];
right_y0 = y0;
omega_n = 5;
zeta = 0.9;
signal = [ones(2*ifinal/10,1); zeros(2*ifinal/10,1); ones(2*ifinal/10,1); zeros(2*ifinal/10,1); ones(2*ifinal/10 + 1,1)];
y_plot = zeros(ifinal,1)
y_plot(1) = y0;
right_ki = omega_n^2/a
right_kp = (2*zeta*omega_n - b)/a;
integral_error = 0;
right_integral_error = 0;
for i=2:ifinal
fi = [u_fil(i) -y_fil(i)]';
K =P*fi/(1+fi'*P*fi);
P = (eye(2,2) - K*fi')*P;
p(i) = norm(P, 'fro')
theta = theta + K*(dy_fil(i) - fi'*theta);
theta_plot(:,i) = theta
ki = omega_n^2/theta(1)
kp = (2*zeta*omega_n - theta(2))/theta(1);
signal_error = signal(i)-y0;
integral_error = integral_error + delta_t*signal_error;
uc = ki*integral_error + kp*signal_error
y0 = (delta_t*a*uc+y0)/(1+b*delta_t);
right_signal_error = signal(i)-right_y0;
right_integral_error = right_integral_error + delta_t*right_signal_error;
uc = right_ki*right_integral_error + right_kp*right_signal_error
right_y0 = (delta_t*a*uc+right_y0)/(1+b*delta_t);
y_plot(i) = y0
y_right_plot(i) = right_y0
end
figure(1)
plot(t,theta_plot')
figure(2)
plot(t,p)
figure(3)
plot(t,signal)
plot(t,y_right_plot, '-r')
plot(t,y_plot, '-k')
|
916cecb900a9458d50263251fb6c97611970785e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1022/CH13/EX13.2/13_2.sce | bc36a340d745d3565a7ebb740dced85c74b22363 | [] | 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 | 557 | sce | 13_2.sce | clc
//initialisation of variables
k= 0.384 //Btu/hr ft F
Tsat= 170.03 //F
hfg= 996.2 //Btu/lbm
T= 130 //F
l= 5 //ft
P= 6 //psia
g= 4.17*10^8 //ft/h^2
d= 0.042 //ft
p= 61.2 //lbm/ft^3
u= 1.05 //lbm/ft h
//CALCULATIONS
dt= Tsat-T
Tf= (Tsat+T)/2
hc= 0.943*((k^3*p^2*g*hfg)/(l*u*dt))^(1/4)
hc1= 0.725*((k^3*p^2*g*hfg)/(d*u*dt))^(1/4)
//RESULTS
printf ('Condensation heat tranfer coefficient if the tube is vertical= %.f Btu/h ft^2 F',hc)
printf (' \n Condensation heat tranfer coefficient if the tube is horizontally= %.f Btu/h ft^2 F',hc1)
|
ba454a31f68f19fbaa1e27889ebb42561f55ddab | 449d555969bfd7befe906877abab098c6e63a0e8 | /446/CH14/EX14.8/14_8.sce | e6edeff499854bff1a54b701752c1e766afb28fe | [] | 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 | 14_8.sce | clc;
clear;
disp('Ex-14.8'); //theoretical
printf('The reaction can be rewritten as follows U1+U--->S+S1. which implies that U and U1 annihiliate creating S and S1\n');
disp('The pi+ has the quark composition Ud1.Since no quarks are present in the final state. One possible way to get rid of the quarks is to change U into d');
printf('U--->d+W(+). Hence the remaining processes are d+d(+)--->energy and \n W(+)--->u(+) and vu.');
|
00be4c326823f5d35faf8cb4501fc31f7ea5862e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH6/EX6.5/Ex6_5.sce | 24ddde16e21e5498bc12bc2414fdec3f0cc0d666 | [] | 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,302 | sce | Ex6_5.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 6 Single Staje BJT Amplifiers Pg no. 191 and 192
clear;
clc;
//Given Data
//Figure 6.9
VCC=15;//collector supply voltage in volts
RC=1D3;//collector resistance in ohms
RE=390;//emitter resistance in ohms
R1=18D3;//divider network resistance R1 in ohms
R2=3.9D3;//divider network resistance R2 in ohms
VBE=0.7;//forward voltage drop of emitter diode in volts
Bdc=120;//DC CE current gain beta
Bac=130;//AC CE current gain beta
VT=25D-3;//voltage equivalent of temperature in volts
Vs=5D-3;//source rms voltage in volts
Rs=600;//source internal impedance in ohms
re=5;//equivalent BJT model emitter resistance in ohms
RL=6.8D3;//load resistance in ohms
C2=50D-6;//emitter bypass capacitance in farads
//Solution
disp("(i)");
RL_dash=RC*RL/(RC+RL);//a.c. value of collector resistance in ohms
Gv=RL_dash/re;//a.c. voltage gain
printf("A.C. Voltage gain Gv = %.1f\n",Gv);
disp("(ii)");
Rin_dash=Bac*(RE+re);//internal resistance of BJT in ohms
Rin=1/(1/R1+1/R2+1/Rin_dash);//total internal resistance is Rin=R1||R2||Rin'
f=Rin/(Rs+Rin);//input attenuation factor
Gv_dash=f*Gv;//overall a.c. voltage gain
printf("Overall A.C. Voltage gain Gv'' = %.1f\n",Gv_dash);
//gain deviation due to approximations in textbook
|
7231828068f6ca14b1c73876df03873c405ca225 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2198/CH2/EX2.9.9/Ex2_9_9.sce | 8b352d255255449f087359d0b9ebd435e9793f48 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 271 | sce | Ex2_9_9.sce | //Ex 2.9.9
clc;clear;close;
format('v',8);
//Given :
Vs=5;//Volt
Eta=1;//constant
VT=26/1000;//V
//I=I0 so exp(V1/Eta/VT)-1=1
V1=log(1+1)*Eta*VT;//Volt
V2=Vs-V1;//volt
disp(V1,"Voltage across diode D1 in V : ");
disp(V2,"Voltage across diode D2 in V : ");
|
634d10a25c8b9c2dfdffbb49cee34ae3ce41147f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH13/EX13.4/eg13_4.sce | 07aecf78264a413292d4c4e5952c13df748d32c1 | [] | 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 | 798 | sce | eg13_4.sce | clear;
//clc();
r=14;
x=48;
i=x;
vs=70;
vr=66;
function [mag,theta]=c(r,i)
mag=sqrt(r*r + i*i)
theta=atand(i/r)
endfunction
previousprot = funcprot(0)
funcprot(0)
[mag,theta]=c(r,i);
z=r + (%i)*x;
y=(%i)*4*10^(-4);
A=1 + 0.5*z*y;
[mag,theta]=c(real(A),imag(A));
a=theta;
A1=mag;
B=z;
function [mag,theta]=c(r,i)
mag=sqrt(r*r + i*i)
theta=atand(i/r)
endfunction
[mag,theta]= c(r,i);
b=theta;
B1=mag;
pr0=-(A1*vr^2)*cosd(b-a)/(B1);
qr0=-(A1*vr^2)*sind(b-a)/(B1);
pr=vs*vr/B1;
pl=0;
q=sqrt(pr^(2) - (pr0 - pl)^(2)) + qr0;
qpm=q;
s=24;
prat=s*0.8;
q=sqrt(pr^(2) - (pr0 - prat)^(2)) + qr0;
qpmrat=prat*tand(acosd(0.8))-q;
printf("\n the rating of the synchronous phase modifier is: %.2f MVAr\n",qpmrat);
|
befc63ca28498c027a41649ba7f30b6ac155eac3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1379/CH7/EX7.1.3/example7_3.sce | 70e2977c8668342f70f86c6443afc76018d5398e | [] | 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 | 570 | sce | example7_3.sce |
//exapple 7.3
clc; funcprot(0);
// Initialization of Variable
dr=2;//dia of column
mu=2.02/10^5;
rho=998;
K=5.1;
g=9.81;
Q=10000/3600;
l=50.8/1000;
d=l;
n=5790;
len=18;
thik=6.35/1000;
pi=3.1414;
//part1
//calculation
CA=pi*dr^2/4;//cross sectional area
u=Q/CA;
Vs=pi*d^2/4*l-pi*l/4*(d-2*thik)^2;//volume of each ring
e=1-Vs*n;
Surfacearea=pi*d*l+2*pi*d^2/4+pi*(d-2*thik)*l-2*pi*(d-2*thik)^2/4;
S=Surfacearea/Vs;
S=round(S*10)/10;
delP=K*S^2/e^3*mu*len*u*(1-e)^2;
delh=delP/rho/g;
disp(delh*100,"pressure drop in terms of (cm of H20)")
|
9f73e233797713bbccac17e1963ffeca6755bf78 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH7/EX7.7/eg7_7.sce | ef2e9cb4f75560f9f78afe1ae8263a7032bce44e | [] | 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 | 383 | sce | eg7_7.sce | clear;
//clc();
d=6;
s=0.3;
r=12.5/1000;
dab=6;
dbc=6;
dca=12;
dsl=sqrt(0.7788*r*s);
dm=(dab*dbc*dca)^(1/3);
lb=2*log([dm/dsl])/10;
xl=2*(%pi)*50*lb;
ds1=0.7788*r*sqrt(2);
l1=2*log([dm/ds1])/10;
xl1=2*(%pi)*50*l1;
printf("\n the line inductance is: %.3f Ohm/km\n",xl1/1000);
pu_red=(xl1-xl)/xl1;
printf("\n the pu reduction is: %.3f\n",pu_red);
|
ccc6955dd5aeafdb79081db1b60670f4a9d9f063 | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH3/EX3.7f/eg3_7f.sce | 6063f2727372ae4c6b874bbe9b136df16c01aeed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 534 | sce | eg3_7f.sce | alpha1 = 0.4;
plane_in_region1 = 1/3;
plane_in_region2 = 1/3;
plane_in_region3 = 1/3;
prob1 = (alpha1*plane_in_region1)/((alpha1*plane_in_region1)+ 1*plane_in_region2 + 1*plane_in_region3);
prob2 = (1*plane_in_region2)/((alpha1*plane_in_region1)+ 1*plane_in_region2 + 1*plane_in_region3);
disp(prob1 , "The probability that the planes is in region 1 given that the search of region 1 did not uncover it ");
disp(prob2 , "The probability that the planes is in region 2/3 given that the search of region 1 did not uncover it "); |
1f09f71591b3bcf036f3fa6f5441b998a485be9f | f7e981eeadbb0bba2edc23eccc7168670c099d2d | /bsp17.sce | 966c43d5989f7b836ee5f090cd0db4e40a6687b8 | [] | no_license | mr-georgebaker/Scilab-Exercises | bf1e79d68b856f92e2be86b6b002f4eb657ff0ef | fc63d68aeaf495da81a0c557a4f07192aacbd1c6 | refs/heads/master | 2016-08-05T01:37:09.841260 | 2015-05-22T18:24:17 | 2015-05-22T18:24:17 | 32,216,608 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,478 | sce | bsp17.sce | // Creates two plots: The first contains numerical solutions for two different methods
// (Euler and Heun) for the differential equation y'(t) = 2*t*y^2(t); 0<=t<=0.9; y(0) = 1
// for different amount of nodes
// The second contains a graphical comparison between the two methods by calculation
// the difference from the analytic solution for 2,4,6,...,1000 nodes
clear
function y = f_analytic(t)
// Returns the value for the analytic solution of the differential equation
// y'(t) = 2*t*y^2(t); 0<=t<=0.9; y(0) = 1
// y(t) = 1/(1-t^2)
// Input: t = number or vector
// Output: f = number or vector
y = 1 ./(1-t.^2)
endfunction
function z = f(t,y)
// Returns the value for f(t,y) = 2*t*y^2
// Input: t = number
// y = number
// Output: z = number
z = 2*t*y^2
endfunction
function unp1 = euler(un,tn,h,f)
// Returns the value u_(n+1) for the numerical solution of the differential equation
// y'(t) = 2*t*y^2(t); 0<=t<=0.9; y(0) = 1
// using euler method
// Input: un = number (startvalue for y)
// tn = number (startvalue for x (boundary condition))
// h = number (delta x)
// f = function (=y'(t))
// Output: unp1 = number (=y_(i+1))
tn = tn + h
unp1 = un + h*f(tn,un)
endfunction
function unp1 = heun(un,tn,h,f)
// Returns the value u_(n+1) for the numerical solution of the differential equation
// y'(t) = 2*t*y^2(t); 0<=t<=0.9; y(0) = 1
// using heun's method
// Input: un = number (startvalue for y)
// tn = number (startvalue for x (boundary condition))
// h = number (delta x)
// f = function (=y'(t))
// Output: unp1 = number (=y_(i+1))
tn1 = tn + h
unp1 = un + (h/2)*(f(tn,un)+f(tn1,un+h*f(tn,un)))
endfunction
function plots(lower,upper,N,y0,subplt,col1,col2)
// Creates the plots
// Input: lower = number (lower bound)
// upper = number (upper bound)
// N = number (amount of nodes)
// y0 = number (boundary condition)
// subplt = number (subplot number)
// col = string (color)
x = linspace(lower,upper,N)'
h = x(2)-x(1)
y(1,1) = y0
y(1,2) = y0
for i = 1:1:length(x)-1
y(i+1,1) = euler(y(i,1),x(i+1),h,f)
y(i+1,2) = heun(y(i,2),x(i+1),h,f)
end
subplot(subplt)
plot(x,y(1:$,1),col1)
plot(x,y(1:$,2),col2)
endfunction
function bsp17()
// Presents the solution
y0 = 1
x = linspace(0,0.9,100)'
subplot(121)
plot(x,f_analytic(x),'k')
plots(0,0.9,10,y0,121,'r','r--')
plots(0,0.9,20,y0,121,'g','g--')
plots(0,0.9,30,y0,121,'b','b--')
plots(0,0.9,40,y0,121,'c','c--')
plots(0,0.9,50,y0,121,'y','y--')
title('Numerical solution')
xlabel('x')
ylabel('f(x)')
legend(['Analytic', 'Euler N = 10', 'Heun N = 10', 'Euler N = 20', 'Heun N = 20', 'Euler N = 30', 'Heun N = 30', 'Euler N = 40', 'Heun N = 40', 'Euler N = 50', 'Heun N = 50'],2)
for j = 2:2:1000
x = linspace(0,0.9,j)'
h = x(2)-x(1)
y(1,1) = y0
y(1,2) = y0
for i = 1:1:length(x)-1
y(i+1,1) = euler(y(i,1),x(i+1),h,f)
y(i+1,2) = heun(y(i,2),x(i+1),h,f)
end
eps(j/2,1) = abs(y($,1)-f_analytic(0.9))
eps(j/2,2) = abs(y($,2)-f_analytic(0.9))
end
x = linspace(2,1000,500)'
subplot(122)
plot(log(x),log(eps(1:$,1)),'r')
plot(log(x),log(eps(1:$,2)),'b')
title('Convergence')
legend('Euler''s method', 'Heun''s method')
xlabel('ln(N)')
ylabel('ln(ε)')
endfunction
bsp17()
|
0d65f381efd957e3082a6a79f37a6e595cfe4618 | 5c0124a56cb43a2890e25fbc6e2556d25ff9c4bb | /Exercise_01.sce | c7b02cd16a417dc7e4014c3894ffd3c0eb037a45 | [] | no_license | wiiwins/Risk-Management | d970aaa2c44409f9c73fd44b8bcfbb25e3e83c3e | 46c547e9d14019dde274f232fc6354641de245ff | refs/heads/master | 2020-09-01T17:12:36.665964 | 2019-11-26T21:00:32 | 2019-11-26T21:00:32 | 219,013,277 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 843 | sce | Exercise_01.sce | // C-Exercise 01
// Nattawut Phanrattinon
// Jurian Kahl
// (a) Import data
data = csvRead('dax_data.csv', ';', '.','double',[],[],[],1);
ts = data(:,2);
// Plot time series data
plot(ts);
title('Daily Closing Prices'); xlabel('number of observation'); ylabel('DAX closing prices');
// (b) Compute daily log returns
x=diff(log(ts));
scf;,clf;
// Plot daily log returns
plot(x);
title('DAX daily Log Returns'); ylabel('log returns');
// (c) Plot histogram of the log returns using 30 intervals
scf;clf;
histplot(30,x);
title ('Histogram Of DAX daily Log Returns'); xlabel('log returns');
// (d) Compute mu and sigma
mu = mean(x);
sigma = sqrt(variance(x));
// (e) Plot density of a normal distribution using mu & sigma from (d)
x_density = min(x):0.007:max(x)
plot(x_density,1/(sqrt(2*%pi)*sigma)*exp(-((x_density-mu)/sigma)^2/2))
|
ae9f3a7adf378b340299ef6e8dd4b13acec2f8c5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1868/CH3/EX3.8/Ch03Ex8.sce | 3a753abb0f8e319290f706d28c84227f42e5b7ea | [] | 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,639 | sce | Ch03Ex8.sce | // Scilab code Ex3.8: Pg 93 (2005)
clc; clear;
// Part (a)
h = 6.63e-34; // Plank's constant, Js
q = 1.6e-19; // Electric charge, C
m_e = 9.11e-31; // Mass of electron, kg
c = 3e+08; // Velocity of light, m/s
theta = ((%pi)/180)*90; // Angle, radians
delta_lamda = (h/(m_e*c)*(1-cos(theta))); // Compton shift, Angstrom
lamda_C = 0.0106; // Wavelength of gamma-rays from Cobalt,
f_dl_C = delta_lamda/ lamda_C; // Fractional change in wavelength of gamma rays from cobalt
printf("\nFractional change in wavelength of gamma rays from Cobalt = %4.2f", f_dl_C*1e+10);
lamda_Mo = 0.712; // Wavelength of gamma-rays from Molybdenum, Angstrom
f_dl_Mo = delta_lamda/ lamda_Mo; // Fractional change in wavelength of gamma rays from Molybdenum
printf("\nFractional change in wavelength of gamma rays from Molybdenum = %6.4f", f_dl_Mo*1e+10);
lamda_Hg = 5461; // Wavelength of gamma-rays from Mercury, Angstrom
f_dl_Hg = delta_lamda/ lamda_Hg; // Fractional change in wavelength of gamma rays from mercury
printf("\nFractional change in wavelength of gamma rays from Mercury = %4.2fe-06", f_dl_Hg*1e+16);
// Part (b)
lamda = 0.712e-10; // Wavelength of X-rays, Angstrom
E = (h*c)/(q*lamda); // Energy of X-rays' photon, eV
printf("\nEnergy of X-rays photon = %5.0f eV\n", E);
// Result
// Fractional change in wavelength of gamma rays from Cobalt = 2.29
// Fractional change in wavelength of gamma rays from Molybdenum = 0.0341
// Fractional change in wavelength of gamma rays from Mercury = 4.45fe-06
// Energy of X-rays photon = 17460 eV
|
862dfc2b5cb883ca3c01000690e2b808710fd2ad | 36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd | /R-99 Close Fast Strafes.sce | 899ee978e017a4046caf853e1ba2df4fcb6c319c | [] | no_license | Ahmad6543/Scenarios | cef76bf19d46e86249a6099c01928e4e33db5f20 | 6a4563d241e61a62020f76796762df5ae8817cc8 | refs/heads/master | 2023-03-18T23:30:49.653812 | 2020-09-23T06:26:05 | 2020-09-23T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 36,919 | sce | R-99 Close Fast Strafes.sce | Name=R-99 Close Fast Strafes
PlayerCharacters=Apex purple armor R-99
BotCharacters=Apex_bot_close.bot
IsChallenge=true
Timelimit=60.0
PlayerProfile=Apex purple armor R-99
AddedBots=Apex_bot_close.bot
PlayerMaxLives=0
BotMaxLives=0
PlayerTeam=1
BotTeams=2
MapName=boxer.map
MapScale=2.0
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=true
InvincibleBots=false
Timescale=1.0
BlockHealthbars=false
TimeRefilledByKill=0.0
ScoreToWin=50000.0
ScorePerDamage=50.0
ScorePerKill=200.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=0.0
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=true
ScoreMultDamageEfficiency=false
ScoreMultKillEfficiency=false
GameTag=Apex
WeaponHeroTag=R-99
DifficultyTag=3
AuthorsTag=
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=false
Description=R-99 against a hard to hit target.
GameVersion=2.0.1.2
ScorePerDistance=0.0
MBSEnable=false
MBSTime1=0.25
MBSTime2=0.5
MBSTime3=0.75
MBSTime1Mult=1.0
MBSTime2Mult=2.0
MBSTime3Mult=3.0
MBSFBInstead=false
MBSRequireEnemyAlive=false
LockFOVRange=false
LockedFOVMin=60.0
LockedFOVMax=120.0
LockedFOVScale=Clamped Horizontal
[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
AimingStyle=Original
ScanSpeedMultiplier=1.0
MaxSeekPitch=30.0
MaxSeekYaw=30.0
AimingSpeed=5.0
MinShootDelay=0.3
MaxShootDelay=0.6
[Bot Profile]
Name=Apex_bot_close
DodgeProfileNames=Short Strafes Apex;Close Very Short Strafes;Circle Strafe
DodgeProfileWeights=1.0;1.0;1.0
DodgeProfileMaxChangeTime=5.0
DodgeProfileMinChangeTime=1.0
WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=true
CharacterProfile=Apex purple armor no gun
SeeThroughWalls=false
NoDodging=false
NoAiming=false
AbilityUseTimer=0.1
UseAbilityFrequency=1.0
UseAbilityFreqMinTime=0.3
UseAbilityFreqMaxTime=0.6
ShowLaser=false
LaserRGB=X=0.810 Y=0.200 Z=0.000
LaserAlpha=1.0
[Character Profile]
Name=Apex purple armor R-99
MaxHealth=200.0
WeaponProfileNames=;R99;;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=4.0
MovementType=Base
MaxSpeed=1200.0
MaxCrouchSpeed=500.0
Acceleration=7000.0
AirAcceleration=16000.0
Friction=4.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=0.771 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=0.888 Z=0.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cuboid
MainBBHeight=260.0
MainBBRadius=50.0
MainBBHasHead=true
MainBBHeadRadius=18.0
MainBBHeadOffset=0.0
MainBBHide=true
ProjBBType=Cylindrical
ProjBBHeight=260.0
ProjBBRadius=55.0
ProjBBHasHead=true
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.5
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=0.75
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
TerminalVelocity=0.0
CharacterModel=Meso
CharacterSkin=Default
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
ViewBobTime=0.0
ViewBobAngleAdjustment=0.0
ViewBobCameraZOffset=0.0
ViewBobAffectsShots=false
IsFlyer=false
FlightObeysPitch=false
FlightVelocityUp=800.0
FlightVelocityDown=800.0
[Character Profile]
Name=Apex purple armor no gun
MaxHealth=200.0
WeaponProfileNames=;;;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=4.0
MovementType=Base
MaxSpeed=1200.0
MaxCrouchSpeed=500.0
Acceleration=7000.0
AirAcceleration=16000.0
Friction=4.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=0.771 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=0.888 Z=0.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cuboid
MainBBHeight=260.0
MainBBRadius=55.0
MainBBHasHead=true
MainBBHeadRadius=18.0
MainBBHeadOffset=0.0
MainBBHide=true
ProjBBType=Cylindrical
ProjBBHeight=260.0
ProjBBRadius=55.0
ProjBBHasHead=true
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=[ADM]Sprint.abilsprint;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=0.75
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.5
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
TerminalVelocity=0.0
CharacterModel=Meso
CharacterSkin=Default
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
ViewBobTime=0.0
ViewBobAngleAdjustment=0.0
ViewBobCameraZOffset=0.0
ViewBobAffectsShots=false
IsFlyer=false
FlightObeysPitch=false
FlightVelocityUp=800.0
FlightVelocityDown=800.0
[Dodge Profile]
Name=Short Strafes Apex
MaxTargetDistance=700.0
MinTargetDistance=600.0
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.2
MaxLRTimeChange=0.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=false
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=50.0
DamageReactionResetTimer=0.5
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.3
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.1
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
WaypointLogic=Ignore
WaypointTurnRate=200.0
MinTimeBeforeShot=0.15
MaxTimeBeforeShot=0.25
IgnoreShotChance=0.0
ForwardTimeMult=1.0
BackTimeMult=1.0
DamageReactionChangesFB=false
[Dodge Profile]
Name=Close Very Short Strafes
MaxTargetDistance=700.0
MinTargetDistance=0.0
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.1
MaxLRTimeChange=0.2
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=false
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=50.0
DamageReactionResetTimer=0.5
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.5
MaxProfileChangeTime=0.9
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
WaypointLogic=Ignore
WaypointTurnRate=200.0
MinTimeBeforeShot=0.15
MaxTimeBeforeShot=0.25
IgnoreShotChance=0.0
ForwardTimeMult=1.0
BackTimeMult=1.0
DamageReactionChangesFB=false
[Dodge Profile]
Name=Circle Strafe
MaxTargetDistance=1245.901611
MinTargetDistance=373.770477
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.2
MaxLRTimeChange=0.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.5
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Oppose
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
WaypointLogic=Ignore
WaypointTurnRate=200.0
MinTimeBeforeShot=0.15
MaxTimeBeforeShot=0.25
IgnoreShotChance=0.0
ForwardTimeMult=1.0
BackTimeMult=1.0
DamageReactionChangesFB=false
[Weapon Profile]
Name=R99
Type=Hitscan
ShotsPerClick=1
DamagePerShot=11.0
KnockbackFactor=0.0
TimeBetweenShots=0.05556
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=1.0
HeadshotCapable=true
HeadshotMultiplier=1.5
MagazineMax=27
AmmoPerShot=1
ReloadTimeFromEmpty=0.6
ReloadTimeFromPartial=0.1
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=11.0
DelayBeforeShot=0.0
ProjectileGraphic=Ball
VisualLifetime=10.0
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=true
ADSZoomDelay=0.1
ADSZoomSensFactor=1.0
ADSMoveFactor=0.86
ADSStartDelay=0.0
ShootSoundCooldown=0.0001
HitSoundCooldown=0.0001
HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.0
RecoilNegatable=false
DecalType=1
DecalSize=10.0
DelayAfterShooting=0.0
BeamTracksCrosshair=true
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.1
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=true
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=27
CancelReloadOnKill=true
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=78.260002
ADSFOVScale=Apex Legends
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.1
WeaponModel=Machine Pistol
WeaponAnimation=Primary
UseIncReload=false
IncReloadStartupTime=0.0
IncReloadLoopTime=0.0
IncReloadAmmoPerLoop=1
IncReloadEndTime=0.0
IncReloadCancelWithShoot=true
WeaponSkin=Default
ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000
SpreadDecayDelay=0.0
ReloadBeforeRecovery=true
3rdPersonWeaponModel=Pistol
3rdPersonWeaponSkin=Default
ParticleMuzzleFlash=Surge Pistols
ParticleWallImpact=None
ParticleBodyImpact=None
ParticleProjectileTrail=None
ParticleHitscanTrace=Bullet
ParticleMuzzleFlashScale=1.0
ParticleWallImpactScale=1.0
ParticleBodyImpactScale=1.0
ParticleProjectileTrailScale=1.0
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.5
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=true
PSRLoopStartIndex=0
PSRViewRecoilTracking=1.0
PSRCapUp=90.0
PSRCapRight=90.0
PSRCapLeft=90.0
PSRTimeToPeak=0.17
PSRResetDegreesPerSec=38.0
PSR0=0.3655,0.1275
PSR1=0.3655,-0.0085
PSR2=0.3145,-0.1785
PSR3=0.51,0.136
PSR4=0.714,0.2125
PSR5=0.5865,0.2125
PSR6=0.527,-0.2125
PSR7=0.4845,0.1955
PSR8=0.493,-0.017
PSR9=0.442,-0.221
PSR10=0.4165,-0.3485
PSR11=0.3655,-0.068
PSR12=0.4675,-0.1275
PSR13=0.2295,0.085
PSR14=0.051,0.374
PSR15=0.1105,0.187
PSR16=0.0595,0.3485
PSR17=0.2125,-0.3485
PSR18=0.0,-0.391
PSR19=0.1105,-0.4165
PSR20=0.102,-0.289
PSR21=0.1275,-0.374
PSR22=0.051,0.2805
PSR23=0.0085,0.5015
PSR24=-0.0085,0.4165
PSR25=-0.0085,0.2295
UsePerBulletSpread=false
PBS0=0.0,0.0
[Sprint Ability Profile]
Name=[ADM]Sprint
MaxCharges=1.0
ChargeTimer=0.1
ChargesRefundedOnKill=0.0
DelayAfterUse=0.0
FullyAuto=false
AbilityDuration=0.0
BlockAttackWhileSprinting=false
AbilityBlockedWhenAttacking=true
SpeedModifier=1.333333
45DegreeSprint=true
90DegreeSprint=false
135DegreeSprint=false
180DegreeSprint=false
TapToSprint=true
Block45DegreesWhenSprinting=false
AIUseInCombat=true
AIUseOutOfCombat=true
AIUseOnGround=true
AIUseInAir=false
AIReuseTimer=0.1
AIMinSelfHealth=0.0
AIMaxSelfHealth=100.0
AIMinTargHealth=0.0
AIMaxTargHealth=100.0
AIMinTargDist=250.0
AIMaxTargDist=10000.0
AIMaxTargFOV=90.0
AIDamageReaction=true
AIDamageReactionIgnoreChance=0.0
AIDamageReactionMinDelay=0.18
AIDamageReactionMaxDelay=0.25
AIDamageReactionCooldown=2.0
AIDamageReactionThreshold=1.0
AIDamageReactionResetTimer=0.1
[Map Data]
reflex map version 8
global
entity
type WorldSpawn
String32 targetGameOverCamera end
UInt8 playersMin 1
UInt8 playersMax 16
brush
vertices
-576.000000 0.000000 256.000000
448.000000 0.000000 256.000000
448.000000 0.000000 -768.000000
-576.000000 0.000000 -768.000000
-576.000000 -16.000000 256.000000
448.000000 -16.000000 256.000000
448.000000 -16.000000 -768.000000
-576.000000 -16.000000 -768.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-576.000000 272.000000 -768.000000
448.000000 272.000000 -768.000000
448.000000 272.000000 -784.000000
-576.000000 272.000000 -784.000000
-576.000000 0.000000 -768.000000
448.000000 0.000000 -768.000000
448.000000 0.000000 -784.000000
-576.000000 0.000000 -784.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
-576.000000 272.000000 272.000000
448.000000 272.000000 272.000000
448.000000 272.000000 256.000000
-576.000000 272.000000 256.000000
-576.000000 0.000000 272.000000
448.000000 0.000000 272.000000
448.000000 0.000000 256.000000
-576.000000 0.000000 256.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
448.000000 272.000000 256.000000
464.000000 272.000000 256.000000
464.000000 272.000000 -768.000000
448.000000 272.000000 -768.000000
448.000000 0.000000 256.000000
464.000000 0.000000 256.000000
464.000000 0.000000 -768.000000
448.000000 0.000000 -768.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-592.000000 272.000000 256.000000
-576.000000 272.000000 256.000000
-576.000000 272.000000 -768.000000
-592.000000 272.000000 -768.000000
-592.000000 0.000000 256.000000
-576.000000 0.000000 256.000000
-576.000000 0.000000 -768.000000
-592.000000 0.000000 -768.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-592.000000 704.000000 256.000000
-576.000000 704.000000 256.000000
-576.000000 704.000000 -768.000000
-592.000000 704.000000 -768.000000
-592.000000 272.000000 256.000000
-576.000000 272.000000 256.000000
-576.000000 272.000000 -768.000000
-592.000000 272.000000 -768.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
448.000000 704.000000 256.000000
464.000000 704.000000 256.000000
464.000000 704.000000 -768.000000
448.000000 704.000000 -768.000000
448.000000 272.000000 256.000000
464.000000 272.000000 256.000000
464.000000 272.000000 -768.000000
448.000000 272.000000 -768.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
-576.000000 704.000000 -768.000000
448.000000 704.000000 -768.000000
448.000000 704.000000 -784.000000
-576.000000 704.000000 -784.000000
-576.000000 272.000000 -768.000000
448.000000 272.000000 -768.000000
448.000000 272.000000 -784.000000
-576.000000 272.000000 -784.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
-576.000000 704.000000 272.000000
448.000000 704.000000 272.000000
448.000000 704.000000 256.000000
-576.000000 704.000000 256.000000
-576.000000 272.000000 272.000000
448.000000 272.000000 272.000000
448.000000 272.000000 256.000000
-576.000000 272.000000 256.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
-576.000000 720.000000 256.000000
448.000000 720.000000 256.000000
448.000000 720.000000 -768.000000
-576.000000 720.000000 -768.000000
-576.000000 704.000000 256.000000
448.000000 704.000000 256.000000
448.000000 704.000000 -768.000000
-576.000000 704.000000 -768.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-128.000000 16.000000 -320.000000
0.000000 16.000000 -320.000000
0.000000 16.000000 -336.000000
-128.000000 16.000000 -336.000000
-128.000000 0.000000 -320.000000
0.000000 0.000000 -320.000000
0.000000 0.000000 -336.000000
-128.000000 0.000000 -336.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
0.000000 16.000000 -192.000000
16.000000 16.000000 -192.000000
16.000000 16.000000 -320.000000
0.000000 16.000000 -320.000000
0.000000 0.000000 -192.000000
16.000000 0.000000 -192.000000
16.000000 0.000000 -320.000000
0.000000 0.000000 -320.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
-144.000000 16.000000 -192.000000
-128.000000 16.000000 -192.000000
-128.000000 16.000000 -320.000000
-144.000000 16.000000 -320.000000
-144.000000 0.000000 -192.000000
-128.000000 0.000000 -192.000000
-128.000000 0.000000 -320.000000
-144.000000 0.000000 -320.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-128.000000 16.000000 -176.000000
0.000000 16.000000 -176.000000
0.000000 16.000000 -192.000000
-128.000000 16.000000 -192.000000
-128.000000 0.000000 -176.000000
0.000000 0.000000 -176.000000
0.000000 0.000000 -192.000000
-128.000000 0.000000 -192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
0.000000 16.000000 -176.000000
0.000000 0.000000 -192.000000
16.000000 16.000000 -192.000000
0.000000 0.000000 -176.000000
16.000000 0.000000 -192.000000
0.000000 16.000000 -192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 3 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 1 5 0x00000000
brush
vertices
-128.000000 0.000000 -176.000000
-128.000000 16.000000 -176.000000
-128.000000 16.000000 -192.000000
-144.000000 0.000000 -192.000000
-128.000000 0.000000 -192.000000
-144.000000 16.000000 -192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0x00000000
brush
vertices
-144.000000 16.000000 -320.000000
-128.000000 16.000000 -320.000000
-128.000000 16.000000 -336.000000
-144.000000 0.000000 -320.000000
-128.000000 0.000000 -336.000000
-128.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 0 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 1 5 0x00000000
brush
vertices
0.000000 16.000000 -320.000000
16.000000 16.000000 -320.000000
0.000000 0.000000 -336.000000
0.000000 0.000000 -320.000000
16.000000 0.000000 -320.000000
0.000000 16.000000 -336.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 5 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 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 4 2 5 0x00000000
brush
vertices
0.000000 704.000000 -192.000000
16.000000 704.000000 -192.000000
16.000000 704.000000 -320.000000
0.000000 704.000000 -320.000000
0.000000 16.000000 -192.000000
16.000000 16.000000 -192.000000
16.000000 16.000000 -320.000000
0.000000 16.000000 -320.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
-144.000000 704.000000 -192.000000
-128.000000 704.000000 -192.000000
-128.000000 704.000000 -320.000000
-144.000000 704.000000 -320.000000
-144.000000 16.000000 -192.000000
-128.000000 16.000000 -192.000000
-128.000000 16.000000 -320.000000
-144.000000 16.000000 -320.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
-128.000000 704.000000 -320.000000
0.000000 704.000000 -320.000000
0.000000 704.000000 -336.000000
-128.000000 704.000000 -336.000000
-128.000000 16.000000 -320.000000
0.000000 16.000000 -320.000000
0.000000 16.000000 -336.000000
-128.000000 16.000000 -336.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
-128.000000 704.000000 -176.000000
0.000000 704.000000 -176.000000
0.000000 704.000000 -192.000000
-128.000000 704.000000 -192.000000
-128.000000 16.000000 -176.000000
0.000000 16.000000 -176.000000
0.000000 16.000000 -192.000000
-128.000000 16.000000 -192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
0.000000 704.000000 -176.000000
0.000000 16.000000 -192.000000
16.000000 704.000000 -192.000000
0.000000 16.000000 -176.000000
16.000000 16.000000 -192.000000
0.000000 704.000000 -192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 5 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 3 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 0 5 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 1 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
-128.000000 16.000000 -176.000000
-128.000000 704.000000 -176.000000
-128.000000 704.000000 -192.000000
-144.000000 16.000000 -192.000000
-128.000000 16.000000 -192.000000
-144.000000 704.000000 -192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 2 5 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 5 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
-144.000000 704.000000 -320.000000
-128.000000 704.000000 -320.000000
-128.000000 704.000000 -336.000000
-144.000000 16.000000 -320.000000
-128.000000 16.000000 -336.000000
-128.000000 16.000000 -320.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 5 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 0 2 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 1 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
0.000000 704.000000 -320.000000
16.000000 704.000000 -320.000000
0.000000 16.000000 -336.000000
0.000000 16.000000 -320.000000
16.000000 16.000000 -320.000000
0.000000 704.000000 -336.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 5 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 4 2 5 0xff8f7d6a internal/editor/textures/editor_clip
entity
type PlayerSpawn
Vector3 position -64.000000 0.000000 -736.000000
Bool8 teamA 0
entity
type CameraPath
UInt32 entityIdAttachedTo 5
UInt8 posLerp 2
UInt8 angleLerp 2
entity
type Effect
Vector3 position 0.000000 256.000000 0.000000
String64 effectName internal/misc/reflectionprobe
entity
type Target
Vector3 position 352.000000 256.000000 224.000000
Vector3 angles -135.000000 30.000000 0.000000
String32 name end
entity
type PlayerSpawn
Vector3 position -64.000000 0.000000 224.000000
Vector3 angles 180.000000 0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position 416.000000 0.000000 -256.000000
Vector3 angles 270.000000 0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position -544.000000 0.000000 -256.000000
Vector3 angles 90.000000 0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position -64.000000 0.000000 -256.000000
Vector3 angles 90.000000 0.000000 0.000000
Bool8 teamB 0
|
f2507abb62845aa568bd9de176df0c8722369c9f | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronics_Engineering_P._Raja_2150.zip/Electronics_Engineering_P._Raja_2150/CH1/EX1.13/ex1_13.sce | 06fefdb17a333db4940c2b9dd58efcb4a425acad | [] | 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 | 170 | sce | ex1_13.sce | errcatch(-1,"stop");mode(2);// Exa 1.13
;
;
// Given data
V1 = 12;// in V
V2 = 0.3;// in V
V_o = V1-V2;// in V
disp(V_o,"The output voltage in V is");
exit();
|
631cf89837468a0236d8d8d402e1723a48ac8991 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2081/CH9/EX9.16/Ex9_16.sce | 4a13d20b9d2fbda5b56077dac19703b91db7ebab | [] | 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 | 295 | sce | Ex9_16.sce | Bt=12.5*10^6
Bc=200*10^3
Ns=8
N=Bt/Bc
Ns=8
Nu=N*Ns
K=4//frequency reuse factor
SysC=Nu/K//system capacity
M=(Bt/Bc)*Ns*(1/K)//system capacity using alternate method
disp(SysC,'System capacity per cell in (users/cell)')
disp(M,'System capacity per cell,M,in (users/cell) using alternate method')
|
b7b29760299cb9d7c2625c519396272028139fe1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2409/CH13/EX13.1/Ex13_1.sce | 434a0021f6f0311dbed1c932db8e09f6acefd2c4 | [] | 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 | 440 | sce | Ex13_1.sce | //Variable Declaration
EIRP1=34 //desired carrier EIRP from satellite(dB)
G1=44 // ground station receiving antenna gain(dB)
G2=24.47 //Gain in desired direction(dB)
EIRP2=34 //EIRP by interfering satellite(dB)
PD=4 //Polarization discrimination(dB)
//Calculation
CIR=EIRP1-EIRP2+G1-G2+PD //Carrier to Interference ratio(dB)
//Result
printf("The Carrier to interfernce ratio at the ground receiving antenna is %.2f dB",CIR)
|
894988a02433a678f2cd45abc3caba118c032705 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2159/CH2/EX2.14/214.sce | 999bcf6d6dcdc72e790aae3f6234730df8193062 | [] | 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 | 254 | sce | 214.sce | // problem 2.14
l=60
b=9
w=16*1000000
w1=160*1000
y=6
q=3
s.p=10104
i=0.75*l*b*b*b/12
v=w/s.p
bm=i/v
gm=(w1*y)/(w*tand(q))
mcd=2-bm
cogd=gm+mcd
disp(gm,"metacentric height")
disp(cogd,"position of centre of gravity below the water line")
|
87dcb463622833004309e4465dd21445fc854489 | 449d555969bfd7befe906877abab098c6e63a0e8 | /479/CH6/EX6.0/Chapter_6.sce | 18c0234ecf61ad3e57c5cf36fcfb78383b2281c0 | [] | 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 | 191 | sce | Chapter_6.sce | //Chemical Engineering Thermodynamics
//Chapter 6
//Thermodynamic Relations
clear;
clc;
//Given
//The chapter does not contain any example which involve numerical computation
//end |
433cb5d8293025206072a333c61c248c19869ebc | d7087cf730b37f76170323e080c090f8094979ac | /test/parser/a2.tst | 5348c3f0a6448b453decac2dd1d37bd61ed48217 | [] | no_license | VladimirMeshcheriakov/42sh | 025dffe358b86f48eaf7751a5cb08d4d5d5366c4 | 52d782255592526d0838bc40269f6e71f6a51017 | refs/heads/master | 2023-03-15T17:26:20.575439 | 2015-06-26T12:44:05 | 2015-06-26T12:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 184 | tst | a2.tst | <cmd>
../build/42sh</cmd>
<ref>
bash</ref>
<stdin>
while ! ls;
do
while ! ls;
do
while ! ls;
do
while ! ls;
do
echo a ne pas ecrire;
done;
done;
done;
done;
echo a ecrire;
</stdin>
|
8d2714ad27157f7f553a18b29a7dbbefc5294138 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH4/EX4.41/41.sce | 48163c0bbea07a5a050420ebdd0ac6f9c01ef258 | [] | 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 | 314 | sce | 41.sce | clc
m=220/60; //kg/s
C1=320; //m/s
p1=6*10^5; //N/m^2
u1=2000*10^3; //J/kg
v1=0.36; //m^3/kg
C2=140; //m/s
p2=1.2*10^5; //N/m^2
u2=1400*10^3; //J/kg
v2=1.3; //m^3/kg
Q=100*10^3; //J/s
W=(m*[(u1-u2)+ (p1*v1 - p2*v2) + (C1^2-C2^2)/2] -Q)/10^6;
disp("power capacity of the system = ")
disp(W)
disp("MW") |
d15857d28cb2c0a8f1654e07cced548dc2140254 | 0ac35cb9a05dd4a300456b1570d4a79e5bde2e95 | /LMS_Identification_System.sce | 3e66528f390cfd40349cf7c859ee5d8ec3147186 | [] | no_license | nardiniqueiroz/Adaptative-Filtering | 1b35ffbb9f598cfcd4260d12a5f13b00f4490569 | 5dbb78e89d25447af51b2d054df764328c1c53e8 | refs/heads/master | 2021-01-05T17:40:07.176874 | 2020-02-17T11:48:58 | 2020-02-17T11:48:58 | 241,092,953 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 731 | sce | LMS_Identification_System.sce | //identificação de sistemas utilizando LMS
clear;
clc;
rand("normal");
N = 2000;
hn = [1.2 0.8 0.6];
sigma1 = 0.2;
E = rand(1,N);
xn = filter(hn,1,E)';
W = [1 2 3];
n = sigma1*rand(1,N);
rx = xcorr(xn,2,'biased');
Rx = [rx(3:5) rx(2:4) rx(1:3)];
tr = Rx(1,1)+Rx(2,2)+Rx(3,3);
[Q,lambda]=spec(Rx);
lambdamax=max(lambda);
// Computacao iterativa
c = 0.1
mi = c/(2*lambdamax+tr);
wn = [0 0 0]'; // filtro unitario inicial
d = filter(W,1,xn)+n';
w = zeros(3,N);
xb = [0 0 0]';
for n=1:length(xn)
xb = [xn(n);xb(1:2)];
yn = wn'*xb;
y(n) = yn;
e(n) = d(n)-y(n);
// calculo do grad estimado
grade = -2*e(n)*xb;
wn = wn - mi*grade;
w(:,n) = wn
end
plot2d(w');
|
d0d8152be8724014a18ee1986d402b550c1c253f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3543/CH2/EX2.09/Ex2_9.sce | 79f0c98f759786fbd32c76cf2811bed52b360e1f | [] | 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 | 540 | sce | Ex2_9.sce | // Example 2.9
// Calculation of Core radius
// Page no 481
clc;
clear;
//Given data
lambda=0.85*10^-6; // Wavelength of fiber
delta=0.015; // Relative refractive index
n1=1.48; // Refractive index of core
v=2.403; // Normalized frequency for single mode fiber
// Computation of core radius
a=v*lambda/(2*%pi*n1*sqrt(2*delta));
a=a*10^6;
//Displaying result in the command window
printf("\n Radius of core (in micrometer) = %0.1f ",a);
|
5f65b90f7bb8dece2122326b8d6c13b7aa6505c3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1985/CH4/EX4.4/Chapter4_Example4.sce | 3559148f51642f3f0e0f4df1928d97467f5c1c3c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 519 | sce | Chapter4_Example4.sce | clc
clear
//Input data
w=[5000,5100]//Wavelengths of light in Armstrongs
N=6000//Number of lines drawn on the grating per cm
n=1//Order of diffraction
F=1//Focal length of the lens in m
//Calculations
q1=asind(N*100*n*w(1)*10^-10)//Angle of diffraction for D1 line in degrees
q2=asind(N*100*n*w(2)*10^-10)//Angle of diffraction for D1 line in degrees
x=F*(tand(q2)-tand(q1))*1000//Seperation of the two lines in mm
//Output
printf('Seperation of two lines in the first order spectrum is %3.1f mm',x)
|
17e8d4df8ad187903755e9f1059e7b296c4b1e48 | 3ab7c3ba0b53c896747be95b21d2a39dc0ba021a | /DifDiv.sci | c8ad12238021a28fc540ac8556894d5f05a4811b | [] | no_license | Farber98/MetodosNumericos | 0752f090eb596926f05bff0730a088eb70e77033 | 5c1be0d0e8274d204b41d0b91778847e6469e6bb | refs/heads/master | 2021-04-23T12:58:07.339435 | 2020-03-25T08:41:32 | 2020-03-25T08:41:32 | 249,926,955 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 491 | sci | DifDiv.sci | function [tabla]= diferencias(X,Y)
// make table of divided differences
n=length(x); // Cantidad de puntos.
tabla=zeros(n,n); //Defino una matriz de ceros. La dimension nos la da la cantidad de puntos.
tabla(:,1)=Y; //El primer valor va directo por definicion.
for j=2:n //Defino dos punteros
for i=j:n
tabla(i,j)=(tabla(i,j-1)-tabla(i-1,j-1))/(X(i)-X(i-j+1)); //Realizo diferencias divididas hacia adelante.
end
end
endfunction;
|
9aa234119a0416375a328a3722528e87a20b71e3 | 717ddeb7e700373742c617a95e25a2376565112c | /806/DEPENDENCIES/46.sci | 3d5eebf3982e25b9f1bc218faf539ce13b46a9ef | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 79 | sci | 46.sci | d1=6//inch
d2=4//inches
a=3//lb/inch^2(p1-p2)
s=0.9//specific gravity of oil |
1e266b304bfdc1fac97539c550a0a231ad699798 | 449d555969bfd7befe906877abab098c6e63a0e8 | /530/CH2/EX2.9/example_2_9.sci | 3bb790282aae3e10fd2fb7f141f127388114d2a3 | [] | 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,056 | sci | example_2_9.sci | clear all;
clc;
// A Textbook on HEAT TRANSFER by S P SUKHATME
// Chapter 2
// Heat Conduction in Solids
// Example 2.9
// Page 51
printf("Example 2.9, Page 51 \n\n")
k = 330; //thermal conductivity in W/m K
a = 95*10^(-6); //thermal expansion coefficient
R = 0.01; //radius in meters
To = 77; //temperature in kelvins
Tf = 273+50; //temperature in kelvins
theta1 = To - Tf;
T = 273+10; //temperature in kelvins
theta = T - Tf;
h = 20; //heat transfer coefficient in W/m^2 K
printf("\n Theta1 = %d K",theta1);
printf("\n Theta = %d K ",theta);
printf("\n v/A = %.3f m",R/2);
printf("\n k/a = %.4f*10^(6) J/m^3 K",(k/a)*10^(-6));
time = (k/a)*(R/2)/h*log(theta1/theta);
printf("\n Time taken by the rod to heat up = %.1f secs",time);
Bi = h*R/k;
printf("\n Biot number Bi = %.2f*10^(-4) ",Bi*10^4);
printf("\n Since Biot number is much less than 0.1,therefore assumption that internal temperature gradients are negligible is a good one");
|
42831e832220461031869b1607ec6a9f037ea944 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2223/CH18/EX18.12/Ex18_12.sce | 8645e5951b201d055e1521acf4b322c8b18dd803 | [] | 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,202 | sce | Ex18_12.sce | // scilab Code Exa 18.12 turbo prop Gas Turbine Engine
Ti=268.65; // in Kelvin
n_C=0.8; // Compressor Efficiency
c1=85; // entry velocity in m/s
m=50; // mass flow rate of air in kg/s
R=287;
gamma=1.4; // Specific Heat Ratio
cp=1.005; // Specific Heat at Constant Pressure in kJ/(kgK)
u=500/3.6; // speed of a turbo prop aircraft in m/s
delT=225; // temperature rise through the compressor(T02-T01) in K
pi=.701; // Initial Pressure in bar
n_D=0.88; // inlet diffuser efficiency
a_i=sqrt(gamma*R*Ti);
Mi=u/a_i;
Toi_i=1/0.965; // (Toi/Ti)from isentropic flow gas tables at Mi and gamma values
T01=Ti*Toi_i;
T1=T01-(0.5*(c1^2)/(cp*1e3));
//part(a)
T1s_i=1+n_D*((T1/Ti)-1); // (T1s/Ti)isentropic temperature ratio through the diffuser
p1_i=T1s_i^(gamma/(gamma-1)); // (p1s/pi)isentropic pressure ratio
p1=p1_i*pi;
delp_D=p1-pi;
disp("bar",delp_D,"(a)isentropic pressure rise through the diffuser is")
// part(b) compressor pressure ratio
T02s=T01+(delT*n_C);
r_oc=(T02s/T01)^(gamma/(gamma-1)); //compressor pressure ratio(p02/p01)
disp(r_oc,"(b)compressor pressure ratio is")
// part(c)
P=m*cp*delT;
disp("MW",P*1e-3,"(c)power required to drive the compressor is")
|
64cfb1ece8ff7868a058ea9eea32f9ddcab244c7 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set4/s_Digital_Communications_S._Sharma_1631.zip/Digital_Communications_S._Sharma_1631/CH4/EX4.27.iii/Ex4_27iii.sce | f265dd302f2ce11fba56f8ff1b64f16064f619ab | [] | 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 | 275 | sce | Ex4_27iii.sce | errcatch(-1,"stop");mode(2);//Caption: SNR
//Example 4.27.i
//page no 200
//Find Signal to quantization noise ratio
;
;
Nq=127.15*10^-6
Meansignal=2;
P=Meansignal/1;
SNR=P/Nq;
SNRq=10*log10(SNR);
disp("dB",SNRq,"Signal to quantization noise ratio");
exit();
|
dd415192aefe7e280e66799ea216a9df9650f8fc | 03fdeb823ea39a31e942680e8766f1cb6dc92a79 | /src/jering-vectorartkit-webclient/src/api/response-models/response-model.tst | dde2ab3085f0d6d7e3473a61f56d3508125de20a | [] | no_license | JeremyTCD/Vak | 53916423a3a0890b1062bbd2a853400e4e096943 | efab1826845c86bfb198ce58fd335376deb99579 | refs/heads/master | 2021-06-15T03:00:34.440354 | 2017-04-24T15:01:02 | 2017-04-24T15:01:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,419 | tst | response-model.tst | ${
using Typewriter.Extensions.Types;
using System.Text.RegularExpressions;
static string debugInfo = "";
string PrintDebugInfo(Class c){
return debugInfo;
}
Template(Settings settings)
{
settings.
IncludeProject("Jering.VectorArtKit.WebApi").
IncludeProject("Jering.Mvc");
settings.OutputFilenameFactory = file => {
return PascalToKebab($"{file.Classes.First().Name}.ts");
};
}
static string PascalToKebab(string value){
string extensionAdded = value.Replace("ResponseModel", ".response-model");
string dashesAdded = Regex.Replace(
extensionAdded,
"(?<!^)([A-Z])",
"-$1",
RegexOptions.Compiled);
return dashesAdded
.Trim()
.ToLower();
}
static List<string> ImportedInterfaces = new List<string>();
// Adds import statement for property type if necessary
static string ImportInterface(Property property){
string interfaceName = TypeExtensions.ClassName(property.Type);
if(!ImportedInterfaces.Contains(interfaceName))
{
ImportedInterfaces.Add(interfaceName);
return $"import {{{interfaceName}}} from './{PascalToKebab(interfaceName)}';";
}
else
{
return null;
}
}
static List<Type> AddedTypes = new List<Type>();
IEnumerable<Type> DefinedTypes(Class c)
{
AddedTypes.Clear();
List<Type> result = new List<Type>();
GetDependencies(c, null, result);
return result;
}
void GetDependencies(Class root, Type type, List<Type> types){
// Prevent duplicate interfaces
if(AddedTypes.Any(t => type != null && t.Name == type.Name)){
return;
}
else if(type != null)
{
AddedTypes.Add(type);
types.Add(type);
}
PropertyCollection properties = type == null ? root.Properties : type.Properties;
IEnumerable<Type> dependencies = properties.
Where(p => p.Type.Unwrap().IsDefined && !p.Type.Unwrap().IsEnumerable).
Select(p => p.Type.Unwrap());
foreach(Type t in dependencies){
GetDependencies(null, t, types);
}
}
}
$Classes(*ResponseModel)[
export interface $Name {$Properties[
$name?: $Type;]
}
$DefinedTypes[
export interface $Name { $Properties[
$name?: $Type;]
}]
$PrintDebugInfo
]
|
bceadb9a12c2e21874752791058614e8e035c9b6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /61/CH3/EX3.5/ex3_5.sce | 2ad6ac38736d0d02df0ce3b5a2c2fdfa08cd59bc | [] | 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 | 433 | sce | ex3_5.sce | //ex3.5
V_Z=5.1;
I_ZT=49*10^-3;
I_ZK=1*10^-3;
Z_Z=7;
R=100;
P_D_max=1;
//At I_ZK, output voltage
V_out=V_Z-(I_ZT-I_ZK)*Z_Z;
V_IN_min=I_ZK*R+V_out;
I_ZM=P_D_max/V_Z;
//at I_ZM, output voltage
V_out=V_Z+(I_ZM-I_ZT)*Z_Z;
V_IN_max=I_ZM*R+V_out;
disp(V_IN_max,'maximum input voltage in volts that can be regulated by the zener diode')
disp(V_IN_min,'minimum input voltage in volts that can be regulated by the zener diode') |
5adb24cd7d3de84c881829997425d2656ac8bfd1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH11/EX11.3.b/11_3_soln.sce | 6ff970a960dc16096c6ce364bb240c5d52ebe168 | [] | 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 | 456 | sce | 11_3_soln.sce | clc;
pathname=get_absolute_file_path('11_3_soln.sce')
filename=pathname+filesep()+'11_3_data.sci'
exec(filename)
// Solution:
// heat generation rate,
kW=((p*10^5)*Q)/1000; //kW
// oil flow-rate,
Q_kg_s=895*Q; //kg/s
// temperature increase,
T_increase=kW/(1.8*Q_kg_s); //deg C
// downward oil temperature,
T_downward=T_oil+T_increase; //deg C
// Results:
printf("\n Results: ")
printf("\n The downstream oil temperature is %.1f deg C.",T_downward)
|
f6cf5b7c795cab45866e582cd814f338f60569f9 | c645f66bc165dc95ee9fad51cb807fb3f87274bb | /exo6.sci | f43fb21fc7d7437b24f4624defb735a76e3a4982 | [] | no_license | Younes-97/TP-Calcul-Num-rique | 43faa872415b280b41b4a8e4f10887ce47de2616 | 098a68cb8e92586a75bf4dd20189c5a7efca6e59 | refs/heads/main | 2023-02-02T11:54:40.506903 | 2020-12-17T12:07:22 | 2020-12-17T12:07:22 | 318,046,472 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 404 | sci | exo6.sci | function [L,U]=mylu3b(A)
n=size(A,1)
for k=1:n-1
for i=k+1:n
m(i,k)=A(i,k)/A(k,k)
b(i)=b(i)-m(i,k)*b(k)
for j=k+1:n
A(i,j)=A(i,j)-m(i,k)*A(k,j);
end
end
end
//calcul de U par la fonction prédéfinie
U=triu(A)
//calcul de L par la fonction prédéfinie
L=tril(A)
endfunction
disp('L=',L)
disp('U=',U)
|
b72789e34762fc38ff7ea1dcb25be514dbc1dbc6 | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/tagrename.tst | 07bd37cd4e2af5cd9df896112f05ff83ed5651b3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | dougsong/reposurgeon | 394001c0da4c3503bc8bae14935808ffd6f45657 | ee63ba2b0786fa1b79dd232bf3d4c2fe9c22104b | refs/heads/master | 2023-03-09T15:22:45.041046 | 2023-02-25T08:33:06 | 2023-02-25T08:33:06 | 280,299,498 | 1 | 0 | NOASSERTION | 2023-02-25T08:33:08 | 2020-07-17T01:45:32 | Go | UTF-8 | Scilab | false | false | 74 | tst | tagrename.tst | ## Tag renaming test
read <sample1.fi
tag annotated rename foobar
write -
|
5f56693c76e22b5485d96d62696327879b8b9f44 | 449d555969bfd7befe906877abab098c6e63a0e8 | /181/CH7/EX7.57/example7_57.sce | 698f9309cf66c5462a8bb3aceeee48d7e1a2f0fd | [] | 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 | 557 | sce | example7_57.sce | // Calculate voltage gain Av
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 7-57 in page 359
clear; clc; close;
// Given data
gm=2*10^-3; // Transconductance in mA/V
rd=10*10^3; // Dynamic resistance in K-ohms
C=0.025*10^-6; // Capacitance in microF
// Calculation
Rl=(30*30)/(30+30);
Av=(-gm*rd*Rl*10^3)/(Rl+rd);
f1=1/(2*%pi*37.5*10^3*C);
Avl=Av/sqrt(1+(f1/(5*10^3))^2);
printf("(a)Av = %0.0f\n(b)Avl = %0.2f",Av,Avl);
// Result
// (a) Av = -30
// (b) Avl = -29.94 |
cdbd7c449d8f7795e1713d51efe73b8eda6fabad | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH17/EX17.4/Ex17_4.sce | 40276d2643e1f0c73d72b52df46d73ddeec700c4 | [] | 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,096 | sce | Ex17_4.sce | // Exa 17.4
//To calculate the cell radius.
clc;
clear all;
Pt=36;//Base station transmitted power in dBm
Pms=24;//mobile station transmitted power in dBm
Nms=8;//mobile station noise figure in dB
Nbs=5;//Base station nise figure in dB
Ga=18;//Base station transmit and receive antenna gain in dBi
Gm=0;//Mobile antenna gain in dBi
SNR=12;// in dB
Lc_TX=5;//BS transmit antenna cable, connector, and filter losses in dB
Lc_RX=2;//BS receiver antenna cable, connector, and filter losses in dB
Bodyloss=3;// Body losses at mobile
fading=10.2;// in dB
ThermalNoise=-174;// in dBm/Hz
Gdiversity=5;//Antenna diversity gain at BS in dB
//Assuming standard value of RF channel as
RFch=200*10^3; //in Hz
//solution
N=ThermalNoise+10*log10(RFch)+Nms;
Smin=N+SNR;
Smean=Smin+fading+Bodyloss;
Lp=Pt-Lc_TX+Ga-Smean;
N1=ThermalNoise+10*log10(RFch)+Nbs;
Smin=N1+SNR-Gdiversity;
Smean1=Smin+fading+Bodyloss;
Lp1=Pms-Smean1+Ga-Lc_RX;
disp("Using uplink path loss and Hata model to calculate cell radius");
R=10^((Lp1-133.2)/33.8);
printf(' Cell radius is %.1f km \n',R);
|
c01844c28192599196adb2eacd446f0b8bd655c8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2441/CH4/EX4.2/Ex4_2.sce | 2f59e7e8279f02f00e795c025159f8b5f1d54cdc | [] | 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,271 | sce | Ex4_2.sce | //Exa 4.2
clc;clear;close;
format('v',6);
Lt=3000;//kW//Total Load
pf=0.8;//Power factor Lagging
I=150;//A
ZA=0.4+%i*12;//ohm//synchronous impedence
ZB=0.5+%i*10;//ohm//synchronous impedence
Vt=6.6;//kV//Terminal Voltage
L=Lt/2;//kW//Load supplied by each machine
LA=L;//kW
LB=L;//kW
//LB=sqrt(3)*Vt*IB*cosd(theta_B);
theta_B=acosd(LB/sqrt(3)/Vt/I);//degree
IB=I*(cosd(theta_B)-%i*sind(theta_B));//A
I_total=Lt/sqrt(3)/Vt/pf;//A//Total Current
IA_plus_IB=I_total*(0.8-%i*0.6);//A
IA=IA_plus_IB-IB;//A
cos_thetaA=real(IA)/abs(IA);//lagging power factor
EA=Vt/sqrt(3)+IA*ZA/1000;//kV per phase
del_A=atand(imag(EA)/real(EA));//degree//Load Angle
emf_A=abs(EA);//kV per phase//Induced emf of machine A
EB=Vt/sqrt(3)+IB*ZB/1000;//kV per phase
del_B=atand(imag(EB)/real(EB));//degree//Load Angle
emf_B=abs(EB);//kV per phase//Induced emf of machine A
IA=abs(IA);//A
disp(IA,"Current on machine A(A) : ");
pfA=cos_thetaA;//power factor
disp(pfA,"Lagging power factor of machine A");
format('v',5);
disp(emf_A,"Induced emf of machine A(kV per phase)");
disp(del_A,"Load angle of machine A(degree)");
disp(del_B,"Load angle of machine B(degree)");
disp(emf_B,"Induced emf of machine B(kV per phase)");
//Answer in the textbook is not accurate.
|
6b5938d72355a97621be76495a842c7b0f0c9f68 | e806e966b06a53388fb300d89534354b222c2cad | /macros/autoCorrelator.sci | 991b903c6de5f815737df12d2183d611abc566f9 | [] | no_license | gursimarsingh/FOSSEE_Image_Processing_Toolbox | 76c9d524193ade302c48efe11936fe640f4de200 | a6df67e8bcd5159cde27556f4f6a315f8dc2215f | refs/heads/master | 2021-01-22T02:08:45.870957 | 2017-01-15T21:26:17 | 2017-01-15T21:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,376 | sci | autoCorrelator.sci | function relation = autoCorrelator(inputMatrix)
//Calculate 2-D auto correlation of input matrix
//
//Calling Sequence
// relation=autoCorrelator(inputMatrix)
//
//Parameters
// inputMatrix: input matrix to calculate auto correlation
//
//Description
//This function computes 2-D auto correlation of input matrix
//
// Examples
// rel = autoCorrelator([3 1;2 4]) // examples of use
[lhs rhs]=argn(0);
if rhs<1 then
error(msprintf("Wrong arguments: Need atleast one argument"))
end
[r,c,channels] = size(inputMatrix);
if channels<> 1 then
error(msprintf("Auto correlator function do not support more than two dimensions"))
elseif type(inputMatrix)<> 1
error(msprintf("Auto correlator function do not support input type %s",typeof(inputMatrix)))
end
Rep = zeros(r + r*2-2, c + c*2-2);
for x = r : r+r-1
for y = c : c+c-1
Rep(x,y) = inputMatrix(x-r+1, y-c+1);
end
end
conjMatrix=conj(inputMatrix);
//(mROw,mCols)- It indicates middle value of the output matrix
relation = zeros(r+r-1,c+c-1); //output matrix
//calculating only half of the output matrix
for x = 1 : r+r-1
for y = 1 : c+c-1
for i = 1 : r
for j = 1 : c
relation(x, y) = relation(x, y) + (Rep(x+i-1, y+j-1) * conjMatrix(i, j));
end
end
end
end
//Copying remainig values
endfunction
|
874ee80dc9f4f99a7f6391aa79fcdf215d0ad3f5 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/X06.prev.tst | 0ce1e96f0ac5de5a3b3b2d3c1909d1009a867ddb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 10,377 | tst | X06.prev.tst | # orig Korneck-minus.X06 (6*m^3*t*f+t*(t-m)*(m^4+m^2*t^2+t^4)+3*t*(t+m)*f^2)^3
# flat Korneck-minus.X06 3*f^2*m*t + 6*f*m^3*t - m^5*t + 3*f^2*t^2 + m^4*t^2 - m^3*t^3 + m^2*t^4 - m*t^5 + t^6
# merg Korneck-minus.X06 6*x_y_z^4 + 6*x_y_z^5
# orig Korneck-minus.X06 +(6*m^3*t*f-t*(t-m)*(m^4+m^2*t^2+t^4)-3*t*(t+m)*f^2)^3
# flat Korneck-minus.X06 - 3*f^2*m*t + 6*f*m^3*t + m^5*t - 3*f^2*t^2 - m^4*t^2 + m^3*t^3 - m^2*t^4 + m*t^5 - t^6
# merg Korneck-minus.X06 - 6*x_y_z^4 + 6*x_y_z^5
# orig Korneck-minus.X06 +(-6*t^3*m*f+m*(m-t)*(m^4+m^2*t^2+t^4)+3*m*(m+t)*f^2)^3
# flat Korneck-minus.X06 3*f^2*m^2 + m^6 + 3*f^2*m*t - m^5*t + m^4*t^2 - 6*f*m*t^3 - m^3*t^3 + m^2*t^4 - m*t^5
# merg Korneck-minus.X06 6*x_y_z^4 - 6*x_y_z^5
# orig Korneck-minus.X06 -(6*t^3*m*f+m*(m-t)*(m^4+m^2*t^2+t^4)+3*m*(m+t)*f^2)^3
# flat Korneck-minus.X06 3*f^2*m^2 + m^6 + 3*f^2*m*t - m^5*t + m^4*t^2 + 6*f*m*t^3 - m^3*t^3 + m^2*t^4 - m*t^5
# merg Korneck-minus.X06 6*x_y_z^4 + 6*x_y_z^5
# poly Korneck-minus.X06 0
000018 [3,4,5,6] Korneck-minus.X06 factor=12 parm= [1,2,1]
000018 [3,4,5,6] Korneck-minus.X06 factor=12 parm= [-1,2,1]
000032 [1,9,10,12] Korneck-minus.X06 factor=12 parm= [1,-2,1]
000032 [1,9,10,12] Korneck-minus.X06 factor=12 parm= [-1,-2,1]
000032 [1,9,10,12] Korneck-minus.X06 factor=12 parm= [1,2,-1]
000032 [1,9,10,12] Korneck-minus.X06 factor=12 parm= [-1,2,-1]
000018 [3,4,5,6] Korneck-minus.X06 factor=12 parm= [1,-2,-1]
000018 [3,4,5,6] Korneck-minus.X06 factor=12 parm= [-1,-2,-1]
000140 [27,30,37,46] Korneck-minus.X06 factor=3 parm= [2,2,1]
000140 [27,30,37,46] Korneck-minus.X06 factor=3 parm= [-2,2,1]
000164 [15,42,49,58] Korneck-minus.X06 factor=3 parm= [2,-2,1]
000164 [15,42,49,58] Korneck-minus.X06 factor=3 parm= [-2,-2,1]
000164 [15,42,49,58] Korneck-minus.X06 factor=3 parm= [2,2,-1]
000164 [15,42,49,58] Korneck-minus.X06 factor=3 parm= [-2,2,-1]
000140 [27,30,37,46] Korneck-minus.X06 factor=3 parm= [2,-2,-1]
000140 [27,30,37,46] Korneck-minus.X06 factor=3 parm= [-2,-2,-1]
000018 [3,4,5,6] Korneck-minus.X06 factor=12 parm= [1,1,2]
000018 [3,4,5,6] Korneck-minus.X06 factor=12 parm= [-1,1,2]
000032 [1,9,10,12] Korneck-minus.X06 factor=12 parm= [1,-1,2]
000032 [1,9,10,12] Korneck-minus.X06 factor=12 parm= [-1,-1,2]
000032 [1,9,10,12] Korneck-minus.X06 factor=12 parm= [1,1,-2]
000032 [1,9,10,12] Korneck-minus.X06 factor=12 parm= [-1,1,-2]
000018 [3,4,5,6] Korneck-minus.X06 factor=12 parm= [1,-1,-2]
000018 [3,4,5,6] Korneck-minus.X06 factor=12 parm= [-1,-1,-2]
000140 [27,30,37,46] Korneck-minus.X06 factor=3 parm= [2,1,2]
000140 [27,30,37,46] Korneck-minus.X06 factor=3 parm= [-2,1,2]
000164 [15,42,49,58] Korneck-minus.X06 factor=3 parm= [2,-1,2]
000164 [15,42,49,58] Korneck-minus.X06 factor=3 parm= [-2,-1,2]
000164 [15,42,49,58] Korneck-minus.X06 factor=3 parm= [2,1,-2]
000164 [15,42,49,58] Korneck-minus.X06 factor=3 parm= [-2,1,-2]
000140 [27,30,37,46] Korneck-minus.X06 factor=3 parm= [2,-1,-2]
000140 [27,30,37,46] Korneck-minus.X06 factor=3 parm= [-2,-1,-2]
000058 [7,14,17,20] Korneck-minus.X06 factor=12 parm= [3,2,1]
000058 [7,14,17,20] Korneck-minus.X06 factor=12 parm= [-3,2,1]
000018 [3,4,5,6] Korneck-minus.X06 factor=36 parm= [3,-2,1]
000018 [3,4,5,6] Korneck-minus.X06 factor=36 parm= [-3,-2,1]
000018 [3,4,5,6] Korneck-minus.X06 factor=36 parm= [3,2,-1]
000018 [3,4,5,6] Korneck-minus.X06 factor=36 parm= [-3,2,-1]
000058 [7,14,17,20] Korneck-minus.X06 factor=12 parm= [3,-2,-1]
000058 [7,14,17,20] Korneck-minus.X06 factor=12 parm= [-3,-2,-1]
000376 [2,83,141,150] Korneck-minus.X06 factor=4 parm= [1,3,1]
000376 [2,83,141,150] Korneck-minus.X06 factor=4 parm= [-1,3,1]
000734 [49,130,273,282] Korneck-minus.X06 factor=4 parm= [1,-3,1]
000734 [49,130,273,282] Korneck-minus.X06 factor=4 parm= [-1,-3,1]
000734 [49,130,273,282] Korneck-minus.X06 factor=4 parm= [1,3,-1]
000734 [49,130,273,282] Korneck-minus.X06 factor=4 parm= [-1,3,-1]
000376 [2,83,141,150] Korneck-minus.X06 factor=4 parm= [1,-3,-1]
000376 [2,83,141,150] Korneck-minus.X06 factor=4 parm= [-1,-3,-1]
001014 [95,229,327,363] Korneck-minus.X06 factor=2 parm= [2,3,1]
001014 [95,229,327,363] Korneck-minus.X06 factor=2 parm= [-2,3,1]
000376 [2,83,141,150] Korneck-minus.X06 factor=8 parm= [2,-3,1]
000376 [2,83,141,150] Korneck-minus.X06 factor=8 parm= [-2,-3,1]
000376 [2,83,141,150] Korneck-minus.X06 factor=8 parm= [2,3,-1]
000376 [2,83,141,150] Korneck-minus.X06 factor=8 parm= [-2,3,-1]
001014 [95,229,327,363] Korneck-minus.X06 factor=2 parm= [2,-3,-1]
001014 [95,229,327,363] Korneck-minus.X06 factor=2 parm= [-2,-3,-1]
000678 [103,140,204,231] Korneck-minus.X06 factor=4 parm= [3,3,1]
000678 [103,140,204,231] Korneck-minus.X06 factor=4 parm= [-3,3,1]
000870 [44,199,300,327] Korneck-minus.X06 factor=4 parm= [3,-3,1]
000870 [44,199,300,327] Korneck-minus.X06 factor=4 parm= [-3,-3,1]
000870 [44,199,300,327] Korneck-minus.X06 factor=4 parm= [3,3,-1]
000870 [44,199,300,327] Korneck-minus.X06 factor=4 parm= [-3,3,-1]
000678 [103,140,204,231] Korneck-minus.X06 factor=4 parm= [3,-3,-1]
000678 [103,140,204,231] Korneck-minus.X06 factor=4 parm= [-3,-3,-1]
000058 [7,14,17,20] Korneck-minus.X06 factor=12 parm= [3,1,2]
000058 [7,14,17,20] Korneck-minus.X06 factor=12 parm= [-3,1,2]
000018 [3,4,5,6] Korneck-minus.X06 factor=36 parm= [3,-1,2]
000018 [3,4,5,6] Korneck-minus.X06 factor=36 parm= [-3,-1,2]
000018 [3,4,5,6] Korneck-minus.X06 factor=36 parm= [3,1,-2]
000018 [3,4,5,6] Korneck-minus.X06 factor=36 parm= [-3,1,-2]
000058 [7,14,17,20] Korneck-minus.X06 factor=12 parm= [3,-1,-2]
000058 [7,14,17,20] Korneck-minus.X06 factor=12 parm= [-3,-1,-2]
000384 [22,75,140,147] Korneck-minus.X06 factor=4 parm= [1,3,2]
000384 [22,75,140,147] Korneck-minus.X06 factor=4 parm= [-1,3,2]
001664 [250,412,465,537] Korneck-minus.X06 factor=4 parm= [1,-3,2]
001664 [250,412,465,537] Korneck-minus.X06 factor=4 parm= [-1,-3,2]
001664 [250,412,465,537] Korneck-minus.X06 factor=4 parm= [1,3,-2]
001664 [250,412,465,537] Korneck-minus.X06 factor=4 parm= [-1,3,-2]
000384 [22,75,140,147] Korneck-minus.X06 factor=4 parm= [1,-3,-2]
000384 [22,75,140,147] Korneck-minus.X06 factor=4 parm= [-1,-3,-2]
002454 [291,502,794,867] Korneck-minus.X06 factor=1 parm= [2,3,2]
002454 [291,502,794,867] Korneck-minus.X06 factor=1 parm= [-2,3,2]
006674 [658,1743,1954,2319] Korneck-minus.X06 factor=1 parm= [2,-3,2]
006674 [658,1743,1954,2319] Korneck-minus.X06 factor=1 parm= [-2,-3,2]
006674 [658,1743,1954,2319] Korneck-minus.X06 factor=1 parm= [2,3,-2]
006674 [658,1743,1954,2319] Korneck-minus.X06 factor=1 parm= [-2,3,-2]
002454 [291,502,794,867] Korneck-minus.X06 factor=1 parm= [2,-3,-2]
002454 [291,502,794,867] Korneck-minus.X06 factor=1 parm= [-2,-3,-2]
000888 [93,242,244,309] Korneck-minus.X06 factor=4 parm= [3,3,2]
000888 [93,242,244,309] Korneck-minus.X06 factor=4 parm= [-3,3,2]
001676 [76,411,562,627] Korneck-minus.X06 factor=4 parm= [3,-3,2]
001676 [76,411,562,627] Korneck-minus.X06 factor=4 parm= [-3,-3,2]
001676 [76,411,562,627] Korneck-minus.X06 factor=4 parm= [3,3,-2]
001676 [76,411,562,627] Korneck-minus.X06 factor=4 parm= [-3,3,-2]
000888 [93,242,244,309] Korneck-minus.X06 factor=4 parm= [3,-3,-2]
000888 [93,242,244,309] Korneck-minus.X06 factor=4 parm= [-3,-3,-2]
000376 [2,83,141,150] Korneck-minus.X06 factor=4 parm= [1,1,3]
000376 [2,83,141,150] Korneck-minus.X06 factor=4 parm= [-1,1,3]
000734 [49,130,273,282] Korneck-minus.X06 factor=4 parm= [1,-1,3]
000734 [49,130,273,282] Korneck-minus.X06 factor=4 parm= [-1,-1,3]
000734 [49,130,273,282] Korneck-minus.X06 factor=4 parm= [1,1,-3]
000734 [49,130,273,282] Korneck-minus.X06 factor=4 parm= [-1,1,-3]
000376 [2,83,141,150] Korneck-minus.X06 factor=4 parm= [1,-1,-3]
000376 [2,83,141,150] Korneck-minus.X06 factor=4 parm= [-1,-1,-3]
001014 [95,229,327,363] Korneck-minus.X06 factor=2 parm= [2,1,3]
001014 [95,229,327,363] Korneck-minus.X06 factor=2 parm= [-2,1,3]
000376 [2,83,141,150] Korneck-minus.X06 factor=8 parm= [2,-1,3]
000376 [2,83,141,150] Korneck-minus.X06 factor=8 parm= [-2,-1,3]
000376 [2,83,141,150] Korneck-minus.X06 factor=8 parm= [2,1,-3]
000376 [2,83,141,150] Korneck-minus.X06 factor=8 parm= [-2,1,-3]
001014 [95,229,327,363] Korneck-minus.X06 factor=2 parm= [2,-1,-3]
001014 [95,229,327,363] Korneck-minus.X06 factor=2 parm= [-2,-1,-3]
000678 [103,140,204,231] Korneck-minus.X06 factor=4 parm= [3,1,3]
000678 [103,140,204,231] Korneck-minus.X06 factor=4 parm= [-3,1,3]
000870 [44,199,300,327] Korneck-minus.X06 factor=4 parm= [3,-1,3]
000870 [44,199,300,327] Korneck-minus.X06 factor=4 parm= [-3,-1,3]
000870 [44,199,300,327] Korneck-minus.X06 factor=4 parm= [3,1,-3]
000870 [44,199,300,327] Korneck-minus.X06 factor=4 parm= [-3,1,-3]
000678 [103,140,204,231] Korneck-minus.X06 factor=4 parm= [3,-1,-3]
000678 [103,140,204,231] Korneck-minus.X06 factor=4 parm= [-3,-1,-3]
000384 [22,75,140,147] Korneck-minus.X06 factor=4 parm= [1,2,3]
000384 [22,75,140,147] Korneck-minus.X06 factor=4 parm= [-1,2,3]
001664 [250,412,465,537] Korneck-minus.X06 factor=4 parm= [1,-2,3]
001664 [250,412,465,537] Korneck-minus.X06 factor=4 parm= [-1,-2,3]
001664 [250,412,465,537] Korneck-minus.X06 factor=4 parm= [1,2,-3]
001664 [250,412,465,537] Korneck-minus.X06 factor=4 parm= [-1,2,-3]
000384 [22,75,140,147] Korneck-minus.X06 factor=4 parm= [1,-2,-3]
000384 [22,75,140,147] Korneck-minus.X06 factor=4 parm= [-1,-2,-3]
002454 [291,502,794,867] Korneck-minus.X06 factor=1 parm= [2,2,3]
002454 [291,502,794,867] Korneck-minus.X06 factor=1 parm= [-2,2,3]
006674 [658,1743,1954,2319] Korneck-minus.X06 factor=1 parm= [2,-2,3]
006674 [658,1743,1954,2319] Korneck-minus.X06 factor=1 parm= [-2,-2,3]
006674 [658,1743,1954,2319] Korneck-minus.X06 factor=1 parm= [2,2,-3]
006674 [658,1743,1954,2319] Korneck-minus.X06 factor=1 parm= [-2,2,-3]
002454 [291,502,794,867] Korneck-minus.X06 factor=1 parm= [2,-2,-3]
002454 [291,502,794,867] Korneck-minus.X06 factor=1 parm= [-2,-2,-3]
000888 [93,242,244,309] Korneck-minus.X06 factor=4 parm= [3,2,3]
000888 [93,242,244,309] Korneck-minus.X06 factor=4 parm= [-3,2,3]
001676 [76,411,562,627] Korneck-minus.X06 factor=4 parm= [3,-2,3]
001676 [76,411,562,627] Korneck-minus.X06 factor=4 parm= [-3,-2,3]
001676 [76,411,562,627] Korneck-minus.X06 factor=4 parm= [3,2,-3]
001676 [76,411,562,627] Korneck-minus.X06 factor=4 parm= [-3,2,-3]
000888 [93,242,244,309] Korneck-minus.X06 factor=4 parm= [3,-2,-3]
000888 [93,242,244,309] Korneck-minus.X06 factor=4 parm= [-3,-2,-3]
|
574b451572b490f538a797b38a90a209547ad2bd | 52cff1a2ef2292f8b9acf18dcfe1d4b0df75c558 | /LAB 8/60002190043_SCILAB 8_IMPULSE RESPONSE.sce | b4fcf5c5504c53c464107040b4c20523ce7fd80d | [] | no_license | Hetankshi/SCILAB | 692a3abc71e6686f40745d69a66e4511db244491 | 424d4cc3459bb535e2f6793249f6a583374820ad | refs/heads/main | 2023-01-16T05:39:22.830875 | 2020-11-25T12:23:14 | 2020-11-25T12:23:14 | 315,916,735 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sce | 60002190043_SCILAB 8_IMPULSE RESPONSE.sce | //unit impulse func
clear all;
clc;
close;
L = 4;
//Upperlimit
n = -L:L;
x = [zeros(1,L),1,zeros(1,L)];
b = gca();
b.y_location = "middle";
plot2d3('gnn',n,x)
a=gce();
a.children(1).thickness =4;
xtitle('unit impulse','n','x[n]');
|
e20128d938560e5e139b0c5092dbe2ec780305c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1055/CH11/EX11.1/ch11_1.sce | 77d276d9d0817a098a033da08da40ef341d03e49 | [] | 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 | 385 | sce | ch11_1.sce | // To find the inductance and KVA rating of the arc suppressor coil in the system
clear
clc;
C1=2*%pi*(10^-9)/(36*%pi*log((4*4*8)^(1/3)/(10*(10^-3))));
C=C1*192*(10^9);// capacitance per phase (micro farad)
L=(10)^6/(3*314*314*C);
V=132;//voltage (kV)
MVA=V*V/(3*314*L);
mprintf("inductance ,L=%.2f H\n",L);
mprintf("MVA rating of suppressor coil =%.3f MVA per coil",MVA);
|
1cce840bedc2bcdfa90ed92b2b81d9bef105b0e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH2/EX2.53/Ch02Ex53.sce | 5cd4bd5625f2a18241f1d9aa57328fdfc4474581 | [] | 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 | 489 | sce | Ch02Ex53.sce | // Scilab Code Ex2.53:: Page-2.37(2009)
clc; clear;
mu = 1; // Refractive index of the air film
b = 1.5/25; // Fringe width, cm
lambda = 5893e-008; // Wavelength of light used to illuminate a wedge shaped film, cm
// As b = lambda/(2*mu*theta), solving for theta
theta = lambda/(2*mu*b); // Angle of the wedge, radian
printf("\nThe angle of the wedge shaped air film = %5.3f degrees", theta*180/%pi);
// Result
// The angle of the wedge shaped air film = 0.028 degrees
|
3bb139a6f5c8522e696bac4be0b1114cb90051a7 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/sci2pads_added_blocks/inv_mblif.sce | eb962e5a0a7e76cc4a111f55cf0c75b5cd4ca501 | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 67 | sce | inv_mblif.sce | if (blk_name.entries(bl) == "inv_mblif") then
fix_vdd = 1;
end
|
7e948fc909ad9c39452231b12e5f667440b103b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /73/CH2/EX2.11/Example2_11.sci | 8c2e03a8306223b4572bbc4dd45957ba73717ea3 | [] | 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 | 756 | sci | Example2_11.sci | //Chapter 2_Thick Film and Thin Film Hybrid ICs
//Caption : Ratio
//Example2.11: Two thin resistor are measured at 50 degree celcius and 100degree celsius and are found to have the following values:
//Temperatur(degree C) Ra(ohm) Rb(ohm)
// 50 50 100
// 100 51 102.1
//Calcullate the ratio TCR in ppm/degree celcius.
//Solution:
function TCR= ratio(Rat1,Rbt1,Rat2,Rbt2,T1,T2)
TCR=(Rat2/Rbt2-Rat1/Rbt1)*10^6/((Rat1/Rbt1)*(T1-T2))
disp('ratio TCR is=")// iinclude ";" at the time of calling the function at last
disp('ppm/degree Celsius',TCR)//ppm: part per million
endfunction
//ratio(100,50,102.1,51,100,50); |
bc97c5a06b6d45dce2350fdfe54b6d45bcd5fd9f | 9eb955f527c41725dce596f18ea4b37b3e3e4614 | /sin2cos2sin4_7v10_negfreq_Gforareachw_forscilab.sci | 69a22d6729708c8381d0640cd0f76d709c16dbb7 | [] | no_license | AntonMandrik/Octave | 846a886d5145ec6d5c4862236973a4238f7c5844 | 004dba8a980362caa9bf15316d35fefb489bb390 | refs/heads/master | 2020-04-06T04:21:52.115646 | 2017-02-25T18:04:54 | 2017-02-25T18:04:54 | 82,980,505 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,973 | sci | sin2cos2sin4_7v10_negfreq_Gforareachw_forscilab.sci | clear all
nmtr=4;
l0=20;
A=2.2;
g=9.81;
s=poly(0,'s');
den=[1 0.1 g./l0];
nom=[1];
nomw=poly(nom,'s','c');
denw=poly(den,'s','c');
j=sqrt(-1);
pi=3.1415;
W=syslin('c',nomw,denw);
ci=1;
wst=0.5;
G1p=cell(1,7);
//ñîçäàåì ìàòðèöó íà äèàãîíàëè êîòîðîé ñòîÿò ïåðåäàòî÷íûå ôóíêöèè îò nw
//îñòàëüíûå ýëåìåíòû ìàòðèöû - íîëþ.
clear den1;
for wn=1:1:nmtr+1
den1(wn,3)=den(1).*(wn-1).*(wn-1);
den1(wn,2)=-den(2).*(wn-1);
den1(wn,1)=den(3);
den1c(wn)=poly(den1(wn,:),'s','c');
end
clear den2;
for wn=1:1:nmtr+1
den2(wn,3)=den(1).*(wn-1).*(wn-1);
den2(wn,2)=den(2).*(wn-1);
den2(wn,1)=den(3);
den2c(wn)=poly(den2(wn,:),'s','c');
end
for Wwi=0:1:nmtr
Ww(nmtr-Wwi+1,nmtr-Wwi+1)=syslin('c',[1],den1c(Wwi+1));
Ww(nmtr+Wwi+1,nmtr+Wwi+1)=syslin('c',[1],den2c(Wwi+1));
end
//%ñîçäàåì ìàòðèöó ñ ýëåìåíòàìè -w äî ñðåäíåé ñòðîêè è w ïîñëå ñðåäíåé ñòðîêè
for i=1:1:(nmtr*2+1)
Wneg(i,i)=i-nmtr-1;
end
//ñîçäàåì ìàòðèöó ñ ýëåìåíòàìè -w äî ñðåäíåé ñòðîêè è w ïîñëå ñðåäíåé ñòðîêè
f11=0:0.5:6.3;
ppp=2;
wi=1;
fi=1;
f=f11(fi);
Wsin2wf=zeros(nmtr*2+1,nmtr*2+1);
for ni=3:1:(nmtr*2+1)
Wsin2wf(ni-2,ni)=(A./2).*exp(j.*0.5.*pi-j.*f);
Wsin2wf(ni,ni-2)=-(A./2).*exp(j.*0.5.*pi+j.*f);
end
Wsin2wf=-g.*(l0.^-2).*Wsin2wf;
f1=f+0.5.*pi./2;
Wcos2wf=zeros(nmtr*2+1,nmtr*2+1);
for ni=3:1:(nmtr*2+1)
Wcos2wf(ni-2,ni)=(A./2).*exp(j.*0.5.*pi-j.*f1);
Wcos2wf(ni,ni-2)=-(A./2).*exp(j.*0.5.*pi+j.*f1);
end
Wcos2wf=4.*(l0.^-1).*(s/j).*s.*Wcos2wf;
Wsin2wf=Wneg*Wsin2wf;
f2=2.*f;
Wsin4wf=zeros(nmtr*2+1,nmtr*2+1);
for ni=5:1:(nmtr*2+1)
Wsin4wf(ni-4,ni)=(A./2).*exp(j.*0.5.*pi-j.*f2);
Wsin4wf(ni,ni-4)=-(A./2).*exp(j.*0.5.*pi+j.*f2);
end
Wsin4wf=-2.*(l0.^-2).*(s/j).*s.*(A.^2).*Wsin4wf;
Wsin4wf=Wneg*Wsin4wf;
|
44533b7de259160e39ec46d66f7e1c633f2231dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH7/EX7.2/Ex7_2.sce | 8124a00d8e2d12a0ea4a883d52bfda1bc9397662 | [] | 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 | 288 | sce | Ex7_2.sce | //Variable declaration
deltavi=0.5 //change in vi(V)
deltat=10 //change in time(us)
s=1 //slew rate(V/us)
//Calculations
Kvf=(s*deltat)/deltavi //closed loop gain of amplifier
//Results
printf ("closed loop gain of amplifier is %.1f",Kvf)
|
74249ba6366c1030cf8936aa5bce4fb93d1d208f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3876/CH8/EX8.5/Ex8_5.sce | afc0612e3ead5e1e6cd76c222728c3780631cc35 | [] | 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 | 269 | sce | Ex8_5.sce | //Chapter 8 Chemical Equlibrium
clc;
clear;
//Initialisation of Variables
T= 65 //C
R= 1.98 //cal/mol K
kp= 2.8
kp1= 0.141
T1= 25 //C
//CALCULATIONS
H= log10(kp/kp1)*2.303*R*(273+T1)*(273+T)/(T-T1)
H= H+62
//RESULTS
mprintf("Average Heat of reaction= %.2f cal",H)
|
8b5d644a4412d2c3ac2634db0a215b082aa60298 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3816/CH8/EX8.5/8_5.sce | c631fa0cf5eb8a59e48517e4f849dfb9d56de7e4 | [] | 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,122 | sce | 8_5.sce | clc;
clear;
Sfl=0.05;//slip of full load current
disp('during direct switching')
Vmp=1;
Imp=6*Vmp;
Ila=6*Vmp;
Ta=0.3*Imp;
disp(Ta,Ila,Imp,Vmp,'The motor phase voltage,motor phase current line current and torque during direct switching are:')
disp('During stator resistance switching:')
Vmpb=0.33;
Impb=6*Vmpb;
Ilb=6*Vmpb;
Tb=0.3*Impb;
disp(Tb,Ilb,Impb,Vmpb,'The motor phase voltage,motor phase current line current and torque during stator resistance switching are:')
disp('During auto transformer starting with the motor current limied to 2pu')
Vmpc=0.33;
Impc=6*Vmpc;
Ilc=6*Vmpc;
Tc=0.3*Impc;
disp(Tc,Ilc,Impc,Vmpc,'The motor phase voltage,motor phase current line current and torque during auto transformer starting with the motor current limied to 2pu switching are:')
disp('During star delta starting:')
Vmpd=0.58;
Impd=6*Vmpd;
Ild=6*Vmpd;
Td=0.3*Impd;
disp(Td,Ild,Impd,Vmpd,'The motor phase voltage,motor phase current line current and torque during star delta starting are:')
disp('For full load torque ')
Ilat=(0.75^2);
disp('times the full load current',Ilat,'The line current is:')
|
2544df500b8a66983b0454824fe53aa52d55db64 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2223/CH6/EX6.2/Ex6_2.sce | fabe4c9984d4dd745da1cb753413f79adff1944c | [] | 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 | 695 | sce | Ex6_2.sce | // scilab Code Exa 6.2 radially tipped Centrifugal blower 3000rpm
P=150; // Power Output in kW
N=3e3; // Speed in RPM
d2=40/100; // outer diameter of the impeller in m
d1=25/100; // inner diameter of the impeller in m
b=8/100; // impeller width at entry in m
n_st=0.7; // stage efficiency
V1=22.67; // Absolute Velocity at entry in m/s
ro=1.25; // density of air in kg/m3
// part(a) determining the pressure developed
u2=%pi*d2*N/60;
u1=d1*u2/d2;
w_ac=u2^2;
delh_s=n_st*w_ac;
delp=ro*delh_s;
disp ("mm W.G." ,delp/9.81,"(a)the pressure developed is")
// part (b) determining the power required
A1=%pi*d1*b;
m=ro*V1*A1;
P=m*w_ac/10e2;
disp("kW",P,"(b)Power required is")
|
9bfc1d325477b9712be5eeb9d7061981984e7ca4 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3/Unix-Windows/scilab-2.3/macros/auto/projsl.sci | 4aaecb0fec4707c2f373751447325669feed1ce3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | 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 | 179 | sci | projsl.sci | function [slp]=projsl(sl,q,m)
//slp= projected model of sl q*m is the full rank
//factorization of the projection.
//!
slp=syslin(sl(7),m*sl(2)*q,m*sl(3),sl(4)*q,sl(5),m*sl(6))
|
c64b78e41129fe89ae4ddaaa16c5f4cd4d368026 | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH11/EX11.10/example_11_10.sce | bb07bfd75aade92d2f893d89ea268a162995972e | [] | 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 | 532 | sce | example_11_10.sce | //there is a pole at the origin and contribution of gain k
k=10^(14/20) //20*log(k)=14
disp("equation of starting line is y=-20*log(w)+14")
wc1=10^(0)
disp(wc1,"hence at wc1, 14=-20*log(wc1)+14. that is wc1 = ")
y1=poly([1 1/wc1],'s','coeff')
disp("equation of next line is y=-40*log(w)+14")
wc2=10^(40/40) //-40*log(wc2)=-40
disp(wc2,"wc2=")
y2=poly([1 1/wc2],'s','coeff')
wc3=50 //given
y3=poly([1 1/wc3],'s','coeff')
TF= k*(y2)/((y1)*(y3))
disp(TF,"transfer function = ")
|
1113fefedf812afe54e539986bdbe21dc46cc4a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH16/EX16.23w/16_23w.sce | 56b885d161e39df8ba4be6f3da6265cee43a3a6e | [] | 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 | 777 | sce | 16_23w.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.23w
//calculation of the frequency of train whistle heard by the person standing on the road perpendicular to the track
//given data
v=340//speed(in m/s) of the sound in the air
d1=300//distance(in m) of the train from the crossing
u=120*10^3/(60*60)//speed(in m/s) of the train
nu=640//frequency(in Hz) of the whistle
d2=400//distance(in m) of the person from the crossing ,perpendicular to the track
//calculation
theta=acosd(d1/sqrt(d1^2+d2^2))//pythagoras theorem
nudash=(v/(v-(u*cosd(theta))))*nu//frequency of the whistle heard
printf('the frequency of train whistle heard by the person standing on the road perpendicular to the track is %d Hz',nudash)
|
eb3f088511a188ede73981cddf795643d4a42f8d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH14/EX14.5/Ex14_5.sce | 25c49d6fa2fa55b7ff7e53ab61c74565127b684c | [] | 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 | 332 | sce | Ex14_5.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 14 Operational Amplifiers Pg no. 423
clear;
clc;
//Given
Ad=15000;//differential gain
Ac=15;//common mode gain
//Solution
CMRR=Ad/Ac;//common mode rejection ratio
CMRR_dB=20*log10(CMRR);//common mode rejection ratio in dB units
printf("(CMRR)dB = %.f dB",CMRR_dB);
|
94aabbfa2e14cba1dc4937c3311f14ff35d3d26d | 2abc0ac2745749ba8e8004d0b6e85f769175d540 | /VtolControl.sce | eae677c4729fe86b58caaff8f3b0f46020317eea | [] | no_license | jfloreshu/Vtol_scilab_LQR_deterministic | 9d17da342635539e6b9f3a6b6d128dc694be5656 | 6008f2ecd39c92095881f8f759c5b0a85e71bc6e | refs/heads/master | 2022-12-01T22:32:35.709043 | 2020-08-16T03:43:36 | 2020-08-16T03:43:36 | 287,854,224 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,980 | sce | VtolControl.sce | //Parameters of the Plane
exec('Vtol_Parameters.sce', -1);
//States matrix
Ap=[0 0 0 1 0 0;
0 0 0 0 1 0;
0 0 0 0 0 1;
0 0 -g -c/m 0 0;
0 0 0 0 -c/m 0;
0 0 0 0 0 0];
Bp=[0 0;
0 0;
0 0;
1/m 0;
0 1/m;
r/J 0];
Cp=[1 0 0 0 0 0;
0 1 0 0 0 0];
Dp=[0 0;
0 0];
sys = syslin('c',Ap,Bp,Cp,Dp);
//checking controllability and observability
[i,j] = size(Ap);
// e=[B, AB, A^2 B,..., A^(n-1) B]
e = cont_mat(sys.A,sys.B);
rankC=rank(e);
if i == rankC then
disp('Continuous System is Controllable');
end
// o=[C; CA; CA^2;...; CA^(n-1) ]
o = obsv_mat(sys.A, sys.C);
rankO=rank(o);
if j == rankO then
disp('Continuous System is Observable');
end
tranM=ss2tf(sys); // Matriz de transferencia
disp('Matriz de Transferencia',tranM);
tfc11 = tranM(1,1);
tfc22 = tranM(2,2);
/* Plot singular values of LTI the model */
tr = trzeros(sys)
w = logspace(-3,3);
sv = svplot(sys,w);
scf(1);
plot2d("ln", w, 20*log(sv')/log(10),leg="Input 1@Input 2")
xgrid(12)
xtitle("Singular values plot","Frequency (rad/s)", "Amplitude (dB)");
//Obtenciion de los polors zeros del modelo de software
scf(2);
plzr(sys);
xtitle("Poles and zeros plot of system","Real", "Imaginarie");
//autovalores
evals=spec(Ap);
///////////////////////////////////---------------------------
//Augment Plant with Integrators at Plant Input
[ns,nc]=size(Bp); //ns= number of inputs; nc=number of controls
Ai=[Ap Bp;
0*ones(nc,ns) 0*ones(nc,nc)];
Bi=[0*ones(ns,nc); eye(nc,nc)];
Ci=[Cp 0*ones(nc,nc)];
Di=0*ones(nc,nc);
I=eye(nc,nc);
sysi=syslin('c',Ai,Bi,Ci,Di);
//View of the singular values of plant with integrator and the poles and
//zeros
/* Plot singular values of LTI the model */
tri = trzeros(sysi)
w = logspace(-3,3);
svi = svplot(sysi,w);
scf(3);
plot2d("ln", w, 20*log(svi')/log(10),leg="Input 1@Input 2")
xgrid(12)
xtitle("Singular values plot of Plant with Integrator","Frequency (rad/s)", "Amplitude (dB)");
//Obtenciion de los polors zeros del modelo de software
scf(4);
plzr(sys);
xtitle("Design Plant with integrator:poles and zeros","Real", "Imaginarie");
//lqr controller calculation
//We use the ricatti equation for calculate de gain of the lqr controller
//for this we have A'*X+X*A-X*B*X+C=0 for function X=riccati(A,B,C,'c','eigen')
C=0.8*eye(8,8); //State Weighting Matrix
rho=1e-0; //Cheap control recovery parameter
//The smaller the parameter, the better the recovery.
R = rho*eye(nc,nc);//Control Weigthing Matrix
//now we calculate B
B=Bi*inv(R)*Bi';
A=Ai;
//Solv the ricatti equation
X=riccati(A,B,C,'c','eigen');
//the value of the gain G
G=inv(R)*Bi'*X; //<--this value is important mtfk
//---------------------------------------------------------------------
//computing H
//The gain H
H=(ppol(Ai',Ci',[-10,-11,-12,-13,-14,-15,-16,-17]))';
|
baf439c3c214380bcc410714388cf9cafce08a3c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2333/CH4/EX4.9/9.sce | 01d1905cb98e8d2b03b6eff7ca4da42ac62f39a2 | [] | 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 | 353 | sce | 9.sce | clc
// Given that
Ip = 53 // Angle of polarization of light
// Sample Problem 9 on page no. 216
printf("\n # PROBLEM 9 # \n")
I_r = 90 - Ip // Angle of refraction
mu = tan(Ip*%pi/180) // Refractive index of water
printf("Standard formula used \n mu=tan(Ip)\n")
printf("\nAngle of refraction is %d degree. \n Refractive index of material is %f",I_r,mu)
|
7e3293bb03825b8cf93e3f855ca9fd8370f775f2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1835/CH7/EX7.2/Ex7_2.sce | c9a27a86c77814c86072325ca04df26e9f47ad79 | [] | 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,041 | sce | Ex7_2.sce | //CHAPTER 7 ILLUSRTATION 2 PAGE NO 197
//TITLE:GOVERNORS
//FIGURE 7.5(A),7.5(B)
clc
clear
//===========================================================================================
//INPUT DATA
OA=.3// LENGTH OF UPPER ARM IN m
m=6// MASS OF EACH BALL IN Kg
M=18// MASS OF SLEEVE IN Kg
r2=.2// RADIUS OF ROTATION AT BEGINING IN m
r1=.25// RADIUS OF ROTATION AT MAX SPEED IN m
//===========================================================================================
h1=(OA^2-r1^2)^.5// HIEGHT OF GOVERNOR AT MAX SPEED IN m
N1=(895*(m+M)/(h1*m))^.5// MAX SPEED IN rpm
h2=(OA^2-r2^2)^.5// HEIGHT OF GONERNOR AT BEGINING IN m
N2=(895*(m+M)/(h2*m))^.5// MIN SPEED IN rpm
//===========================================================================================
printf('MAX SPEED = %.3f rpm\n MIN SPEED = %.3f rpm\n RANGE OF SPEED = %.3f rpm',N1,N2,N1-N2)
|
af1ebc7ebf17c5c88b3da15e0c96273d74965ac2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3863/CH16/EX16.3/Ex16_3.sce | fd2ad92f45667bc3027f9db99f8d1dc43f4caa86 | [] | 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 | 341 | sce | Ex16_3.sce | clear
//
//Given
//Variable declaration
Do=200 //Outer diameter in mm
Di=100 //Inner diameter in mm
tau=40 //Maximum shear stress in N/sq.mm
//Calculation
T=int(((%pi)/16*tau*((Do**4-Di**4)/Do)))*1e-3 //Maximum torque transmitted by the shaft in Nm
//Result
printf("\n Maximum torque transmitted by the shaft = %0.3f Nm",T)
|
66af742f15cf45740178bcd1b83984729ff6d8dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3523/CH16/EX16.7.6/Ex16_6.sce | 0bfdbc538705841cdae42ce541693f5039c1c250 | [] | 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,084 | sce | Ex16_6.sce | clear all
clc
close
C1=0.125*10^-6;//in Farad
C2=1*10^-9;//in Farad
R1=360;//in ohms
R2=544;//in ohms
theta = sqrt(C1*C2*R1*R2);//in usec
n = 1/[1+(1+(R1/R2))*(C2/C1)];
alpha = (R2*C1)/(2*theta*n);
printf("theta parameter of wave eq %f us \n",theta*10^6)
printf("n the parameter of circuit eq %f \n",n)
printf("alpha parameter of circuit eq %f \n",alpha)
T2 = 10.1*theta;//duration of lightning impulse pulse in us
T1 = T2/45;//duration of lightning impulse pulse in us
printf("duration of lightning impulse pulse %f us \n",T2*10^6)
printf("duration of lightning impulse pulse %f us \n",T1*10^6)
//answer in the book for T1 is wrong
T = T1/T2;
printf("generated lighting impulse is %f us \n",T)
alpha1 = [alpha-sqrt((alpha^2)-1)]/theta;//in us^-1
alpha2 = [alpha+sqrt((alpha^2)-1)]/theta;//in us^-1
printf("aplha1 parameter of wave eq is %f us^-1 \n",alpha1*10^-6)
printf("aplha1 parameter of wave eq is %f us^1 \n",alpha2*10^-6)
//answer in the book is slightly different
// Now eq of waveform of generated pulse is e(t)=99.75(e^-0.015t - e^-2.77t)
|
fb6b538df21ea5cc883f4522a255a418adff05c8 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4/Unix-Windows/scilab-2.4/macros/m2sci/%m2sci.sci | 42006c35e5dca028b20702591a134056f7298ae8 | [
"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 | 547 | sci | %m2sci.sci | function [stk,txt,top]=%m2sci()
// multiplications
//!
// Copyright INRIA
txt=[]
s1=stk(top-1)
s2=stk(top)
[e1,te1]=s1(1:2);
[e2,te2]=s2(1:2);
if s1(5)=='10' then e1='str2code('+e1+')''',te1='0',end
if s2(5)=='10' then e2='str2code('+e2+')''',te2='0',end
//
if te2=='2' then e2='('+e2+')',end
if te1=='2' then e1='('+e1+')',end
if s1(3)=='1'&s1(4)=='1' then
stk=list(e1+'*'+e2,'1',s2(3),s2(4),s1(5))
elseif s2(3)=='1'&s2(4)=='1' then
stk=list(e1+'*'+e2,'1',s1(3),s1(4),s1(5))
else
stk=list(e1+'*'+e2,'1',s1(3),s1(4),s1(5))
end
top=top-1
|
5be37f4e607901af89c6629e4dbbf6ee2a41b85c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH8/EX8.8/Ex8_8.sce | fd98e077df5aa61db437faf0a63b5ca989cedd74 | [] | 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 | 997 | sce | Ex8_8.sce | //Variable declaration
Vs=200 //dc source voltage(V)
Il=5 //current to load voltage(A)
Vl=15 //load voltage(V)
eta=.85 //efficiency
f=20 //oscillator frequency(Hz)
iSmax=2.6 //peak value of supply current(A)
P=100 //full load power supply(W)
pdf=0.4 //pulse duty factor
//Calculations
Isav=(Vl*Il)/(Vs*eta) //average peak supply current(A)
iS=(2*Isav)/pdf //supply current(A)
T=1000/f //oscillation time period(uS)
tp=pdf*T //transistor time(us)
d=iS/tp //change in iS with respect to time(A/us)
tp1=iSmax/d //transistor time(us)
pdf1=tp1/T //pulse duty factor
Isav1=(iSmax*pdf1)/2 //average peak supply current(A)
eta1=(P*100)/(Vs*Isav1) //efficiency
//Results
printf ("peak value of supply current is %.3f A",Isav)
printf ("pdf is %.3f ",pdf)
printf ("overall efficienc is %.1f %%",eta1)
|
ac7325f0d9bf53204f2d7b419b277dddae974a01 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH22/EX22.7/Ex22_7.sce | 274e029186c7aa0fa313b0ff24c86f579492c595 | [] | 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 | 221 | sce | Ex22_7.sce | clc;
//e.g 22.7
VDD=20;
RD=2.5*10**3;
RS=1.5*10**3;
R1=2*10**6;
R2=250*10**3;
ID=4*10**-3;
VG=(R2*VDD)/(R1+R2);
VS=ID*RS;
VGS=VG-VS;
disp('V',VGS*1,"VGS=");
VD=VDD-ID*RD;
VDS=VD-VS;
disp('V',VDS*1,"VDS=");
|
751e12a9c6e6e8f5a62b3d6d75eb129c5df1b04d | 717ddeb7e700373742c617a95e25a2376565112c | /275/CH3/EX3.3.74/Ch3_3_74.sce | a34f72ed9907dee3a1391fd8645a5502862e0840 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 737 | sce | Ch3_3_74.sce | clc
disp("Example 3.74")
printf("\n")
disp("Find the Ve, Ic,Vce & Vc. Draw a DC load line for Voltage divider circuit")
printf("Given\n")
//given
Vcc=15
Vbe=0.7
hFE=50
R1=6.8*10^3
R2=3.3*10^3
Rc=0.9*10^3
Re=0.9*10^3
//thevenin voltage
Vt=(Vcc*R2)/(R1+R2)
//thevenin resistance
Rt=(R1*R2)/(R1+R2)
//base current
Ib=(Vt-Vbe)/(Rt+(1+hFE)*Re)
//collector current
Icq=hFE*Ib
//emitter current
Ie=Ib+Icq
//emitter voltage
Ve=Ie*Re
//collector to emitter voltage
Vceq=Vcc-(Icq*Rc)-(Ie*Re)
//collector voltage
Vc=Vce+Ve
//to draw DC load line
Ic1=Vcc/(Rc+Re)
Vce=[Vcc Vceq 0]
Ic=[0 Icq Ic1]
printf("Q(%f,%f)\n",Vceq,Icq)
plot2d(Vce, Ic)
xlabel("Vce")
ylabel("Ic")
xtitle("DC load line for base bias circuit") |
795d361e8c8b89bc65db2fd28085e3b5b9cdca27 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH25/EX25.18/25_18.sce | 78e35f2f8113cf4f98f420e4f51044c3b21fdfba | [] | 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 | 483 | sce | 25_18.sce | //ques-25.18
//Calculating volume occupied by oxygen using ideal gas equation and van der Waals equation
clc
n=3;//moles of oxygen
P=50;//pressure (in atm)
T=373;//temperature (in K)
a=1.36;//(in L^2 atm/mol^2)
b=0.0318;//(in L/mol)
//Ideal Gas equation
V1=(n*0.0821*T)/P;
//Van der Waals equation
V2=n*b+(n*0.0821*T)/(P+a*n^2/V^2);
printf("The volume occupied by oxygen calculated using ideal gas equation is %.2f L and using van der Waals equation is %.2f L.",V1,V2);
|
5ccc1edf7e2942e1951ed64957b0b81e25367ec5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3864/CH9/EX9.1/Ex9_1.sce | aaad4d9c69c58aade7eb3397856147ddacf01bb4 | [] | 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 | 402 | sce | Ex9_1.sce | clear
//
//
//Initilization of Variables
L=5000 //mm //Length of strut
dell=10 //mm //Deflection
W=10 //N //Load
//Calculations
//Central Deflection of a simply supported beam with central concentrated load is
//dell=W*L**3*(48*E*I)**-1
//Let E*I=X
X=W*L**3*(48*dell)**-1 //mm
//Euler's Load
//Let Euler's Load be P
P=%pi**2*X*(L**2)**-1
//Result
printf("\n Critical Load of Bar is %0.2f N",P)
|
d507a7e3d1eeebbab7fcacfba40de14f11f8a402 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH3/EX3.7/7.sci | 2332ec997d0153cf29a939c90ab362e20b083b2d | [] | 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 | 308 | sci | 7.sci | clc;
clear all;
disp("Heat loss calculations")
k=1.05;// W/(m*C)
ti=600;//degree C
to=70;// degree C
L=0.12;//m
A=0.6*0.6;//m^2
Sfcwall=A/L;
D=0.6;//m
Sfcedge=0.54*D;
Sfccorner=0.15*L;
Sfct=6*Sfcwall+12*Sfcedge+8*Sfccorner;
Q=k*Sfct*(ti-to);
disp("W",Q,"Heat loss through walls, Q =")
|
77ed3b6cd634f6603f369e046bd6a0435f3ca903 | 36e294af022143c4ad0adaf1a40183c8114cb39a | /Scripts/Combined_run.sce | 52a9c297d8fb3edd2c09fa4436a288979a0d6c99 | [] | no_license | pflynn/Spectrum_analysis | d6388a46f686912a4d4a543f18b2a49063374506 | eb31f3349fdf4f16227b25782d40937b126b297e | refs/heads/master | 2016-09-05T17:10:44.896865 | 2011-06-27T15:01:20 | 2011-06-27T15:01:20 | 1,960,672 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,556 | sce | Combined_run.sce | // do all the steps required to get the 3 graphs from raw data
// SET THE VARIABLES
// resets it back to its default value for quicker processing
stacksize(5000000)
//num_of_samples is the number of samples of a particular band
num_of_samples = 348;
//num of bands is the number of bands of spectrum being used
// band 1 is 20MHz to 40MHz...band 2 is 40MHz to 60MHz..etc
// eg if we are just looking at the fourth band (80 - 100MHz) start_num_of_band = 4;
// and end_num_of_band = 4;
start_num_of_band = 25;
end_num_of_band = 25;
// This is the noise floor for the particular band(s) at hand
threshold = -80.1;
// num_of_data_slots is the number of data slots in each data file, this should not change
num_of_data_slots = 501
for k = start_num_of_band:end_num_of_band
// First stage
// allows each file to be chosen
for j = 1:num_of_samples
number = string(j);
// this loop will only run once if only one band is being analysed
// It creates all the csv files with only the 501 trace values needed
// A becomes a list of the comma seperated variables in the raw data file
A = read_csv('C:\Program Files\Tektronix\SA2600PC\Results'+'/'+ string(k*20) + 'MHz to '+ string((k+1)*20) + 'MHz' + number +'.csv');
// A_values is a matrix of the trace1 values only
A_values = A(46:1:546,1);
//Create the csv file and saves it to results folder on desktop
//write_csv(A_values,'C:\Documents and Settings\pflynn\Desktop\Results' + '/'+ string(k*20) + 'MHz to '+ string((k+1)*20) + 'MHz ' + number +'.csv');
// A becomes a list of the 501 trace1 values
// evstr() changes them from string to numerical values because they are stored as strings in the csv files
evstr_A_values = evstr(A_values);
// B is a list of strings of either 1 or 0 depending on wheather the value
// exceeds the threshold or not.
//B = string((evstr_A_values>threshold)*1);
//end
// Creates and saves files used for getting duty cycle plots
//write_csv(B,'C:\Documents and Settings\pflynn\Desktop\Threshold data'+ '/th '+ string(T*20) + 'MHz to '+ string((T+1)*20) + 'MHz ' + number +'.csv');
// The first set of threshold data is put into thresh_data
if(j == 1)
tresh_data = (evstr_A_values>threshold)*1
max_hold_data = evstr_A_values;
B = ones(num_of_data_slots,num_of_samples);
B(1:num_of_data_slots,j) = evstr_A_values;
//The remaining sets of data are added to A (makes duty cycle data)
else
tresh_data = tresh_data + (evstr_A_values>threshold)*1;
// C is a list of 1s and 0s, 1 if B is greater than A at that point, else c is 0
C = evstr_A_values>max_hold_data;
// D is the opposite of C
D = ~C;
// Values in A are updated if values in B are greater than it at particular points
max_hold_data = max_hold_data.*D + evstr_A_values.*C;
B(1:num_of_data_slots,j) = evstr_A_values;
if j == num_of_samples
real_tresh_data = tresh_data./num_of_samples
end
end
end
end
//do all plots
// plot max hold graphs
// change directory to the desired location to save these plot files
cd('C:\Documents and Settings\pflynn\Desktop\Combined plots');
//clear window
clf();
x = (k*20):(1/25):(k+1)*20;
y = (1:1:num_of_samples);
z = evstr(B);
zm = min(z); zM = max(z);
// setting the colour map
// num_of_colours is the amount of different shades in this colour plot
num_of_colours = round(((max(z)-min(z))*10)+.49)
// num_of_white is the number of colours that are white in order for it to change from white to a colour at the correct threshold
num_of_whites = round(((sqrt((min(z) - threshold)*(min(z) - threshold)))*10)+.49)
// red colour
r = linspace(0,1,(num_of_colours - num_of_whites));
//green colour
g = zeros(1,(num_of_colours - num_of_whites));
g(1,1:1:((num_of_colours - num_of_whites)/2)) = linspace(0,1,((num_of_colours - num_of_whites)/2))
g(1,(((num_of_colours - num_of_whites)/2)+1):1:(num_of_colours - num_of_whites)) = linspace(1,0,((num_of_colours - num_of_whites)/2))
// Blue colour
b = linspace(1,0,(num_of_colours - num_of_whites));
// sets the color map to white
cmap = ones(num_of_colours,3);
// puts colour into this section of color map
for l = (num_of_whites + 1):num_of_colours
cmap(l,1)= r(1,(l-num_of_whites));
cmap(l,2)= g(1,(l-num_of_whites));
cmap(l,3)= b(1,(l-num_of_whites));
end
xset('colormap',cmap);
subplot(3,2,4)
colorbar(zm,zM,[1 , num_of_colours],fmt="%.2f");
//setting the type of colour plot
//scf(0);
subplot(312)
Sgrayplot(x,y,z);
// setting the axis lable
xtitle("Waterfall plot (power recorded in dBm where detection threshold is exceeded)",'Frequency (MHz)','Time (mins*5)');
// setting the colour bar limits
M = read_csv('C:\Documents and Settings\pflynn\Desktop\Duty cycle plot data'+ '/dc '+ string(k*20) + 'MHz to '+ string((k+1)*20) + 'MHz.csv');
subplot(313)
plot([k*20:(1/25):(k+1)*20],evstr(M))
// give it titles
xtitle('Fraction of Time','Frequency (MHz)','Fraction of Time');
//MAX Hold
// plot the actual graph
subplot(311)
plot([k*20:(1/25):(k+1)*20],max_hold_data)
//threshold line
plot([k*20:(1/25):(k+1)*20],threshold,'r--') // plots a dash-dotted line with a right-pointing triangle centered on each points
// give it titles
xtitle('Max Hold','Frequency (MHz)','Power (dBm)');
// exporting the image to jpg file
xs2jpg(0,'all plots '+ string(k*20) + 'MHz to '+ string((k+1)*20) + 'MHz.jpg');
xs2jpg(gcf(),'/all plots '+ string(k*20) + 'MHz to '+ string((k+1)*20) + 'MHz.jpg')
|
c2ae6b562c93492bb64f1769dad3ac822c741d01 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH2/EX2.59/EX_2_59.SCE | 5acd4955b698817191b795ae6a1954a0a9ca320d | [] | 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 | 773 | sce | EX_2_59.SCE | // Example 2.59:h parameters and hybrid parameters
clc;
clear;
//H Paramters are
hie=1100;//in killo ohms
hre=2*10^-4;
hfe=50;
hoe=2.5*10^-5;// in ampere per volt
hic=hie;//
hrc=1-hre;//
hfc=-(1+hfe);//
hoc=hoe;//
hib=(hie/(1+hfe));//
hrb= ((hie*hoe)/(1+hfe))-hre;//
hob=(hoe/(1+hfe));//
rbb=100;
rbe=(hie-rbb)*10^-3;//in killo ohms
rbc= ((hie-rbb)/hre)*10^-6;//
gm= ((hfe/(hie-rbb)));//
x=hoe-((hfe*hre)/(hie-rbb));//
rce=1/(1.25*10^-2);//
disp(hic,"hic=",hrc,"hrc=",hfc,"hfc=",hoc,"hoc=","H-parameters for common collector configuration are")
disp(hib,"hib=",hrb,"hrb=",hob,"hob=","H-parameters for common collector configuration are")
disp(rbe,"rbe(in killo ohms)=",rbc,"rbc(mega ohms)=",gm,"transconductance(mho)=",rce,"rce(in killo ohms)=","hybrid pie paramtere are")
|
2c0c8723b980e0643a2db54bffc001a5b4e91c43 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s__elelectronics_instrumentation_and_measurements_U._S._Shah_2195.zip/_elelectronics_instrumentation_and_measurements_U._S._Shah_2195/CH10/EX10.13.1/ex_10_13_1.sce | 5e2d772d79632d4e46429bf2e200055243784301 | [] | 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 | 245 | sce | ex_10_13_1.sce | errcatch(-1,"stop");mode(2);//Example 10.13.1 // sampling rate
;
;
//given data :
N=10;//number of cycles
f=1*10^3;//in Hz
sampling_period=N/f;
sampling_rate=1/sampling_period;
disp(sampling_rate,"sampling rate in samples per second")
exit();
|
199c0bdb852c636059a7c3211f14876a7e051cd1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3392/CH6/EX6.8/Ex6_8.sce | 39615de32887937e0c1663cfd3480014d3fed959 | [] | 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 | 710 | sce | Ex6_8.sce | clc
// initialization of variables
clear
// Rod dimensions and material properties
b1=60 //mm
l1=3 //m
l2=1.5 //m
h1=40 //mm
b2=40 //mm
h2=30 //mm
G=77.5 //GPa
T1=750 //Nm
T2=400 //Nm
//calculations
b1=b1*10^-3
h1=h1*10^-3
b2=b2*10^-3
h2=h2*10^-3
G=G*10^9
// for the left portion of the rod
k1l=0.196
k2l=0.231
// for the right portion of the rod
k1r=0.178
k2r=0.223
T=T1+T2
tau_maxL=T/(k2l*b1*(h1)^2)
tau_maxR=T2/(k2r*b2*(h2)^2)
tau_max=max(tau_maxL,tau_maxR)
J1=b1*h1^3/12+h1*b1^3/12
J2=b2*h2^3/12+h2*b2^3/12
bet=T*l1/(G*J1)+T2*l2/(G*J2)
printf(' The maximum shear stress is = %.1f MPa',tau_max/10^6)
printf('\n twist = %.4f rad',bet)
//wrong answer for twist in the text
|
0bf99fdab2fd34d788cac91073361031eb029eef | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.10_15.tst | 0f5677f59ef07382afb3340e116651f1a051c13e | [] | 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 | 3,518 | tst | bow.10_15.tst | 10 55:0.16666666666666666 56:1.0
10 2:0.058823529411764705 4:0.0625 13:1.0 88:1.0 143:1.0
10 13:1.0 27:1.0 29:0.14285714285714285 42:0.5 45:1.0 68:0.5 69:0.3333333333333333 70:1.0 71:1.0 73:1.0 108:1.0 115:1.0 165:1.0 169:0.3333333333333333 211:0.5 282:1.0 469:1.0 548:1.0 558:1.0 580:1.0
10 2:0.058823529411764705 17:1.0 32:0.5
10 2:0.058823529411764705 4:0.0625 169:0.3333333333333333 184:1.0
10 29:0.14285714285714285 74:1.0
10 2:0.058823529411764705 57:1.0 68:0.5 114:0.125 116:1.0 408:1.0 450:0.5 636:1.0 652:1.0 1310:1.0
10 2:0.058823529411764705 8:1.0 371:1.0
10 2:0.058823529411764705 4:0.0625 32:1.0 34:0.5 125:0.5 233:1.0 305:1.0 311:1.0 560:1.0 1102:1.0
10 34:0.5 556:1.0
10 639:1.0
10 55:0.16666666666666666 56:1.0
10 29:0.14285714285714285 31:1.0 32:0.5 222:1.0 343:1.0 436:1.0
10 2:0.058823529411764705 4:0.0625 17:1.0 23:1.0 29:0.14285714285714285 31:2.0 32:1.0 57:1.0 118:0.5 130:0.3333333333333333 144:1.0 153:0.25 253:1.0 292:0.3333333333333333
10 2:0.058823529411764705 4:0.0625 13:1.0 32:0.5 63:1.0 115:0.5 118:0.5 308:0.3333333333333333 338:1.0 502:1.0 541:1.0 1092:1.0
10 8:1.0 12:0.16666666666666666 15:0.022727272727272728 23:1.0 32:1.5 68:0.5 104:0.1111111111111111 115:0.5 116:1.0 121:1.0 127:1.0 153:0.25 283:1.0 346:1.0 355:1.0 581:1.0 864:1.0 875:1.0 1047:1.0 1254:1.0
10 269:0.3333333333333333 639:1.0
10 55:0.16666666666666666 56:1.0
10 15:0.022727272727272728 32:0.5 161:1.0 228:0.16666666666666666 711:1.0
10 4:0.0625 12:0.16666666666666666 15:0.022727272727272728 32:0.5 37:0.3333333333333333 112:0.5 153:0.25 1101:1.0
10 12:0.16666666666666666 15:0.022727272727272728 618:1.0
10 71:1.0 72:1.0 118:0.5 143:1.0 165:1.0 269:0.3333333333333333 270:1.0 503:1.0 1058:1.0
10 2:0.058823529411764705 12:0.16666666666666666 15:0.022727272727272728 19:0.25 68:0.5 121:1.0 450:0.5 640:0.3333333333333333 694:1.0 776:1.0 1348:1.0
10 4:0.0625 22:0.14285714285714285 26:1.0 29:0.14285714285714285 239:1.0
10 4:0.0625 12:0.3333333333333333 13:1.0 15:0.06818181818181818 26:1.0 31:1.0 32:0.5 37:0.3333333333333333 90:1.0 100:0.5 114:0.125 115:1.5 180:0.5 209:0.5 216:1.0 336:0.5 382:1.0 450:0.5 525:1.0 580:1.0 655:1.0 662:1.0 1311:1.0
10 4:0.125 12:0.16666666666666666 15:0.045454545454545456 16:1.0 31:2.0 32:0.5 58:1.0 115:0.5 118:0.5 143:2.0 146:0.5 148:1.0 209:1.5 225:1.0 235:0.5 249:1.0 262:1.0 305:1.0 371:1.0 502:1.0 1350:1.0
10 4:0.0625 15:0.045454545454545456 16:1.0 22:0.14285714285714285 29:0.14285714285714285 32:0.5 68:0.5 83:1.0 216:1.0 222:1.0 251:1.0 305:1.0 609:1.0
10 12:0.16666666666666666 15:0.045454545454545456 43:1.0 108:2.0 110:0.2 544:1.0 580:1.0 609:1.0 1240:1.0
10 12:0.16666666666666666
10 12:0.16666666666666666 104:0.1111111111111111 108:1.0 641:1.0 1229:1.0
10 13:1.0 31:1.0 92:0.5 1384:1.0
10 15:0.022727272727272728 16:1.0 37:0.3333333333333333 84:1.0 222:1.0
10 4:0.0625 27:1.0 143:1.0 150:1.0 176:1.0 292:0.3333333333333333 305:1.0 773:1.0 1305:1.0
10 639:1.0
10 55:0.16666666666666666 84:1.0 130:0.3333333333333333
10 2:0.17647058823529413 4:0.1875 13:1.0 19:0.5 23:1.0 29:0.14285714285714285 32:1.0 68:0.5 76:2.0 92:0.5 104:0.1111111111111111 108:1.0 110:0.2 119:1.0 131:1.0 145:1.0 148:1.0 179:1.0 216:1.0 222:1.0 464:1.0 496:1.0 580:1.0 1335:1.0 1423:1.0
10 2:0.058823529411764705 4:0.0625 15:0.022727272727272728 22:0.14285714285714285 32:0.5 68:0.5 76:2.0 104:0.1111111111111111 172:1.0 229:1.0 288:1.0
10 2:0.058823529411764705 15:0.022727272727272728 83:1.0
10 2:0.058823529411764705 15:0.022727272727272728 16:1.0 108:1.0 115:0.5 171:0.16666666666666666
|
6915bfe12eecc32d04c366b66280559265a961c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2096/CH13/EX13.4/ex_13_4.sce | 53c7eadcd1bd3824cde21e086ca5d92bc6bca23d | [] | 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 | 326 | sce | ex_13_4.sce | //Example 13.4 // capacitance and series resistance
clc;
clear;
close;
//given data :
M=18.35; // in m-H
R1=200; // in ohm
L1=40.6; // in m-H
R2_1=119.5; // in ohm
R4=100; // in ohm
C2=((M*10^-3)/(R1*R4))*10^6;
R2=(R4*(L1-M))/M;
Rs=R2-R2_1;
disp(C2,"capacitance,C(micro-farad) = ")
disp(Rs,"the series resistance,Rs(ohm) = ")
|
e9eeae2a129c17d0d8a993e4a00bfd1fd9d28d01 | f8af22b7da65f0cb304fcca060a1adafeb667003 | /testcode/12_coriolis/code/Exercise 4/Coriolis.sce | 52eb5330f11bd21e178b403dad9851f3086ed9ad | [
"MIT"
] | permissive | waqarnabi/tybec | 8746490894b4aeea2fbd3d0f01107deed02e73ae | b69157146a58a195dd7c1856833fcd8f91edfe9f | refs/heads/master | 2021-01-22T03:05:03.822031 | 2019-08-12T11:32:52 | 2019-08-12T11:32:52 | 81,091,795 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,659 | sce | Coriolis.sce | //*******************************************
// This is the Scilab script for Exercise 4.
//
// Use the help facility for more information
// on individual functions used.
//
// Author: J. Kaempf, 2008
//********************************************
// Animation of the Coriolis force
clf(); clear;
set("figure_style","new");
a=get("current_axes"); a.parent.figure_size= [600,600];
x=read("output1.txt",-1,3); // read input data
fre = x(1,1); dt = x(1,2); ntot = x(1,3);
radius = 20; xset('pixmap',1);
factor = 0.9; fac2 = factor*radius; // needed for graphics
for n=2:ntot
scf(0);
time = x(n,3); xr = x(n,1); yr = x(n,2);
//xbasc() // clears graphic window
xset('wwpc'); //clears pixmap
// isoview scaling
plot2d(0,0,-1,"030"," ",[-20,-20,20,20]);
// draw circular, blue dish = our tank
xset("color",2)
xfarc(-fac2,fac2,2*fac2,2*fac2,0,360*64)
// rotate outer ticks to visualise relative rotation of the tank
xx = radius*sin(fre*time);
yy = radius*cos(fre*time);
x1 = [factor*xx xx];
y1 = [factor*yy yy];
xset("color",5)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
xx = radius*cos(fre*time);
yy = -radius*sin(fre*time);
x2 = [factor*xx xx];
y2 = [factor*yy yy];
xset("color",0)
xset("thickness",6)
xpoly(x2,y2,"lines",1)
xx = -radius*sin(fre*time);
yy = -radius*cos(fre*time);
x3 = [factor*xx xx];
y3 = [factor*yy yy];
xset("color",0)
xset("thickness",6)
xpoly(x3,y3,"lines",1)
xx = -radius*cos(fre*time);
yy = radius*sin(fre*time);
x4 = [factor*xx xx];
y4 = [factor*yy yy];
xset("color",0)
xset("thickness",6)
xpoly(x4,y4,"lines",1)
// inner ticks remain motionless
xset("color",2)
xfarc(-fac2,fac2,2*fac2,2*fac2,0,360*64)
x1 = [0 0];
y1 = [factor*fac2 fac2];
xset("color",5)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
x1 = [0 0];
y1 = [-fac2 -factor*fac2];
xset("color",0)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
y1 = [0 0];
x1 = [factor*fac2 fac2];
xset("color",0)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
y1 = [0 0];
x1 = [-fac2 -factor*fac2];
xset("color",0)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
//draw location
xset("color",1); xfarc(xr-1,yr+1,2.0,2,0,360*64);
xset("color",7); xfarc(xr-0.8,yr+0.8,1.6,1.6,0,360*64);
//draw trajectory
xset('thickness',4)
plot2d(x(2:n,1),x(2:n,2),8,'000','',[-radius,-radius,radius,radius])
//add title
t=a.title; t.foreground=1; t.font_size=12; t.font_style=4;
t.text="Rotating Frame of Reference";
// creation of GIF files (optional)
//if n < 10 then
// xs2gif(0,'ex100'+string(n)+'.gif')
//else
// if n < 100 then
// xs2gif(0,'ex10'+string(n)+'.gif')
// else
// xs2gif(0,'ex1'+string(n)+'.gif')
// end
//end
xpause(5d2); xset('wshow');
end // end of animation
|
eaf46714a2638246cfcee4f44c23e90d8642f143 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH6/EX6.21/ex6_21.sce | d74e1fe74ed3d97316fc1c080d425c18e4f9da8c | [] | 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 | 412 | sce | ex6_21.sce | // Exa 6.21
clc;
clear;
close;
// Given data
T_sat = 99.6;// in degree C
h_fg = 2258;// in kJ/kg
m = 1;// steam output of the boiler in (assumed)
m1 = 0.03;// exhaust steam
x = 0.9;
T1 = 21;// in degree C
Cp = 4.187;// kJ/kg-K
// Formula m1*(Cp*(T_sat-t)+x*h_fg)= m*Cp*(t-T1)
t= (m1*(Cp*T_sat+x*h_fg)+m*Cp*T1)/(Cp*(m+m1))
disp(t,"Temperature of the feed water leaving the heater in degree C is");
|
ec0f664398c99c2accadd51724d12828b8ae97b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1439/CH18/EX18.2/18_2.sce | 9d79b9d4bbb474aba95447c6b43ce76b48ceaf99 | [] | 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 | 196 | sce | 18_2.sce | clc
//initialisation of variables
E= 95300 //cal mole^-1
l= 3000 //A
e= 23060 //cal mole^-1 ev^-1
//CALCULATIONS
e1= E/e
//RESULTS
printf (' energy in electron = %.2f electron volts',e1)
|
ac34bd68bd6acd02090bdd16a1fe40088ab979d6 | b513eb49824ff62ddd2289a920c92cfcb362d5f2 | /magister/course_2/gerasimov/optimal/Lab2/scilab/launcher.sce | 6f27d7b39a1f864ea4d52ca6d5853d4e84bf3345 | [] | no_license | kirillin/ifmo | 6264ac42ec2031777145b39d4930f2f645e1d316 | 633919ba09d43814298c3a2145d5d6f72b5b068e | refs/heads/master | 2021-01-12T09:32:27.270130 | 2018-11-18T12:17:46 | 2018-11-18T12:17:46 | 76,181,268 | 3 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,232 | sce | launcher.sce | function beauty_axes(x_text, y_text)
a = gca();
a.x_label.text = x_text;
a.x_label.font_size = 4;
a.y_label.text = y_text;
a.y_label.font_size = 4;
endfunction
function beauty_legend(text, place)
legend(text, place),
a = gca();
a.children(1).font_size = 2;
endfunction
function beauty_plot(x, y, kolor, thickness, style)
plot2d(x, y);
a = gca();
a.children(1).children.foreground = kolor;
a.children(1).children.thickness = thickness;
a.children(1).children.line_style = style;
endfunction
// THE BEGGINING OF LAB ACTIVITY IS HERE!!
A = [0, 1; 1, -1];
b = [2; 1];
Q = [1, 0; 0, 1];
r = 2;
x0 = [1; 0]; // object's state initial values
// some calculations
P = riccati(A, b*inv(r)*b', Q, 'c');
K = inv(r) * b' * P;
F = A - b * K;
[M, Lambda] = spec(F);
R = M' * (Q + r * K' * K) * M;
t = 5;
J = (inv(M)*x0)' * ( (expm(Lambda*t)*inv(Lambda)*expm(Lambda*t) - 0.5*inv(Lambda)*(expm(Lambda*t))^2) - (expm(Lambda*0)*inv(Lambda)*expm(Lambda*0) - 0.5*inv(Lambda)*(expm(Lambda*0))^2) ) * R * inv(M)*x0
// text output
printf("Оптимальный регулятор:\n")
disp(P, "P =")
disp(K, "K =")
disp(F, "F =");
disp(M, "M =");
disp(Lambda, "Lambda =");
disp(R, "R =");
disp(J, "J =");
// import and model appropriate scheme
path = get_absolute_file_path('launcher.sce');
scheme_name = path + 'modeling_scheme.zcos';
importXcosDiagram(scheme_name);
xcos_simulate(scs_m, 4);
//plotting graphs
time = state.time;
subplot(2,2,1);
beauty_plot(time, state.values(:,1), 1, 1, 1);
subplot(2,2,2);
beauty_plot(time, state.values(:,2), 1, 1, 1);
subplot(2,2,3);
beauty_plot(time, control.values, 1, 1, 1);
subplot(2,2,4);
beauty_plot(time, perf_index.values, 1, 1, 1);
// change K
K = K + 0.20 * K;
// remade calculations
F = A - b * K;
[M, Lambda] = spec(F);
R = M' * (Q + r * K' * K) * M;
t = 5;
J = (inv(M)*x0)' * ( (expm(Lambda*t)*inv(Lambda)*expm(Lambda*t) - 0.5*inv(Lambda)*(expm(Lambda*t))^2) - (expm(Lambda*0)*inv(Lambda)*expm(Lambda*0) - 0.5*inv(Lambda)*(expm(Lambda*0))^2) ) * R * inv(M)*x0
// text output
printf("\nНеоптимальный регулятор:\n")
disp(K, "K =")
disp(F, "F =");
disp(M, "M =");
disp(Lambda, "Lambda =");
disp(R, "R =");
disp(J, "J =");
// import and model appropriate scheme again
path = get_absolute_file_path('launcher.sce');
scheme_name = path + 'modeling_scheme.zcos';
importXcosDiagram(scheme_name);
xcos_simulate(scs_m, 4);
//plotting graphs again
time = state.time;
subplot(2,2,1);
beauty_plot(time, state.values(:,1), 1, 1, 2);
beauty_axes("$t\text{, с}$", "$x_1$");
beauty_legend(["Оптим. регулятор", "Неоптимальный"], 1);
subplot(2,2,2);
beauty_plot(time, state.values(:,2), 1, 1, 2);
beauty_axes("$t\text{, с}$", "$x_2$");
beauty_legend(["Оптим. регулятор", "Неоптимальный"], 1);
subplot(2,2,3);
beauty_plot(time, control.values, 1, 1, 2);
beauty_axes("$t\text{, с}$", "$u$");
beauty_legend(["Оптим. регулятор", "Неоптимальный"], 4);
subplot(2,2,4);
beauty_plot(time, perf_index.values, 1, 1, 2);
beauty_axes("$t\text{, с}$", "$J$");
beauty_legend(["Оптим. регулятор", "Неоптимальный"], 4);
|
6d33c00494fe9c97dcebae23687f9be4b6a17710 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3772/CH4/EX4.6/Ex4_6.sce | cae05ca69610f7b3980771856a773f1e628768ab | [] | 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,874 | sce | Ex4_6.sce | // Problem no 4.4.6,Page No.95
clc;clear;
close;
F_C=100 //KN //Pt Load at C
F_E=50 //KN //Pt Load at E
w=20 //KN/m
L_AE=2;L_ED=2;L_DC=2;L_CB=2 //m //Length of AE,ED,DC,CB respectively
L=8 //m //Length of Beam
//Calculations
//Let R_A & R_B be the reactions at A & B
//R_A+R_B=190
//Taking Moment at A
//M_A=-R_B*L+F_C*(3*L_AE)+w*L_DC*(L_DC*2**-1+2*L_ED)+F_E*L_AE=0
R_B=(F_C*(3*L_AE)+w*L_DC*(L_DC*2**-1+2*L_ED)+F_E*L_AE)*L**-1
R_A=190-R_B
//Shear Force Calculations
//Shear Force at B
V_B=R_B
//Shear Force at C
V_C1=R_B
V_C2=R_B-F_C
//Shear Force at D
V_D=V_C2-w*L_DC
//Shear Force at E
V_E1=V_D
V_E2=V_D-F_E
//Shear Force at A
V_A=V_E2
//Point of contraflexure
//Let F be the point BF=x
//Shear Force at F
//V_F=R_B-F_C-w*(L_BF-L_CB)
L_FB=-((-R_B+F_C)*w**-1-L_CB)
V_F=0
//Bending Moment Calculations
//Bending Moment at B
M_B=0
//Bending Moment at C
M_C=R_B*L_CB
//Bending Moment at D
M_D=R_B*(L_CB+L_DC)-F_C*L_DC-w*L_DC**2*2**-1
//Bending Moment at E
M_E=R_B*(L_CB+L_DC+L_ED)-F_C*(L_ED+L_DC)-w*L_DC*(L_DC*2**-1+L_ED)
//Bending Moment at A
M_A=R_B*(L_ED+L_DC+L_AE+L_CB)-F_C*(L_ED+L_DC+L_AE)-w*L_DC*(L_DC*2**-1+L_ED+L_AE)-F_E*L_AE
//Bending Moment at F
L_FC=L_CB-L_CB
M_F=R_B*L_FB-F_C*L_FC-w*L_FC**2*2**-1
L_DF=L_DC-L_FC
//Result
printf("The Shear Force and Bending Moment Diagrams are the results")
//Plotting the Shear Force Diagram
subplot(2,1,1)
X1=[0,L_CB,L_CB,L_CB+L_DC,L_CB+L_DC+L_ED,L_CB+L_DC+L_ED,L_CB+L_DC+L_ED+L_AE]
Y1=[V_B,V_C1,V_C2,V_D,V_E1,V_E2,V_A]
Z1=[0,0,0,0,0,0,0,]
plot(X1,Y1,X1,Z1)
xlabel("Length x in m")
ylabel("Shear Force in kN")
title("the Shear Force Diagram")
//Plotting the Bending Moment Diagram
subplot(2,1,2)
X2=[0,L_CB,L_CB+L_FC,L_CB+L_DC,L_CB+L_DC+L_ED,L_CB+L_DC+L_ED]
Y2=[M_B,M_C,M_F,M_D,M_E,M_A]
Z2=[0,0,0,0,0,0]
plot(X2,Y2)
xlabel("Length in m")
ylabel("Bending Moment in kN.m")
title("the Bending Moment Diagram")
|
c740dd0d207381f8b147e81013235900cad68aae | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.1.1/Unix/scilab-2.1.1/macros/tdcs/traj.sci | 00c4ea25bfbabd5f0994a92a58f59384eda2c461 | [
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 182 | sci | traj.sci | //[xt]=traj(t)
//[xt]=traj(t)
// approximation constante par morceaux de l'evolution de la masse
// construite sur xk : trajectoire discrete.
//!
xt=xk(3,maxi(ent(t),1));
//
//end
|
bafd8631541e146c3db8813bb4bcfd3ac29687e8 | 45a93944a52f35e5601f5eebc0ff0e0c885849fd | /scripts/genererRandUniforme.sci | b6ab2a932e5024a05c7cdd7177b96350bf3fd2e4 | [] | no_license | madox35/Simulations-numeriques | ae32655f213f5a1dc04de86387652264a5b56aa0 | 11d59864210370b2524ad533bf864d0968053131 | refs/heads/master | 2020-03-17T13:32:10.082544 | 2018-05-21T21:14:09 | 2018-05-21T21:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 115 | sci | genererRandUniforme.sci | function Xi = genererRandUniforme(borneA,borneB, iter)
Xi = grand(iter,1,'unf',borneA,borneB);
endfunction
|
390d473adfd9fe22d65a5766b65c78740b96baf7 | f4ae1148ef6ceeae3975451880fa3dd2905b2943 | /source c code/cluster variance/cluster_variance.sce | 608cec81d4e91ddab3c8913c55936dc1acda4411 | [] | no_license | JerryYanisLuo/Feature-vector-Generation-and-Analysis-for-Speech-Recognition-based-on-VQ | de56f18602b3c300d043ab871b34e82e892f6d61 | 1d38f1dd5180d85612b0a48d4862d7f4e955980a | refs/heads/master | 2022-12-04T12:02:17.124574 | 2020-08-26T22:22:33 | 2020-08-26T22:22:33 | 290,614,362 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 149 | sce | cluster_variance.sce | x = read_csv("E:\College\Courseware\Bachelor Thesis\programme\source c code\cluster variance\cluster_variance.txt");
x = evstr(x);
plot(x,".");
|
2aa72499d4152a82cc6a8addce8e2e36b59c3183 | c04fb432166e4832950820b66362a26c125b608a | /trip-tests/trip1.tst | 616b855e4c23602dd9779bb310790f32662f4bd5 | [] | no_license | andreaowu/Graphs | 6d7d7ce1483e01e0c1bf4657f2f4087cbe328046 | 485dae6c2d173c2844898440fad9306ec77e1962 | refs/heads/master | 2021-01-25T04:58:12.978046 | 2013-12-04T01:09:45 | 2013-12-04T01:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 63 | tst | trip1.tst | java trip.Main -m trip-tests/trip1.txt trip-tests/trip1.request |
3007137a53733df80b9c329576c08ef2a479c242 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH16/EX16.7/example16_7.sce | b346665b99f90e9a2948ccd0a5c7900165c7d906 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 279 | sce | example16_7.sce |
//example 16.7
//calculate annual average rainfall
clc;funcprot(0);
//given
L=50; //spacing between drains
k=1D-5; //permeability coefficient
a=10;
b=10.3;
Q=4*k*(b^2-a^2)/L;
Pav=Q*24*3600*100*100/L;
mprintf("annual average rainfall=%i cm",Pav);
|
13efabde4c8ffe9b54f37393e23becb0f7daf0e7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1979/CH9/EX9.2/Ex9_2.sce | 393603fad48e560275fe988ed09f0254ede54307 | [] | 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 | 465 | sce | Ex9_2.sce | //chapter-9 page 411 example 9.2
//==============================================================================
clc;
clear;
L=75*10^(-6);//Device Length in m
V=25;//Voltage Pulse Amplified in V
f=10*10^9;//Operating Frequency in Hz
//CALCULATION
Eth=(V/L)/10^5;//Threshold Electric Field in kV/cm
//OUTPUT
mprintf('\nThreshold Electric Field is Eth=%1.2f kV/cm',Eth);
//=========================END OF PROGRAM===============================
|
9b44dd13e102178139c0102a81894c602a67f28a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3542/CH4/EX4.9/Ex4_9.sce | 6259d0f407e41ebd503e3cec981ecf294d9bb4bd | [] | 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,159 | sce | Ex4_9.sce | // Example no 4.9
// To find a)the minimum mean square error b)the standard deviation about mean value c)received power at d=2 km d)the likelihood that the received signal level at 2 km e) the percentage of area within 2 km
// Page no. 143
clc;
clear all;
// Given data
d0=100; // First receiver distance in meter
d1=200; // Second receiver distance in meter
d2=1000; // Third receiver distance in meter
d3=3000; // Fourth receiver distance in meter
p0=0; // Receved power of first receiver in dBm
p1=-20; // Receved power of second receiver in dBm
p2=-35; // Receved power of third receiver in dBm
p3=-70; // Receved power of forth receiver in dBm
// a)To find the minimum mean square error
n=2887.8/654.306; // Loss exponent after differentiating and equating the squared error function with zero
// Displaying the result in command window
printf('\n Loss exponent = %0.0f',n);
// b)To find the standard deviation about mean value
P0=-10*n*log10(d0/100); // The estimate of p0 with path loss model
P1=-10*n*log10(d1/100); // The estimate of p1 with path loss model
P2=-10*n*log10(d2/100); // The estimate of p2 with path loss model
P3=-10*n*log10(d3/100); // The estimate of p3 with path loss model
J=(p0-P0)^2+(p1-P1)^2+(p2-P2)^2+(p3-P3)^2; // Sum of squared error
SD=sqrt(J/4); // The standard deviation about mean value
// Displaying the result in command window
printf('\n The standard deviation about mean value = %0.2f dB',SD);
// The decimal point is not given in the answer given in book.
// c)To find received power at d=2 km
d=2000; // The distance of receiver
P=-10*n*log10(d/100); // The estimate of p2 with path loss model
// Displaying the result in command window
printf('\n The received power (at d=2 km) = %0.2f dBm',P);
// Answer is varying due to round off error
// d)To find the likelihood that the received signal level at 2 km
gam=-60; // The received power at 2km will be greater than this power
z=(gam-P)/SD;
Pr=(1/2)*(1-erf(z/sqrt(2))); // The probability that received signal will be greater than -60dBm
// Displaying the result in command window
printf('\n The probability that received signal will be greater than -60dBm = %0.1f percent',Pr*100);
// Answer is varying due to round off error
// e)To find the percentage of area within 2 km
A=92; // From figure 4.18, area receives coverage above -60dBm
// Displaying the result in command window
printf('\n The percentage of area within 2 km = %0.0f percent',A);
|
590b2ff3cdeb5d6b9594b3fff0e1abd78fb5200d | 5a05d7e1b331922620afe242e4393f426335f2e3 | /macros/impz.sci | 1172b8106b1a03a7aa20e52cc78cafc9403453c6 | [] | no_license | sauravdekhtawala/FOSSEE-Signal-Processing-Toolbox | 2728cf855f58886c7c4a9317cc00784ba8cd8a5b | 91f8045f58b6b96dbaaf2d4400586660b92d461c | refs/heads/master | 2022-04-19T17:33:22.731810 | 2020-04-22T12:17:41 | 2020-04-22T12:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,930 | sci | impz.sci | function [x_r, t_r] = impz(b, a, n, fs)
// It gives Impulse response of digital filter
//Calling Sequence
//x_r = impz(b)
//x_r = impz(b, a)
//x_r = impz(b, a, n)
//x_r = impz(b, a, n, fs)
//[x_r, t_r] = impz(b, a, n, fs)
//Parameters
//x_r: impz chooses the number of samples and returns the response in the column vector, x_r.
//t_r : impz returns the sample times in the column vector, t_r
// b : numerator coefficients of the filter
// a : denominator coefficients of the filter
// n : samples of the impulse response t(by default ,n = length(t) and is computed automatically.
// fs : sampling frequency
//Description
//[x_r,t_r] = impz(b,a) returns the impulse response of the filter with numerator coefficients, b, and denominator coefficients, a. impz chooses the number of samples and returns the response in the column vector, x_r, and the sample times in the column vector, t_r. t_r = [0:n-1]' and n = length(t) is computed automatically.
//Examples
//[x_r,t_r]=impz([0 1 1],[1 -3 3 -1],10)
//OUTPUT :
// t_r = 0. 1. 2. 3. 4. 5. 6. 7. 8. 9
// x_r= 0. 1. 4. 9. 16. 25. 36. 49.....64......81
//[x_r,t_r]=impz(1,[1 1],5)
//OUTPUT
// t_r = 0. 1. 2. 3. 4
//x_r = 1. - 1. 1. - 1. 1.
//This function is being called from Octave
funcprot(0);
rhs = argn(2)
lhs = argn(1)
if(rhs<1 | rhs>4)
error("Wrong number of input arguments.")
end
select(rhs)
case 1 then
if(lhs==1)
[x_r] = callOctave("impz",b)
elseif(lhs==2)
[x_r,t_r] = callOctave("impz",b)
end
case 2 then
if(lhs==1)
[x_r] = callOctave("impz",b,a)
elseif(lhs==2)
[x_r,t_r] = callOctave("impz",b,a)
end
case 3 then
if(lhs==1)
[x_r] = callOctave("impz",b,a,n)
elseif(lhs==2)
[x_r,t_r] = callOctave("impz",b,a,n)
end
case 4 then
if(lhs==1)
[x_r] = callOctave("impz",b,a,n,fs)
elseif(lhs==2)
[x_r,t_r] = callOctave("impz",b,a,n,fs)
end
end
endfunction
|
4d99fcaa2bbc6531518740390371154ccfaaf9ce | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set8/s_Elements_Of_Chemical_Reaction_Engineering_H._S._Fogler_800.zip/Elements_Of_Chemical_Reaction_Engineering_H._S._Fogler_800/CH7/EX7.8/7_8.sce | 18d93a26ba58cee329b5a343c69b50ca820e21b1 | [] | 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 | 167 | sce | 7_8.sce | errcatch(-1,"stop");mode(2);////
exec("7.8data.sci");
Vmax = (Et2/Et1)*Vmax1
t = (Km/Vmax)*log(1/(1-X))+Curea0*X/Vmax;
disp("t")
disp(t)
disp("s")
exit();
|
640eacf2bd28fde9e2efd0551bb37e33b34e8f3f | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/macros/mtlb/mtlb_eye.sci | a5930212b33322e2d145eab6b07980120f374bef | [
"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 | 106 | sci | mtlb_eye.sci | function r=mtlb_eye(a)
// Copyright INRIA
if size(a)==[1 1] then
r=eye(a,a)
else
r=eye(a(1),a(2))
end
|
360c444f10a2541b1818ea0efba34034bb9fe791 | 449d555969bfd7befe906877abab098c6e63a0e8 | /800/DEPENDENCIES/2_7.sci | 483e0e97163b755616a8d07cfc1fb1278ff3a106 | [] | 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 | 173 | sci | 2_7.sci | FA0 = 0.867; // mol/s
X1 = 0.5;
X2 = 0.8;
rA2 = -(1/800);
X = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8]';
p = [189 192 200 222 250 303 400 556 800];//1/-rA = 800//dm^3.s/mols |
42d8757e890d5ac6c666e269880550ca1329c995 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2492/CH3/EX3.3/ex3_3.sce | 66e255c0834efef72991c7d0f45c51cac95c1f06 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 605 | sce | ex3_3.sce | // Exa 3.3
format('v',6)
clc;
clear;
close;
// Given data
V = 120;// in V
Vz = 50;// in V
R = 5;// in k ohm
R = R * 10^3;// in ohm
I = (V-Vz)/R;// in A
R1 = 10;// in k ohm
R1 = R1 * 10^3;// in ohm
I_L = Vz/R1;// in A
// The maximum value of zener diode current
I_Zmax = I-I_L;// in A
I_Zmax= I_Zmax*10^3;// in mA
disp(I_Zmax,"The maximum value of zener diode current in mA is");
V2 = 80;// in V
I = (V2-Vz)/R;// in A
// The minimum value of zener diode current
I_Zmin = I-I_L;// in A
I_Zmin=I_Zmin*10^3;// in mA
disp(I_Zmin,"The minimum value of zener diode current in mA is");
|
c23fe2a1c6a071f203e480dd3318d3c63c5c058d | c3f30c57c194640b9ce943b27456d4d7bd7a6706 | /EXP1/exp1 -tonal.sce | 32ae59657887d9001815c1677422700144f66ea2 | [] | no_license | dikshitakambri/Image-Processing-Using-Scilab | af7d2f738c271edb0f12c9825b7a044233668f67 | 9cb0a7f2b0ac402c54bd297f28d578a2905c3da8 | refs/heads/master | 2023-04-18T00:11:42.093266 | 2021-04-27T08:23:52 | 2021-04-27T08:23:52 | 362,016,834 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 370 | sce | exp1 -tonal.sce | //Dikshita Kambri 118A2044
//IPMV -EXPERIMENT 1
//TONAL RESOLUTION//
clear all
clc;
a = imread("C:\Users\hp\Documents\Image Processing-Scilab\Images\coins.png");
a = double(a);
//b = max(max(a);
b = 256;
i =input("How many bits do you want? 1 2 4 8: ");
j = b/(2^i);
F = floor(a/j);
F1 = (F * 255)/max(max(F));
figure(1)
imshow(uint8(a))
figure(2)
imshow(uint8(F1))
|
42aec096b404e5ef11ef3ea3280a18fb4f338491 | 449d555969bfd7befe906877abab098c6e63a0e8 | /413/CH2/EX2.3/Example_2_3.sce | b3d1a750303f1fe46e37009e55650c82fafe22ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 291 | sce | Example_2_3.sce | // Compute 1-, 2-, inf norms of the vector x, if x=[1.25, 0.02, -5.15, 0]
clearglobal()
clc;
x=[1.25 0.02 -5.15 0]
printf('x is')
disp(x)
printf('First Norm of x is')
disp(norm(x,1))
printf('Second Norm of x is')
disp(norm(x,2))
printf('infinite Norm of x is')
disp(norm(x,'inf')) |
57ca89edd6cb9d42dfb3cd15d8be3494afce53d6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3705/CH12/EX12.7/Ex12_7.sce | b73033b487a5cce74474193d50b1881f3384172b | [] | 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 | 630 | sce | Ex12_7.sce |
clear//
//Variable Declaration
M=2.21 //Applied moment in kip.ft
d=3 //Diameter of the bar in inches
sigma_y=40 //Yield strength of the of steel in ksi
//Calculations
//Part 1
sigma=32*M*12*(%pi*d**3)**-1 //Maximum Bending Stress in ksi
T1=sqrt((sigma_y*0.5)**2-5**2)/(12*0.18863) //Maximum Allowable torque in kip.ft
//Part 2
R=sqrt((sigma_y**2-5**2)*3**-1) //Maximum shear stress in ksi
T2=sqrt(R**2-5**2)/(12*0.18863) //Maximum safe torque in kpi.ft
//Result
printf("\n Using the maximum shear stress theory T= %0.2f kip.ft",T1)
printf("\n Using the maximum sitrotion energy theory T= %0.2f kip.ft",T2)
|
7b2ca6f5d249f1d378795e411ce228e73aa50a8f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1898/CH1/EX1.1/Ex1_1.sce | 7b8afb02a12bd3b0bb2e24f77af7890715c3b0a4 | [] | 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 | 806 | sce | Ex1_1.sce | clear all; clc;
disp("Scilab Code Ex 1.1 :")
w_varying = 270;
l_crossection = 9;
l_cb = 6;
l_ac = 2;
w_c = (w_varying/l_crossection) * l_cb //By proportion, load at C is found.
f_resultant_c = 0.5* w_c *l_cb
// Equations of Equilibrium
//Balancing forces in the x direction:
n_c = 0
//Balncing forces in the y direction:
v_c = f_resultant_c
// Balncing the moments about C:
m_c = - (f_resultant_c*l_ac)
// Displaying results:
printf('\n\nThe resultant force at C = %.2f N',f_resultant_c);
printf('\nThe horizontal force at C = %.2f N',n_c);
printf('\nThe vertical force at C = %.2f N',v_c);
printf('\nThe moment about C = %.2f Nm',m_c);
// ---------------------------------------------------------END-------------------------------------------------
|
7069c63b9d28774918c1d841ff14c7c77a1394d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH10/EX10.14/Ex10_14.sce | a417dd5d9111a244c50530bdb82ab13ff1865896 | [] | 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 | 393 | sce | Ex10_14.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 10 Feedback in Amplifiers Pg no. 346
clear;
clc;
//Given
A0=200;//open loop midband gain
B=0.05;//feedback factor beta
fH=100D3;//open loop higher cutoff frequency in hertz
//Solution
fHfb=fH*(1+A0*B);//closed loop higher cutoff frequency in hertz
printf("Closed loop higher cutoff frequency (fH)fb = %.1f MHz\n ",fHfb/10^6);
|
4fc4fa6baf320dc942eababb6fd40b36de623c1b | 2a39d29b2cb27e98632f6810ed3c2a22a56fa8eb | /Materias/LabCalcNum/Rafael/script.sce | c5358dc5c5b712c32ab135dc4d7de9ca341c21e7 | [] | no_license | rafael747/my-stuff | 74358384bc1a5b381d1951dfaef87efdf4cb53c2 | 8614aefdc3ca9afdc1534557f73719af8494f7fa | refs/heads/master | 2021-01-17T12:47:48.206860 | 2020-06-04T15:10:20 | 2020-06-04T15:10:20 | 57,989,835 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 838 | sce | script.sce | function y=f(x)
y=(1 ./(sqrt(x))) + 2.*log10(%e).*log(0.0000810811 + (2.51 ./ (13743.017 .* sqrt(x))))
endfunction
x=0.001:0.001:0.1 //intervalo para estimar a raiz
//plot(x,f(x))
//xgrid()
// raiz entre 0.01 e 0.05
exec("falsaP.sci");
[raiz,x1,it,ea]=falsaP(0.01,0.05,f,1e-6,200)
//raiz = 0.0289678
//iterações = 20
//erro relativo final = 0.0000007
function y=fp(x)
y= -(1 ./(2.*(x.^(3/2)))) - log10(%e) .* 2.51 ./(12743.017) .* 1 ./((0.0000810811 + 2.51 ./ (13743.017 .* sqrt(x))) .* x ^(3/2))
endfunction
exec("newtonraphson.sci");
//[raiz2,x2,it2,ea2]=newtonraphson(0.008,f,fp,1e-6,200)
//raiz = 0.0289678
//iterações = 7
//erro relativo final = 0.00000005
[raiz3,x3,it3,ea3]=newtonraphson(0.08,f,fp,1e-6,3)
// max de iterações
x=0.01:0.01:1
plot(x,f(x))
|
72a40d0890dae5db9a839ab640b97e78bf97e558 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/signal/frmag.sci | ae4c42f878e56847f6ad7cd32c0eda43241b6999 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,712 | sci | frmag.sci | function [xm,fr]=frmag(num,den,npts)
//[xm,fr]=frmag(num[,den],npts)
//Calculates the magnitude of the frequency respones of
//FIR and IIR filters. The filter description can be
//one or two vectors of coefficients, one or two polynomials,
//or a rational polynomial.
//Case 1 (When den is not given):
// num :Vector coefficients/Polynomial/Rational
// :polynomial of filter
//Case 2 (When den is given):
// num :Vector coefficients/Polynomial of filter numerator
// den :Vector coefficients/Polynomial of filter denominator
//Case 1 and 2:
// npts :Number of points desired in frequency response
// xm :Magnitude of frequency response at the points fr
// fr :Points in the frequency domain where
// :magnitude is evaluated
//!
//author: C. Bunks date: 2 March 1988
// Copyright INRIA
[lhs,rhs]=argn(0);
if rhs==2 then,
npts=den;
end,
fr=(0:.5/(npts-1):.5);
dfr=exp(2*%i*%pi*fr);
if rhs==2 then,
//-compat type(num)==15 retained for list/tlist compatibility
if type(num)==15|type(num)==16 then,
xm=abs(freq(num(2),num(3),dfr));
else if type(num)==2 then,
xm=abs(freq(num,poly(1,'z','c'),dfr));
else if type(num)==1 then,
xz=poly(num,'z','c');
xm=abs(freq(xz,1,dfr))
else,
error('Error---Input arguments wrong data type')
end,
end,
end,
else if rhs==3 then,
if type(num)==2 then,
xm=abs(freq(num,den,dfr));
else if type(num)==1 then,
nz=poly(num,'z','c');
dz=poly(den,'z','c');
xm=abs(freq(nz,dz,dfr));
else,
error('Error---Input arguments wrong data type')
end,
end,
end,
end
|
ae798fe212c58c5b72e478e07d5aaa5b8a7cca55 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3843/CH4/EX4.5/Ex4_5.sce | 708744f0bc7e11a2f6556427c8e3933588d1c246 | [] | 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 | 301 | sce | Ex4_5.sce | // Example 4_5
clc;funcprot(0);
// Given data
Q=3500;// kJ
V=2;// m^3
v=0.5342;// m^3/kg
h_1=2860;// kJ
// Calculation
m=V/v;// kg
h_2=(Q/m)+h_1;// kJ/kg
// From the steam tables this interpolates to
T_2=600+((92.6/224)*(100));// °C
printf("\nThe final temperature,T_2=%3.0f°C",T_2);
|
b05d1544d57bf733ac03f3e209b60d1e812fe159 | 449d555969bfd7befe906877abab098c6e63a0e8 | /37/CH4/EX4.3/s3.sci | ee115c16751262da24d2c69157d532153725f5ee | [] | 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,792 | sci | s3.sci | //CIRCULAR LINKED LIST
function[link2]=append(ele,link1)
link2=list(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0);
if(link1(1)(1).add==0)
link1(1)(1).data=ele;
link1(1)(1).add=1;
link1(1)(1).nexadd=1;
link2(1)=link1(1)(1);
else
if(link1(1)(1).nexadd==link1(1)(1).add)
lin2=link1(1)(1);
lin2.data=ele;
lin2.add=link1(1)(1).add+1;
link1(1)(1).nexadd=lin2.add;
lin2.nexadd=link1(1)(1).add;
link2(1)=link1(1)(1);
link2(2)=lin2;
else
lin2=link1(1)(1);
i=1;
while(link1(i)(1).nexadd~=link1(1)(1).add)
i=i+1;
end
j=i;
lin2.data=ele;
lin2.add=link1(i).add+1;
lin2.nexadd=link1(1)(1).add;
link1(i).nexadd=lin2.add;
link2(1)=link1(1)(1);
i=2;
while(link1(i).nexadd~=lin2.add)
link2(i)=(link1(i));
i=i+1;
end
link2(i)=link1(i);
link2(i+1)=lin2;
end
end
endfunction
function[link2]=add(ele,pos,link1);
link2=list(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0);
i=1;
while(i<=pos)
if(link1(i).nexadd==link1(1)(1).add)
break;
else
i=i+1;
end
end
if(link1(i).nexadd~=link1(1)(1).add)
i=i-1;
lin2.data=ele;
lin2.add=i;
j=i;
while(link1(j).nexadd~=link1(1)(1).add)
link1(j).add=link1(j).add+1;
link1(j).nexadd=link1(j).nexadd+1;
j=j+1;
end
link1(j).add=link1(j).add+1;
lin2.nexadd=link1(i).add;
link1(i-1).nexadd=lin2.add;
k=1;
while(k<i)
link2(k)=link1(k);
k=k+1;
end
link2(k)=lin2;
k=k+1;
link2(k)=link1(k-1);
k=k+1
l=k-1;
while(k~=j)
link2(k)=link1(l);
k=k+1;
l=l+1;
end
link2(j)=link1(j-1);;
link2(j+1)=link1(j);
else
if(i==pos)
k=1;
lin2.data=ele;
lin2.add=link1(i-1).add+1;
link1(i).add=link1(i).add+1;
lin2.nexadd=link1(i).add;
link1(i).nexadd=link1(1)(1).add;
k=1;
while(k<pos)
link2(k)=link1(k);
k=k+1;
end
link2(k)=lin2;
link2(k+1)=link1(k)
end
end
endfunction
function[link2]=delete1(pos,link1)
link2=list(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0);
i=1;
j=1;
while(i<pos)
if((link1(j).nexadd==link1(1)(1).add))
j=1;
i=i+1;
else
i=i+1;
j=j+1;
end
end
if(link1(j).nexadd~=link1(1)(1).add)
k=1;
if(j==1)
k=2;
while(link1(k).nexadd~=link1(1)(1).add)
link2(k-1)=link1(k);
k=k+1;
end
link2(k-1)=link1(k);
link2(k-1).nexadd=link2(1).add;
else
lin2=link1(j);
link1(j-1).nexadd=link1(j+1).add;
k=1;
while(link1(k).nexadd~=link1(j+1).add)
link2(k)=link1(k);
k=k+1;
end
link2(k)=link1(k);
k=k+2;
while(link1(k).nexadd~=link1(1)(1).add)
link2(k-1)=link1(k);
k=k+1;
end
link2(k-1)=link1(k);
end
else
link1(j-1).nexadd=link1(1)(1).add;
l=1;
while(link1(l).nexadd~=link1(1)(1).add)
link2(l)=link1(l);
l=l+1;
end
link2(l)=link1(l);
end
endfunction
//Calling Routine:
link1=struct('data',0,'add',0,'nexadd',0);
link1=append(4,link1);//This will actualy create a list and 4 as start
link1=append(6,link1);
link1=add(10,2,link1);
link1=delete1(4,link1);//As the list is circular the 4'th element refers to actualy the 1'st one
disp(link1,"After the above manuplations the list is"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.