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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e89fb4120a17f206baf51a3e90ea94519cb01e3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH17/EX16.10/EX16_10.sce | d8aebb83867ba737f59826de01a53adaf9d1fcd0 | [] | 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 | 662 | sce | EX16_10.sce | // Grob's Basic Electronics 11e
// Chapter No. 16
// Example No. 16_10
clc; clear;
// For the tantalum capacitor shown in Fig. 16–21, determine the capacitance C in both pF and uF units. Also, determine the voltage rating and tolerance.
disp ('Moving from top to bottom, the first two color bands are yellow and violet, which represent the digits 4 and 7, respectively. The third color band is blue, indicating a multiplier of 1,000,000. Therefore the capacitance C is 47*1,000,000 = 47,000,000 pF, or 47 uF. The blue color at the left indicates a voltage rating of 35 V. And, finally, the silver dot at the very top indicates a tolerance of +-10%.')
|
a5469b94c6590154c70ae5e089ffdffe12317c5e | b2efed85f1632d9ed4b7d9f4eebc7126d3074940 | /ted_mini/artandsci_positive/168.ted.sci | aa0aa313fd337d7f84edbf2d3079797f9c9a129f | [] | no_license | joytafty-work/unsupervised_nlp | 837d8ed75eb084b630d75a1deba7bdd53bbcf261 | 7812c7d24bb677c90cf6397ed0e274caba1b884c | refs/heads/master | 2021-01-10T09:24:33.254190 | 2015-11-11T20:40:32 | 2015-11-11T20:40:32 | 45,651,958 | 2 | 7 | null | 2018-01-28T18:54:18 | 2015-11-06T01:42:42 | Scilab | UTF-8 | Scilab | false | false | 13,277 | sci | 168.ted.sci | i have 18 minutes to tell you what happened over the past six million years all right we all have come from a long way here in africa and converged in this region of africa which is a place where 90 percent of our evolutionary process took place and i say that not because i am african but it s in africa that you find the earliest evidence for human ancestors upright walking traces even the first technologies in the form of stone tools so we all are africans and welcome home all right i m a paleoanthropologist and my job is to define man s place in nature and explore what makes us human and today i will use selam the earliest child ever discovered to tell you a story of all of us selam is our most complete skeleton of a three year old girl who lived and died 3 3 million years ago she belongs to the species known as australopithecus afarensis you do n t need to remember that that s the lucy species and was found by my research team in december of 2000 in an area called dikika it s in the northeastern part of ethiopia and selam means peace in many ethiopian languages we use that name to celebrate peace in the region and in the planet and the fact that it was the cover story of all these famous magazines gives you already an idea of her significance i think after i was invited by ted i did some digging because that s what we do to know about my host you do n t just jump into an invitation and i learned that the first technology appeared in the form of stone tools 2 6 million years ago first entertainment comes evidence from flutes that are 35 000 years old and evidence for first design comes 75 000 years old beads and you can do the same with your genes and track them back in time and then the analysis of living humans and chimpanzees teaches us today that we diverged sometime around seven million years ago and that these two species share over 98 percent of the same genetic material i think knowing this is a very useful context within which we can think of our ancestry however then the analysis informs us only about the beginning and the end telling us nothing about what happened in the middle so for us paleoanthropologists our job is to find the hard evidence the fossil evidence to fill in this gap and see the different stages of development because it s only when you do that that you can talk about it s only when you do that that you can talk about how we looked like and how we behaved at different times and how those likes and looks and behaviors changed through time that then gives you an access to explore the biological mechanisms and forces that are responsible for this gradual change that made us what we are today but finding the hard evidence is a very complicated endeavor it s a systematic and scientific approach which takes you to places that are remote hot hostile and often with no access just to give you an example when i went to dikika where selam was found in 99 and it s about 500 kilometers from addis ababa the capital of ethiopia it took us only seven hours to do the first 470 kilometers of the 500 but took four solid hours to do the last only 30 kilometers with the help of the locals and using just shovels and picks i made my way i was the first person to actually drive a car to the spot when you get there this is what you see and it s the vastness of the place which makes you feel helpless and vulnerable and once you make it there the big question is where to start and you find nothing for years and years when i go to places like this which are paleontological sites it s like going to a game park an extinct game park but what you find are not the human remains such as selam and lucy on a day to day basis you find elephants rhinos monkeys pigs etc but you could ask how could these large mammals live in this desert environment of course they cannot but i m telling you already that the environment and the carrying capacity of this region was drastically different from what we have today a very important environmental lesson could be learned from this anyway once we made it there then it s a game park as i said an extinct game park and our ancestors lived in that game park but were just the minorities they were not as successful and as widespread as the homo sapiens that we are to tell you just an example an anecdote about their rarity i was going to this place every year and would do fieldwork here and the assistants of course helped me do the surveys they would find a bone and tell me here is what you re looking for i would say no that s an elephant again another one that s a monkey that s a pig etc so one of my assistants who never went to school said to me listen zeray you either do n t know what you re looking for or you re looking in the wrong place he said and i said why because there were elephants and lions and the people were scared and went somewhere else let s go somewhere else well he was very tired and it s really tiring it was then after such hard work and many frustrating years that we found selam and you see the face here covered by sandstone and here is actually the spinal column and the whole torso encased in a sandstone block because she was buried by a river what you have here seems to be nothing but contains an incredible amount of scientific information that helps us explore what makes us human this is the earliest and most complete juvenile human ancestor ever found in the history of paleoanthropology an amazing piece of our long long history there were these three people and me and i am taking the pictures that s why i am not in how would you feel if you were me you have something extraordinary in your hand but you are in the middle of nowhere the feeling i had was a deep and quiet happiness and excitement of course accompanied by a huge sense of responsibility of making sure everything is safe here is a close up of the fossil after five years of cleaning preparation and description which was very long and i had to expose the bones from the sandstone block i just showed you in the previous slide it took five years in a way this was like the second birth for the child after 3 3 million years but the labor was very long and here is full scale it s a tiny bone and in the middle is the minister of ethiopian tourism who came to visit the national museum of ethiopia while i was working there and you see me worried and trying to protect my child because you do n t leave anyone with this kind of child even a minister so then once you ve done that the next stage is to know what it is once that was done then it was possible to compare we were able to tell that she belonged to the human family tree because the legs the foot and some features clearly showed that she walked upright and upright walking is a hallmark in humanity but in addition if you compare the skull with a comparably aged chimpanzee and little george bush here you see that you have vertical forehead and you see that in humans because of the development of the pre frontal cortex it s called you do n t see that in chimpanzees and you do n t see this very projecting canine so she belongs to our family tree but within that of course you do detailed analysis and we know now that she belongs to the lucy species known as australopithecus afarensis the next exciting question is girl or boy and how old was she when she died you can determine the sex of the individual based on the size of the teeth how you know in primates there is this phenomenon called sexual dimorphism which simply means males are larger than females and males have larger teeth than the females but to do that you need the permanent dentition which you do n t see here because what you have here are the baby teeth but using the ct scanning technology which is normally used for medical purposes you can go deep into the mouth and come up with this beautiful image showing you both the baby teeth here and the still growing adult teeth here so when you measure those teeth it was clear that she started out to be a girl with very small canine teeth and to know how old she was when she died what you do is you do an informed estimate and you say how much time would be required to form this amount of teeth and the answer was three so this girl died when she was about three 3 3 million years ago so with all that information the big question is what do we actually what does she tell us to answer this question we can phrase another question what do we actually know about our ancestors we want to know how they looked like how they behaved how they walked around and how they lived and grew up and among the answers that you can get from this skeleton are included first this skeleton documents for the first time how infants looked over three million years ago and second she tells us that she walked upright but had some adaptation for tree climbing and more interesting however is the brain in this child was still growing at age three if you have a still growing brain it s a human behavior in chimps by age three the brain is formed over 90 percent that s why they can cope with their environment very easily after birth faster than us anyway but in humans we continue to grow our brains that s why we need care from our parents but that care means also you learn you spend more time with your parents and that s very characteristic of humans and it s called childhood which is this extended dependence of human children on their family or parents so the still growing brain in this individual tells us that childhood which requires an incredible social organization a very complex social organization emerged over three million years ago so by being at the cusp of our evolutionary history selam unites us all and gives us a unique account on what makes us human but not everything was human and i will give you a very exciting example this is called the hyoid bone it s a bone which is right here it supports your tongue from behind it s in a way your voice box it determines the type of voice you produce it was not known in the fossil record and we have it in this skeleton when we did the analysis of this bone it was clear that it looked very chimp like chimpanzee like so if you were there 3 3 million years ago to hear when this girl was crying out for her mother she would have sounded more like a chimpanzee than a human maybe you re wondering so you see this ape feature human feature ape feature what does that tell us you know that is very exciting for us because it demonstrates that things were changing slowly and progressively and that evolution is in the making to summarize the significance of this fossil we can say the following up to now the knowledge that we had about our ancestors came essentially from adult individuals because the fossils the baby fossils were missing they do n t preserve well as you know so the knowledge that we had about our ancestors on how they looked like how they behaved was kind of biased toward adults imagine somebody coming from mars and his job is to report on the type of people occupying our planet earth and you hide all the babies the children and he goes back and reports can you imagine how much biased his report would be that s what somehow we were doing so far in the absence of the fossil children so i think the new fossil fixes this problem so i think the most important question at the end is what do we actually learn from specimens like this and from our past in general of course in addition to extracting this huge amount of scientific information as to what makes us human you know the many human ancestors that have existed over the past six million years and there are more than 10 they did not have the knowledge the technology and sophistications that we homo sapiens have today but if this species ancient species would travel in time and see us today they would very much be very proud of their legacy because they became the ancestors of the most successful species in the universe and they were probably not aware of this future legacy but they did great now the question is we homo sapiens today are in a position to decide about the future of our planet possibly more so the question is are we up to the challenge and can we really do better than these primitive small brained ancestors among the most pressing challenges that our species is faced with today are the chronic problems of africa needless to list them here and there are more competent people to talk about this still in my opinion we have two choices one is to continue to see a poor ill crying africa carrying guns that depends on other people forever or to promote an africa which is confident peaceful independent but cognizant of its huge problems and great values at the same time i am for the second option and i m sure many of you are and the key is to promote a positive african attitude towards africa that s because we africans concentrate i am from ethiopia by the way we concentrate too much on how we are seen from elsewhere or from outside i think it s important to promote in a more positive way on how we see ourselves that s what i call positive african attitude so finally i would like to say so let s help africa walk upright and forward then we all can be proud of our future legacy as a species thank you |
4332fe94a82df73a47700e01a8fe2a5b44759dff | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH23/EX14.23.17/Ex14_23_17.sce | 9f8d59de893637ea67d450e8a68ea6ee1470674c | [] | 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 | 912 | sce | Ex14_23_17.sce | //Section-14,Example-1,Page no.-PC.112
//To calculate the pH values of the following.
clc;
C_HCl=0.001 //(M)
C_1=C_HCl //Since HCl is a strong acid,[H3O+]=[HCl](M)
pH_1=-log10(C_1)
disp(pH_1,'pH of 0.001 M HCl')
C_NaOH=0.0001 //(M)
C_2=C_NaOH //Since NaOH is a strong base so [OH-]=[NaOH](M)
pOH=-log10(C_2)
pH_2=14-pOH
disp(pH_2,'pH of 0.0001 M NaOH')
C_BaOH2=0.001 //(M)
C_31=2*C_BaOH2 // [OH-]=2*[Ba(OH)2](M)
k_w=10^-14
C_32=k_w/(C_31) //(M)
pH_3=-log10(C_32)
disp(pH_3,'pH of 0.001 M Ba(OH)2')
M_H2SO4=0.0049 //Mass of H2SO4 (gm)
V_req=200 //Volume of solution to be prepared(ml)
Mo=(M_H2SO4/98)/(V_req/1000) //Molarity of H_2SO_4 solution(M)
C_4=2*Mo //[H_3O+](M)
pH_4=-log10(C_4)
disp(pH_4,'pH of the given solution')
|
8a422a1b3fef9507ae1a0adbb24b6340eefcfb8d | 24d10061002a530e6bdf0445e4de131efcc70662 | /devtest/rest_demo/Tests/Sub.tst | f76dd11ba6d7f34135d41e6b06fbfa6fe2742773 | [] | no_license | joel-nesmith/devtest | 95a8f9d33024668cfabd633b07a25b147d209578 | bc3d584c1a4d7e334b7e1c5639e2ea7f8fd870c7 | refs/heads/master | 2020-03-19T03:27:30.566633 | 2018-06-14T12:47:04 | 2018-06-14T12:47:04 | 135,729,886 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,712 | tst | Sub.tst | <?xml version="1.0" ?>
<TestCase name="Sub" version="5">
<meta>
<create version="10.1.0" buildNumber="10.1.0.283" author="admin" date="06/08/2018" host="NESJO02" />
<lastEdited version="10.1.0" buildNumber="10.1.0.283" author="admin" date="06/08/2018" host="NESJO02" />
</meta>
<id>806EAC186B1211E8BEF7FAAA20524153</id>
<Documentation>Put documentation of the Test Case here.</Documentation>
<IsInProject>true</IsInProject>
<sig>ZWQ9NSZ0Y3Y9NSZsaXNhdj0xMC4xLjAgKDEwLjEuMC4yODMpJm5vZGVzPTk1MDM2NjY2</sig>
<subprocess>true</subprocess>
<initState>
<Parameter>
<key>fl_primeXml</key>
<value>NA</value>
<name><< description >></name>
</Parameter>
</initState>
<resultState>
<Parameter>
<key>LIVE_INVOCATION_PORT</key>
<value></value>
<name>Set in project.config configuration</name>
</Parameter>
<Parameter>
<key>LIVE_INVOCATION_SERVER</key>
<value></value>
<name>Set in project.config configuration</name>
</Parameter>
<Parameter>
<key>fl_primeXml</key>
<value></value>
<name>Set 1st in Set up a work field</name>
</Parameter>
<Parameter>
<key>lisa.Count Number of Entries in List.rsp</key>
<value></value>
<name>Set 1st in Count Number of Entries in List</name>
</Parameter>
<Parameter>
<key>lisa.Count Number of Entries in List.rsp.time</key>
<value></value>
<name>Set 1st in Count Number of Entries in List</name>
</Parameter>
<Parameter>
<key>lisa.Output Log Message.rsp</key>
<value></value>
<name>Set 1st in Output Log Message</name>
</Parameter>
<Parameter>
<key>lisa.Output Log Message.rsp.time</key>
<value></value>
<name>Set 1st in Output Log Message</name>
</Parameter>
<Parameter>
<key>lisa.Set up a work field.rsp</key>
<value></value>
<name>Set 1st in Set up a work field</name>
</Parameter>
<Parameter>
<key>lisa.Set up a work field.rsp.time</key>
<value></value>
<name>Set 1st in Set up a work field</name>
</Parameter>
<Parameter>
<key>lisa.vse.execution.mode</key>
<value></value>
<name>Set in project.config configuration</name>
</Parameter>
<Parameter>
<key>sub_CountOfOccurs</key>
<value></value>
<name>Set 1st in Count Number of Entries in List</name>
</Parameter>
</resultState>
<deletedProps>
</deletedProps>
<Node name="Count Number of Entries in List" log=""
type="com.itko.lisa.test.NoTransNode"
version="1"
uid="CFAFFA776B1211E8BEF7FAAA20524153"
think="0"
useFilters="true"
quiet="true"
next="end" >
<!-- Filters -->
<Filter type="com.itko.lisa.xml.FilterXMLXPath">
<valueToFilterKey>fl_primeXml</valueToFilterKey>
<prop>sub_CountOfOccurs</prop>
<xpathq>count(/Tests/Test/Test_Val)</xpathq>
</Filter>
</Node>
<Node name="abort" log=""
type="com.itko.lisa.test.AbortStep"
version="1"
uid="806EAC1D6B1211E8BEF7FAAA20524153"
think="0h"
useFilters="true"
quiet="true"
next="" >
</Node>
<Node name="fail" log=""
type="com.itko.lisa.test.Abend"
version="1"
uid="806EAC1C6B1211E8BEF7FAAA20524153"
think="0h"
useFilters="true"
quiet="true"
next="abort" >
</Node>
<Node name="end" log=""
type="com.itko.lisa.test.NormalEnd"
version="1"
uid="806EAC1B6B1211E8BEF7FAAA20524153"
think="0h"
useFilters="true"
quiet="true"
next="fail" >
</Node>
</TestCase>
|
2c13e7a09b45457ccb8acd117c844e6c80bc873c | bd9ba5abb6de1e9d9485b5e98b2b68868aab21db | /Lab/signal functions/Decaying exponential/code.sce | c483f6b1d80fb3f4100e563406083fb1b972edce | [] | no_license | ShubhamRattra/Scilab_programs | c61b6538a064afe82c99507c1064cd55bbd870fa | de2bf6ab0de0b1a19c4903bb13819edc39f93d0e | refs/heads/master | 2023-03-04T17:53:58.414180 | 2021-02-11T08:08:11 | 2021-02-11T08:08:11 | 296,920,175 | 2 | 2 | null | 2021-01-11T15:53:39 | 2020-09-19T17:37:42 | Scilab | UTF-8 | Scilab | false | false | 248 | sce | code.sce | --> a = 0.6;
--> n = 0:10;
--> x = a^n
x =
column 1 to 6
1. 0.6 0.36 0.216 0.1296 0.07776
column 7 to 9
0.046656 0.0279936 0.0167962
column 10 to 11
0.0100777 0.0060466
--> plot2d3(x)
|
b11a2449543401d6ad4534af547727fe12ecfdba | 449d555969bfd7befe906877abab098c6e63a0e8 | /1388/CH10/EX10.2/10_2.sce | d0ac42ce75b4a233f45d29be691663b6256532b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 137 | sce | 10_2.sce | clc
//initialisation of variables
k= 2.63*10^-3 //min^-1
//CALCULATIONS
t1= 0.693/k
//RESULTS
printf (' Half time= %.f min',t1+1)
|
33821d61150d1cda8fe51a074a682a07915665b6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3809/CH5/EX5.2/EX5_2.sce | 925718d881c48b6be0e6b8a423883866371ad819 | [] | 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 | 763 | sce | EX5_2.sce | //Chapter 5, Example 5.2
clc
//Initialisation'
i=6 //current in amp
n=500 //no of turns
l=0.4 //mean circumference
pi=3.14 //pi
uo=4*pi*10**-7 //dielectric constant
a=300*10**-6 //area
//Calculation
f=i*n //force
h=f/l //magnetic field strength
B=uo*h //magnetic induction
phi=B*a //total flux
//Results
printf("(a) Force F = %d ampere-turns\n",f)
printf("(b) Magnetic Field Strength, H = %d A/m\n",h)
printf("(c) Magnetic Induction, B = %.2f mT\n",B*10**3)
printf("(d) Total Flux, phi = %.2f uWb\n",phi*10**6)
|
7c034cac30388aa555629e043fbf9968800457a5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3864/CH9/EX9.3/Ex9_3.sce | 522658e0f40ddba24a177a23c2732a4c5477086f | [] | 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 | 775 | sce | Ex9_3.sce | clear
//
//
//Initilization of Variables
//Flange
b=100 //mm //Width
D=80 //mm //Overall Depth
t=10 //mm //Thickness of web and flanges
L=3000 //mm //Length of strut
E=200*10**3 //N/mm**2 //Modulus of Elasticity
//Calculations
//Let centroid be at depth y_bar from top fibre
y_bar=(b*t*t*2**-1+(D-t)*t*((D-t)*2**-1+t))*(b*t+(D-t)*t)**-1 //mm
//M.I at x-x axis
I_x=1*12**-1*b*t**3+b*t*(y_bar-t*2**-1)**2+1*12**-1*t*((D-t))**3+t*((D-t))*((((D-t)*2**-1)+t)-y_bar)**2
//M.I at y-y axis
I_y=1*12**-1*t*b**3+1*12**-1*(D-t)*t**3 //mm**3
//Least M.I
I=I_y
//Since both ends are hinged
//Feective Length=Actual Length
L=3000 //mm
l=3000 //mm
//Buckling Load
P=%pi**2*E*I*(l**2)**-1*10**-3 //KN
//Result
printf("\n The Buckling Load for strut of tee section %0.2f KN",P)
|
c0b63d109cf04e75c4a257c08b4694dfbacb1296 | 3daf46b810f462d6c8e936bef696ade9bd2e41a8 | /AulaPratica1/Resolve_com_LU.sce | dbb5d87840597fdf2b88b71cc3714b91b53a301a | [] | no_license | JPMarciano/Algebra-Linear-Numerica | 4575a2bd95a4b056100a7d8adaaeb2a0a0fee2d4 | 6d2c8555650b5f8a156f3d1c207c77f6986b8fcd | refs/heads/master | 2021-03-12T14:27:28.360160 | 2020-05-11T14:59:05 | 2020-05-11T14:59:05 | 246,628,921 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 576 | sce | Resolve_com_LU.sce | function X =Resolve_com_LU(C, B, P)
// C e B são como especificados no enunciado e P é a matriz de permutações
n = size(C,1);
m = size(B,2);
//permuta os elementos dos vetores b_i
B = P*B;
//
Y=zeros(n,m);
// resolve LY=B, ou seja, resolve L y_i = b_i com 1<=i<=m
for j=1:m
Y(1, j)=B(1,j);
for i=2:n
Y(i,j)=(B(i,j)-C(i,1:i)*Y(1:i,j));
end
end
X=zeros(n,m);
// resolve UX=Y, ou seja, resolve U x_i = y_i com 1<=i<=m
for j=1:m
X(n, j)=Y(n,j)/C(n,n);
for i=n-1:-1:1
X(i,j)=(Y(i,j)-C(i,i:n)*X(i:n,j))/C(i,i);
end
end
endfunction
|
8a1c4bd73a33433b574e10ff1b6df2c6709356dd | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH13/EX13.16/ex_13_16.sce | 7d4ef24c94e942c6e2a259f0f138b9a822a9b712 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 324 | sce | ex_13_16.sce | //Print the alternate characters of the file output1.dat
warning('off');
fstream1=mopen('output1.dat','r');
for a=1:13
ch=mfscanf(fstream1,"%c"); //Read data from file output.dat
printf("%c ",ch); //Print the data
mseek(1,fstream1,'cur'); //Skeep 1 character after every reading
end
mclose(fstream1); |
f40154e3ce9481a71be9f0a7d359072ec4594d6e | 449d555969bfd7befe906877abab098c6e63a0e8 | /28/CH6/EX6.7/ex6_7.sce | 466502438041219fb36259faf1f6c04645d69469 | [] | 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 | 564 | sce | ex6_7.sce | s=%s;
syms eps
p=s^5+s^4+2*s^3+2*s^2+3*s+5
r=coeff(p);
n=length(r);
routh=[r([6,4,2]);r([5,3,1])]
syms eps;
routh=[routh;eps,-det(routh(1:2,2:3))/routh(2,2),0];
routh=[routh;-det(routh(2:3,1:2))/routh(3,1),-det(routh(2:3,2:3))/routh(4,2),0];
routh=[routh;-det(routh(4:5,1:2))/routh(5,1),0,0];
disp(routh,"routh=")
// to check stability
routh(4,1)=8-limit(5/eps,eps,0);
disp(routh(4,1),"routh(4,1)=")
routh(5,1)=limit(routh(5,1),eps,0);
disp(routh(5,1),"routh(5,1)=")
printf("There are two sign changes of first column hence the system is unstable") |
fde02b79c452b801a6c9c040aacb08a4c3fb0e02 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2150/CH7/EX7.3/ex7_3.sce | 0aa27aea023fb66a543c467e6de7e1eb3f598bb5 | [] | 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 | 327 | sce | ex7_3.sce | // Exa 7.3
clc;
clear;
close;
// Given data
I_DSS = 10;// in mA
V_GS = 0;// in V
I_D = 0;// in mA
V_P = -4;// in V
V_GS= 0:-0.1:V_P;// in V
I_D = I_DSS*(1-(V_GS/V_P))^2;// mA
plot(V_GS,I_D);
xlabel("V_gs in volts");
ylabel("I_D in mA");
title("Transfer characteristics for an n-channel depletion type MOSFET")
|
2939c368a2cae4b92c47837fddbfe77857fcd74b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2318/CH3/EX3.69.b/ex_3_69_b.sce | 7996df050ea5a48ee135137ecb3772017fef2057 | [] | 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 | 866 | sce | ex_3_69_b.sce | //Example 3.69.b:resistance and capacitance
clc;
clear;
close;
rab=521;//ohms
lab=2;//micro-H
cab=550;//pF
rbc=1200;//ohms
lbc=5;//micro-H
cbc=250;//pF
rda=12.1;//ohms
rda1=1.5;//m-ohms
f=10;//kHz
cda=0.045;//micro-F
zab=1/((1/(rab+(%i*2*%pi*f*10^4*lab*10^-6)))+(%i*2*%pi*f*10^3*cab*10^-12));//
zbc=1/((1/(rbc+(%i*2*%pi*f*10^4*lbc*10^-6)))+(%i*2*%pi*f*10^3*cbc*10^-12));//
zda=rda+((1/((1/rda1*10^-6)+(%i*2*%pi*f*10^3*cda*10^-6))));//;//
zcd=(zbc*zda)/zab;//
zab1=521;//ohms
zbc1=1200;//ohms
rda1=12.1;//ohms
f1=10;//kHz
cda1=0.045;//micro-F
zda1=rda1-(%i/(2*%pi*f1*10^3*cda1*10^-6));//
zcd1=(zbc1*zda1)/zab1;//
c1=1/(2*%pi*f*10^3*imag(zcd1));//
c=1/(2*%pi*f*10^3*imag(zcd));//
per=((real(zcd1)-real(zcd))/real(zcd))*100;//
pec=((imag(zcd1)-imag(zcd))/imag(zcd))*100;//
disp(per,"error in R is,(%)=")
disp(pec,"error in C is,(%)=")
//answer is wrong in the textbook
|
4222367729567a8597c7568f65464c06998fe6d6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1184/CH16/EX16.3/Ex16_3.sce | db0428eb3b6d8933a10947de19289852f51b9290 | [] | 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 | 212 | sce | Ex16_3.sce | //Example 16-3,Page No- 623
clear
clc
printf('The c band is approximately 4 to 6 Ghz since a waveguide \n acts as a high pass filter with cut off frequency of \n 9.08 Ghz it will not pass c band signal')
|
54f10d401d226600e07a4193543a00fc65d04803 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1931/CH10/EX10.9/9.sce | b5fe1d0d5e3d94ada9ade76ff3a2b644f347d300 | [] | 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 | 406 | sce | 9.sce | clc
clear
//INPUT DATA
Eg=1.2*1.6*10^-19//The energy gap of intrinsic semiconductor in J
T1=600//Temperature in K
T2=300//Temperature in K
e=1.6*10^-19//charge of electron in coulombs
kb=1.38*10^-23//Boltzmann's constant m^2 Kg s^-2 k^-1
//CALCULATION
x=exp((-Eg/(2*kb))*((1/T1)-(1/T2)))/10^5//The ratio of conductiveness*10^5
//OUTPUT
printf('The ratio of conductiveness is %3.2f*10^5',x)
|
f68127123e21bd014d8bb5bdd0c1da76998ee6de | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH7/EX7.45/45.sci | 4ba0b751e565b3668f89f2902241ab762621a873 | [] | 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 | 583 | sci | 45.sci | clc;
clear all;
disp("Required tube length")
m=50/60;//kg/sec
di=2.5/100;//m inner diameter
ts=100;// degree C
ti=25;// degree C
to=55;// degree C
cp=4187;//J/kg.C
t1=100-25;
t2=100-55;
tm=(t1-t2)/log(t1/t2);
Q=m*cp*(to-ti);//W
As=%pi/4*di^2;
;tw=(ts+(ti+to)/2)/2;// degree C temperature at which the properties of water should be taken
mu=405*10^(-6);// kg.m/s
rho=977.8;//kg/m^3
k=66.72/100;//W/m.C
U=m/(As*rho);//m/s
Re=rho*U*di/mu;
Pr=mu*cp/k;
Nu=0.023*Re^0.8*Pr^0.4;
h=Nu*k/di;// W/m^2.C
L=Q/(h*%pi*di*tm);//m
disp("m",L,"Required tube length =")
|
688ecb82916d52941d9b00bb302882eba2bb3798 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1019/CH2/EX2.9/Example_2_9.sce | 9bbf918bcee94273ca4f293d63c3372b93b4ee09 | [] | 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 | 781 | sce | Example_2_9.sce | //Example 2.9
clear;
clc;
//Given
R=8.314;// gas constant in J K^-1 mol^-1
t1=298;// temperature in K
p1=303975;// initial pressure in Pa
v1=1.43;//initial volume in dm^3
v2=2.86;// final volume in dm^3
Cp=29.1;// heat capacity at constant pressure in J mol^-1 K^-1
// To determine t2,p2,w,delH and DelE
Cv=Cp-R;//heat capacity at constant volume
t2=t1*((v1/v2)^(R/Cv));//final temperature in K
p2=p1*((v1/v2)^(Cp/Cv));//final pressure in Pa
n=(p1*v1*0.001)/(R*t1);//number of moles
delE=n*Cv*(t2-t1);//delE in J
w=delE;//work done in J
delH=n*Cp*(t2-t1);//enthalpy change in J
mprintf('Final Temperature = %f K',t2);
mprintf('\n Final Pressure = %f Pa',p2);
mprintf('\n delE = %f J',delE);
mprintf('\n delH = %f J',delH);
mprintf('\n w = %f J',w);
//end |
c1a2dfa2f1b89e50efe5c3aa5c028db40aae6432 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2741/CH6/EX6.11/Chapter6_Example11.sce | f0eb366263e2032100ba80a3223125481fb01160 | [] | 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 | 698 | sce | Chapter6_Example11.sce | clc
clear
//Input data
T1=450;//The temperature of the source in k
H1=1000;//The amount of heat taken by the engine at T1 in calories
T2=350;//The temperature of the sink in K
//Calculations
H2=(T2/T1)*H1;//The amount of heat rejected to the sink in each cycle in calories
n=(1-(T2/T1))*100;//The efficiency of the engine in percent
W=H1-H2;//The work done by the engine in each cycle in calories
W1=W*4.2;//The work done by the engine in each cycle in joules
//Output
printf('The amount of heat rejected to the sink in each cycle is H2 = %3.2f cals \n The efficiency of the engine is %3.2f percent \n The work done by the engine in each cycle is W = %3.2f joules',H2,n,W1)
|
c11a33753132af1e717ca8bfb2c2585853e967ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /2399/CH1/EX1.12.1/Example_1_12_1.sce | c3dad185254f0e3da880a90528aa31f26b170b8e | [] | 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 | 320 | sce | Example_1_12_1.sce | // Example 1.12.1
clc;
clear;
Bandwidth = 2d6; //Bandwidth of channel
Signal_to_Noise_ratio = 1; //Signal to Noise ratio of channel
Capacity = Bandwidth * log2(1 + Signal_to_Noise_ratio); //computing capacity
Capacity=Capacity/10^6;
printf("Maximum capacity of channel is %d Mb/sec.",Capacity);
|
4fc342309fc0c209006562c12be60e5891b6c7f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1439/CH4/EX4.13/4_13.sce | 223a4cb4e9ca0509bdbfc7aa943a3909660893bb | [] | 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 | 319 | sce | 4_13.sce | clc
//initialisation of variables
dH293= -115595.8 //cal
T1= 1500 //K
T2= 298 //K
k1= -5.6146 //cal deg^-1 mole^-1
k2= 1.8931*10^-3 //cal deg^-2 mole^-1
k3= 4.723*10^-7 //cal deg^-3 mole^-1
//CALCULATIONS
dH=dH293+ k1*(T1-T2)+(k2*(T1^2-T2^2)/2)+(k3*(T1^3-T2^3)/3)
//RESULTS
printf ('dH1500= %.f cal ',dH)
|
b1718598ff1e8c6d0f96032742b0f1976d2d12b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1199/CH2/EX2.11/2_11.sci | 69aeff402c25078b1a47cd56f5d71c5a1c194ab9 | [] | 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 | 146 | sci | 2_11.sci | //2.11
clc;
RAB=125;
Rtotal=5000;
R2=75/125*Rtotal;
R4=2500;
ei=5;
eo=[(R2/Rtotal)-(R4/Rtotal)]*ei;
printf("Output voltage = %.1f V",eo)
|
5965a2505776342b5394ea82a94f4c072ba2d264 | d7087cf730b37f76170323e080c090f8094979ac | /test/lexer/test3.tst | b27daab708bb3e993c042c4e96191c1f6b7e16eb | [] | 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 | 192 | tst | test3.tst | <cmd>
./main_test/lexer_tst 'echo "we are the \"best ones\" yeah"; echo "Share our \\\"SHELL\\\" yeah"; echo "Share\\" our \\" shell";'</cmd>
<ref>
cat ./lexer/test3.ref</ref>
<ret>
0</ret>
|
8465fec0371f935137449d50111e76517122ff04 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2231/CH1/EX1.37/Ex_1_37.sce | a326cadcd956d417440aaf5091d4f3cac046fb87 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 501 | sce | Ex_1_37.sce | //Example 1_37
clc;
clear;close;
//Given data:
V=300;//V
RL=10;//ohm
L=0;//H
Ith=100;//A
f=2000;//Hz
dv_by_dt=100*10^6;//V/s
//dv/dt=(vth(tau)-vth(0))/tau
//dv/dt=RL*(1-0.368)*V/(R+RL)/((R+RL)*C)
R=V/Ith;//ohm
C=RL*(1-0.368)*V/(R+RL)/(R+RL)/dv_by_dt
disp(R,"Value of R(ohm)");
disp(C,"Value of C(F)");
Ploss=1/2*C*V^2*f;//W
disp(Ploss,"Power loss in snubber circuit(W)")
disp("Power rating of resitance is "+string(Ploss)+" W as all energy will be disspated in the resistance.")
|
b86f5768af7b56bec2b64880780369ee137d3431 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH20/EX20.08/20_08.sce | 22b05fa6857ac7b76d99b24d8a37f4b1baffef72 | [] | 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 | 796 | sce | 20_08.sce | //Problem 20.08: A 100 kVA, 4000 V/200 V, 50 Hz single-phase transformer has 100 secondary turns. Determine (a) the primary and secondary current, (b) the number of primary turns, and (c) the maximum value of the flux.
//initializing the variables:
S = 100000; // in VA
V1 = 4000; // in Volts
V2 = 200; // in Volts
N2 = 100; // sec turns
f = 50; // in Hz
//calculation:
//Transformer rating = V1*I1 = V2*I2
//primary current
I1 = S/V1
//secondary current
I2 = S/V2
//primary turns
N1 = N2*V1/V2
//maximum flux
//assuming E2 = V2
Phim = V2/(4.44*f*N2)
printf("\n\n Result \n\n")
printf("\n (a)primary current is %.0f A and secondary current is %.0f A", I1, I2)
printf("\n (b)number of primary turns is %.0f", N1)
printf("\n (c)maximum value of the flux is %.2E Wb",Phim) |
166fa4be48fbfa862dec79dc60c37c23229fe411 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH13/EX13.8/ex_13_8.sce | d41c74e5e2db8257ce9d94463862f550143dbd27 | [] | 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,268 | sce | ex_13_8.sce |
clc
//soltuion
//given
P=90*10^3//W
N=250//rpm
ts=40//N/mm^2
q=0.0175
tb=30//N/mm^2
//let d be dia
T=(P*60*1000)/(2*%pi*N)//N-mm
//T/J=ts/(d/2)
//T/(%pi*d^4/32)=ts/(d/2)//considering strength iof shaft
d1=(35*10^6/80)^(1/3)//mm
//considering rigidity
//T/J=(C*q/l)
//T/(%pi*d^4/32)=84000*0.0175/(20*d)
d2=(35*10^6/73.5)^(1/3)//mm
printf("the value of d1 and d2 is,%f mm\n,%f mm\n",d1,d2)
printf("taking larger value into consideration i,e d2,we take d=d2=80mm\n")
d=80//mm
D=2*d//mm
printf("the outer dia of muff is,%f mm\n",D)
L=1.5*d//mm
printf("the length of muff is,%f mm\n",L)
//from table 13.1,we find that shaft of dia 70mm diametr
w=25//width of diametre
t1=14//mm//thickness of key
l=120//mm
//let tc be inducesd stress
//Tmax=(%pi/16)*tc*[(D^4-d^4)/D]
tc=T/{(%pi/16)*[(D^4-d^4)/D]}
printf("the induce stres is,%f N/mm^2\n",tc)
printf("the induced shear stress is less then 14,hence it is safe design\n ")
tf=0.5*d//mm
printf("the thicknes of flange is,%f mm\n",tf)
//let d1 be nominal dia of bolts
n=4
D1=3*d//mm
//Tqmax=(%pi/4)*d1^2*tb*n*D1/2
d1=sqrt(T/11311)//mm
D2=4*d//mm
tp=0.25*d
printf("the nominal dia of bolts is,%f mm\n",d1)
printf("the outer dia of flange is,%f mm\n",D2)
printf("the thickness of protective circumferencial flange is,%fmm",tp)
|
3731db3514f7f8399714382d49d6ab6a961323f4 | 1ebbdce5d3f3daa6d9e8b439410e447941bc49f5 | /résolution numérique/livrable/schéma explicite sans matrice/[EXPLICITE] paramètres.sce | 9736646cd75d182f88e8b87169e364e1c4a03fbe | [] | no_license | sebastienbaur/legionella_proliferation_modeling | 2aff0e2499584e99c07116a700e43218976b9b12 | ae9b5d4dde1912a98584c6319eae41980355ef03 | refs/heads/master | 2020-03-07T15:25:49.881820 | 2018-03-31T17:27:52 | 2018-03-31T17:27:52 | 127,554,634 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,159 | sce | [EXPLICITE] paramètres.sce | //------------------------------------------------------------------------------
// PARAMETRES DU MODELE
//------------------------------------------------------------------------------
//Température
Temperature 20;
T_opt_L = 37.5; // température optimale de croissance des légionnelles
T_i_L = 55; // paramètre d'ajustement de la courbe
T_opt_A = 43; // température optimale de croissance des amibes
T_i_A = 55; // paramètre d'ajustement de la courbe
// constantes de Monod :
k_1 = 25*10^(-5)*exp(-((Temperature - T_opt_L)/(T_i_L - T_opt_L))^2) ; // constante de vitesse légionnelle-nutriment
k_2 = 0.2 ;
k_3 = 9; // constante de vitesse légionnelle-amibe
//k_4 = 0.2 ;
k_5 = 30*10^(-5)*exp(-((Temperature - T_opt_A)/(T_i_A - T_opt_A))^2) ; // constante de vitesse amibe-nutriment
k_6 = 0.2 ;
// masses volumiques
rho_A = 1;
rho_L = 1;
// fraction volumique de la matrice polymère
epsilon = 0.3;
// coefficients de diffusion
D = 10^(-10);
D_b = 10^(-10); // 3*10^(-10) valeur plus adaptée
// coefficients de mortalité biocide-amibe et biocide-legionnelle
k_m_a = 40*10^(-5);
k_m_l = 40*10^(-5);
// coefficient d'arrachement
lambda = 5;
|
5b5dbd6000194e2a91a988b5ad9a4e94172ee765 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.1_18.tst | 27cc3d8c58716954efa7df353b8a01b4e5aad2cc | [] | 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,620 | tst | bow.1_18.tst | 1 10:0.5 19:0.05263157894736842 30:0.1 66:0.25 149:1.0 203:1.0
1 4:0.09090909090909091 11:1.0 49:0.08333333333333333 249:0.125 345:1.0
1 3:0.3333333333333333 13:0.3333333333333333 14:0.07407407407407407 17:0.03225806451612903 28:1.0 30:0.1 84:0.2 187:1.0 298:1.0 883:1.0
1 4:0.09090909090909091 6:0.5 10:0.5 14:0.07407407407407407 17:0.06451612903225806 25:0.5 74:0.2 84:0.2 665:1.0 721:1.0
1 4:0.09090909090909091 84:0.2 150:1.0 156:1.0 542:1.0 1627:1.0
1 6:0.5 13:0.3333333333333333 14:0.037037037037037035 19:0.05263157894736842
1 6:0.5 10:0.5 13:0.3333333333333333 14:0.037037037037037035 17:0.06451612903225806 19:0.05263157894736842 49:0.08333333333333333 68:1.0 69:0.5 137:0.5 181:0.5 517:1.0 952:1.0
1 14:0.037037037037037035 17:0.06451612903225806 25:0.5 30:0.1 72:1.0 121:0.16666666666666666 404:1.0 469:0.5 475:1.0 698:1.0
1 13:0.3333333333333333 19:0.10526315789473684 20:1.0 55:0.25 74:0.4 159:0.125 160:1.0
1 13:0.3333333333333333 14:0.037037037037037035 17:0.03225806451612903 30:0.1 69:0.25 121:0.16666666666666666 149:1.0 160:2.0 183:0.25 226:1.0 249:0.125 286:1.0 556:1.0 611:1.0 1353:1.0
1 4:0.09090909090909091 6:0.5 10:0.5 14:0.037037037037037035 54:0.1 84:0.2 86:1.0 93:1.0 569:1.0 663:1.0
1 25:0.5 396:1.0 494:1.0
1 25:0.5 30:0.1 84:0.2 148:1.0 286:1.0 326:1.0 409:1.0
1 3:0.3333333333333333 6:0.5 13:0.3333333333333333 14:0.1111111111111111 25:0.5 28:1.0 29:1.0 42:0.25 43:0.3333333333333333 56:0.3333333333333333 60:1.0 181:0.5 207:0.2 214:2.0 236:0.3333333333333333 237:1.0 409:1.0 480:1.0 556:1.0 581:0.5 794:1.0 920:1.0
1 54:0.1 69:0.25 236:0.3333333333333333 448:1.0 556:1.0 652:1.0
1 4:0.09090909090909091 14:0.037037037037037035 54:0.1 64:1.0 171:0.5 598:0.5
1 4:0.09090909090909091 14:0.037037037037037035 19:0.05263157894736842 25:0.5 69:0.25 542:1.0 851:1.0
1 349:0.3333333333333333
1 10:0.5 13:0.3333333333333333 25:0.5 69:0.25 70:1.0 193:0.5 1723:1.0
1 25:0.5 30:0.1 64:1.0 67:1.0 70:1.0 183:0.25 1356:1.0
1 279:1.0
1 14:0.037037037037037035 69:0.25 1574:1.0
1 6:0.5 14:0.037037037037037035 30:0.1 1671:1.0
1 4:0.09090909090909091 19:0.05263157894736842 25:0.5 66:0.25 679:1.0
1 10:0.5 19:0.05263157894736842 25:0.5 66:0.25 199:0.14285714285714285 237:1.0 394:1.0 1124:1.0 1234:1.0
1 19:0.05263157894736842 69:0.25 84:0.2 121:0.16666666666666666 189:0.25 249:0.125 355:1.0 489:1.0 511:1.0 1190:1.0
1 3:0.3333333333333333 6:0.5 14:0.07407407407407407 17:0.06451612903225806 19:0.10526315789473684 20:1.0 21:1.0 74:0.2 91:1.0 181:0.5 226:1.0 249:0.125 274:1.0 602:1.0 705:1.0 856:1.0 911:1.0
1 17:0.06451612903225806 19:0.05263157894736842 837:1.0 842:1.0
1 6:0.5 14:0.037037037037037035 17:0.06451612903225806 69:0.5 381:1.0 486:1.0 611:1.0 837:1.0
1 14:0.037037037037037035 17:0.03225806451612903 20:1.0 30:0.1 184:0.5 250:1.0 349:0.3333333333333333 625:1.0 924:1.0
1 3:0.3333333333333333 4:0.18181818181818182 349:0.3333333333333333
1 6:0.5 14:0.07407407407407407 17:0.03225806451612903 30:0.1 133:1.0 226:1.0 377:1.0 465:1.0
1 25:0.5 167:1.0 901:1.0
1 6:0.5 13:0.6666666666666666 14:0.1111111111111111 17:0.06451612903225806 19:0.05263157894736842 49:0.08333333333333333 74:0.2 84:0.2 256:1.0 442:1.0 553:1.0 837:1.0 1650:1.0
1 17:0.03225806451612903 20:1.0 25:0.5 147:1.0 171:1.0 284:1.0 828:1.0
1 13:0.3333333333333333 127:1.0 249:0.125 441:1.0
1 14:0.037037037037037035 17:0.03225806451612903 475:1.0 883:1.0
1 4:0.09090909090909091 13:0.3333333333333333 202:0.14285714285714285
1 19:0.05263157894736842 20:1.0 21:1.0 43:0.3333333333333333 983:1.0
1 3:0.3333333333333333 14:0.07407407407407407 17:0.03225806451612903 25:1.0 28:1.0 84:0.2 298:1.0 326:1.0 462:1.0 716:1.0 1450:1.0
|
27056941ef73abce167b658e0bd2b280736cb5d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH14/EX14.12/Ch014Ex12.sce | e20e2bf745ca145927718ab9095225b89057f1c8 | [] | 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 | 382 | sce | Ch014Ex12.sce | // Scilab code Ex14.12 : Pg:725(2011)
clc;clear;
I_E = 2; // Emitter current, mA
alpha = 0.88; // Emitter current amplification factor
I_C = alpha*I_E; // Collector current, mA
I_B = I_E - I_C; // Base current of BJT in CB mode, mA
printf("\nThe base current of BJT in CB mode = %4.2f mA", I_B);
// Result
// The base current of BJT in CB mode = 0.24 mA
|
9949b01116e3c8b4863b978873261409e4330ff1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2204/CH5/EX5.6/ex5_6.sce | b866fe18d2320755797c327c0d5992c13bb2ab28 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 538 | sce | ex5_6.sce | // Exa 5.6
clc;
clear;
close;
// Given data
f_c = 2;// in kHz
f_c = f_c * 10^3;// in Hz
C2 = 0.033;// in µF
C2 = C2 * 10^-6;// in F
C3 = C2;// in F
C = C2;// in F
R2 = 1/(2*%pi*f_c*C);// in ohm
R2 = R2 * 10^-3;// in k ohm
R3=R2;// in kohm
disp(R2,"The value of R2 and R3 in kΩ is : ");
//R_F= 0.586*R1
R1= 2*R2*(1+0.586)/0.586;// in k ohm
disp(R1,"The value of R1 in kΩ is : ")
R1= 15;// in k ohm
R_F = 0.586 * R1;// in k ohm
disp(R_F,"The value of R_F in kΩ is : ");
disp("R_F may be taken as a pot of 10 kΩ")
|
d36a951f947d237fcec75525846c6b4408508a08 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3636/CH1/EX1.6/Ex1_6.sce | f6e8b8571e391a39fbfb17f49ec63220109fdda8 | [] | 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 | 230 | sce | Ex1_6.sce | clc;
clear;
V=2000 //potential in V
e=1.602*10^-19 //electronic charge in eV
m=9.1*10^-31 //mass of electron in kg
//Calculation
u=sqrt((2*V*e)/m)
mprintf("velocity with which electron beam will travel= %.2e m/s",u)
|
fe244046e8baa4d7960feebfb1319a489a33d16d | 449d555969bfd7befe906877abab098c6e63a0e8 | /45/CH8/EX8.5/example_8_5.sce | 93c6942988b7133644b6281173abd938f30552cb | [] | 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 | example_8_5.sce | //example 8.5
clc;
clear;
disp('Here what happens at each point in time' );
disp('Time t0: S = 0, R = 0, no change in Q (Q remains 0)');
disp('Time t1: S = 1, R = 0, Q changes from 0 to 1');
disp('Time t2: S = 0, R = 1, Q resets to 0');
disp('Time t3: S = 1, R = 0, Q sets to 1 ');
disp('Time t4: S = 0, R = 0, no change in Q (Q remains 1)');
disp('Notice that either R or S, or both, are allowed to change state at any time, whether C is high or low. The only time both R and S must be stable (unchanging) is during the short PTs of the clock.'); |
d812acb0dd27f8ff941b635338695f0d2a4e09b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH10/EX10.3/example10_3.sce | 4067c67bd2c50b8a5468fb382aa81d1d637b741a | [] | 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,264 | sce | example10_3.sce | //clc()
Nflue = 100;//kmol
NCO2 = 9;
NCO = 2;
NO2 = 3;
NN2 = 86;
NCflue = NCO2 + NCO ;
MC = 12;
mC = MC * NCflue ;
//let A kmol air supplied, taking N2 balance,
Nair = NN2 * 100/79;
NO2supplied = Nair - NN2;
// if CO in the flue gas was to be completely converted to CO2, then, the moles of oxygen present in the flue gas would be 3-1 =2kmol
Noexcess = NO2 - NCO/2;
Pexcess = Noexcess * 100 / ( NO2supplied - Noexcess);
disp("%",Pexcess,"(a)Percentage excess air = ")
NwaterO = NO2supplied - NCO2 - NCO/2 - NO2;
NH2 = NwaterO*2;
mH2 = NH2 * 2;
xCF = 0.7
R = mC / mH2;
disp(R,"(b)Ratio of carbon to hydrogen in the fuel = ")
//let x be the amount of moisture in the feed, n it is given that 70% is carbon,therefore,
//0.7 = 3.32 / ( 1 + 3.32 + x )
x = R / xCF - 1 - R;
mH = x * 2.016 / 18.016;
mHtotal = mH + mH2;
Rtotal = mC / mHtotal;
disp(Rtotal,"(c)Ratio of carbon to total hydrogen in the fuel = ")
ntotal = R + 1 +x;
PH2 = 1*100/ntotal;
PH2O = x * 100 / ntotal;
disp("%",PH2,"(d)percentage of combustible hydrogen in the fuel = ")
disp("%",PH2O,"percentage of moisture in the fuel = ")
nH2Ototal = (PH2O + PH2 * 18.016 / 2.016)/100;
disp("kg",nH2Ototal,"(e)The mass of moisture in the flue gas per kg of fuel burned = ")
|
66c3c0ac9193eafb9bf6504303fbaf2f2ab13ccb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2642/CH5/EX5.8/Ex5_8.sce | dfaf920e3b2ade3122e4a8a6970cef5994e5c716 | [] | 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,520 | sce | Ex5_8.sce | // FUNDAMENTALS OF ELECTICAL MACHINES
// M.A.SALAM
// NAROSA PUBLISHING HOUSE
// SECOND EDITION
// Chapter 5 : DIRECT CURRENT MOTORS
// Example : 5.8
clc;clear; // clears the console and command history
// Given data
I_L1 = 5 // dc shunt motor current in A
V_t = 230 // supply voltage in V
R_a = 0.25 // armature resistance in ohm
R_sh = 115 // field resistance in ohm
I_L2 = 40 // dc shunt motor current in A
// caclulations
// at noload condition
P_in1 = V_t*I_L1 // input power in W
I_sh = V_t/R_sh // shunt field current in A
I_a1 = I_L1-I_sh // armature current in A
P_acu1 = I_a1^2*R_a // armature copper loss in W
P_shcu = I_sh^2*R_sh //shunt field copper loss in W
P_iron_friction = P_in1-(P_acu1+P_shcu) // iron and friction losses in W
// under load condition
I_a2 = I_L2-I_sh // armature current in A
P_acu2 = I_a2^2*R_a // armature copper loss in W
P_loss = P_iron_friction+P_shcu+P_acu2 // total losses in W
P_in2 = V_t*I_L2 // input power in W
P_0 = P_in2-P_loss // output power in W
n = (P_0/P_in2)*100 // efficiency in percent
// display the result
disp("Example 5.8 solution");
printf(" \n iron and friction losses \n P_iron_friction = %.2f W \n", P_iron_friction );
printf(" \n efficiency \n n = %.0f percent \n", n)
|
c00e0addb1133c42217d0a26ee19dac28d6c63be | 816ccefab515b9e1fc5871beebf0913ecd2c8b94 | /regTests/cgtc/ko.tst | e90021c2e57957dfdd0cde08e26601108ccd7c63 | [] | no_license | CurtisHughey/ergo | 45dff870a6592cb29b9aa68c416bae1577f41452 | 634ea9eddbd23c917407e667a535be9dae32d55c | refs/heads/master | 2020-04-06T07:02:17.089864 | 2016-08-21T23:53:12 | 2016-08-21T23:53:12 | 58,999,319 | 8 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,330 | tst | ko.tst | #------------------------------------------------------------------------------
# Ko
#
# Computer Go Test Collection http://www.cs.ualberta.ca/~games/go/
#
# $Source: /usr/cvsroot/project_cgtc/ko.tst,v $
# $Id: ko.tst,v 1.3 2004/04/28 17:10:39 emarkus Exp $
#------------------------------------------------------------------------------
loadsgf ./sgf/ko/ko.1.sgf
10 reg_genmove white
#? [M5]
20 reg_genmove white
#? [!O6]
loadsgf ./sgf/ko/ko.2.sgf
30 reg_genmove white
#? [B9]
40 reg_genmove white
#? [!P19|A11]
# both ko are bad here
loadsgf ./sgf/ko/ko.3.sgf
50 reg_genmove black
#? [!R5]
51 reg_genmove black
#? [S3]
55 reg_genmove white
#? [S3|R5]
loadsgf ./sgf/ko/ko.4.sgf
60 reg_genmove black
#? [O4]
# start ko to kill opponent and survive
70 reg_genmove black
#? [!Q8]
# not enough to live, even with another move.
loadsgf ./sgf/ko/ko.5.sgf
80 reg_genmove black
#? [!L6]
# bad ko connection, small
81 reg_genmove white
#? [!L6]
# bad ko capture, small
loadsgf ./sgf/ko/ko.6.sgf
90 reg_genmove black
#? [T10]
# fight ko for group
91 reg_genmove white
#? [T10]
# connect ko for group
100 reg_genmove black
#? [!T7]
loadsgf ./sgf/ko/ko.7.sgf
110 reg_genmove white
#? [T10]
111 reg_genmove white
#? [!T8]
loadsgf ./sgf/ko/ko.8.sgf
120 reg_genmove white
#? [T10]
121 reg_genmove white
#? [!Q7|Q10]
|
7de56f9d6ad28bab5002ee7202a7d3bc99ed609f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3665/CH8/EX8.17/Ex8_17.sce | c98beffad2763252d730aac899cb5d92d409974d | [] | 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 | 439 | sce | Ex8_17.sce | clc//
//
//
//Variable declaration
RH=6.85*10^-5; //hall coefficient(m^3/coulomb)
e=1.6*10^-19;
sigma=250; //conductivity(m-1 ohm-1)
//Calculation
n=1/(RH*e); //density of charge carriers(m^3)
mew=sigma/(n*e); //mobility of charge carriers(m^2/Vs)
//Result
printf("\n density of charge carriers is %0.3f *10^22 m^3",n/10^22)
printf("\n mobility of charge carriers is %0.3f *10^-3 m^2 V-1 s-1",mew*10^3)
|
f73c83b48ee0e38e55299b16eb989c4403c1ad19 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2492/CH5/EX5.5/ex5_5.sce | cc6c7a0236e696772ff8d31f7ccfff7bd3bbbc80 | [] | 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 | 310 | sce | ex5_5.sce | // Exa 5.5
format('v',7)
clc;
clear;
close;
// Given data
Ri = 1;// in k ohm
Ro = 80;// in k ohm
Aiint = 150;
R_S = 5;// in k ohm
R_L = 1;// in k ohm
//Aiext = i1/i2 = (R_S/(R_S+Ri)) * (Ro/(Ro+R_L))*Aiint;
Aiext = (R_S/(R_S+Ri)) * (Ro/(Ro+R_L))*Aiint;
disp(Aiext,"The external current gain is");
|
68d75e3c5df0463deac2a9e49a746cb3faed4856 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2207/CH1/EX1.20.2/ex_1_20_2.sce | a4f3c85f066274804bda99cbc25edc8399429ad1 | [] | 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 | 320 | sce | ex_1_20_2.sce | //Example 1.20.2: Peak Current and turn off time
clc;
clear;
close;
format('v',6)
//given data :
Vs=200;//in volts
R1=10;// in ohm
R2=R1;
Vc=200;//in volts
C=10;// in micro-farad
I1=Vs/R1;
I2=(Vs+Vc)/R2;
It1=I1+I2;
disp(It1,"Peak Current,It1(A) = ")
Tc=(R1*C)/1.44;
disp(Tc,"The Circuit Turn Off Time,Tc(micro-sec) = ")
|
54ca8e972744eb88d3dbb82913b4dc8e404f7cf8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH8/EX8.3b/eg8_3b.sce | 58086b7d00e7e7703cf80955ea6f4b09e5b15bd1 | [] | 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 | 179 | sce | eg8_3b.sce | noise_var = 4;
noise_mean= 0;
num = 5;
Xbar = 8.5;
u = 8;
statistic = sqrt(num/noise_var)*(Xbar - u);
prob = 2*cdfnor("PQ", -1*statistic , 0,1 );
disp(prob, "P-value is") |
222a163f6a80d648161fd0690f5577a6e3f7ac02 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1388/CH2/EX2.4/2_4.sce | 85495155eda8afd7baf3571acf9ce03e69d183fc | [] | 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 | 145 | sce | 2_4.sce | clc
//initialisation of variables
a= 4.086 //A
//CALCULATIONS
d= a*sqrt(2)
r= d/4
//RESULTS
printf (' radius of silver atom= %.3f A ',r)
|
99ce3edea842f55444650935be664caa819002f2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2969/CH5/EX5.12/Ex5_12.sce | 071ec9b691932f7b467f4ae6c1a3469289f78e64 | [] | 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 | 805 | sce | Ex5_12.sce | clc
clear
//DATA GIVEN
T1=1990; //Temperature of the heat Source in K
T2=850; //Temperature of the heat Sink in K
Qs=32.5; //heat supplied in kJ/min
P=0.4; //power developed by the engine in kW
ETAcarnot=(T1-T2)/T1;
//Also ETAth=work done/Heat supplied
ETAth=P/Qs;
printf('The Efficiency of carnot cycle is: %1.3f or %2.1f percent. \n',ETAcarnot,(ETAcarnot*100));
printf(' The Thermal efficiency of engine claimed by inventor is: %1.3f or %2.1f percent. \n\n',ETAth,(ETAth*100));
if(ETAth>ETAcarnot)
printf(' Thus, The claim of the inventor is possible.');
else
printf(' Thus, The claim of the inventor is NOT feasible, \n as no engine can be more efficient than that working on carnot cycle.');
|
3dca61db1d0ae8c5886d8fec44de8a963cd1012e | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH3/EX3.11/ex3_11.sce | d58c151da38a80d3f9b86db8664e3e906a71b58b | [] | 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 | 496 | sce | ex3_11.sce | clc
vl=415 //assigning values to the parameters
r=15
l=0.1
c=0.000000177
f=50
vph=vl/sqrt(3)
xl=2*%pi*f*l
xc=1/(2*%pi*f*c)
zph=r+%i*(xl-xc)
[r1,t]=polar(zph)
iph=vph/zph
il=iph
p=sqrt(3)*vl*il*cos(t)
q=sqrt(3)*vl*il*sin(t)
s=sqrt(3)*vl*il
disp("Amperes",polar(iph),"The phase current is")
disp("Amperes",polar(il),"The line current is")
disp("Watts",polar(p),"The power drawn is")
disp("Watts",polar(q),"The reactive power is")
disp("VA",polar(s),"The total kVA is") |
fb1e46aefdcc22aa5f928d29ee050bb88243dff5 | 5f48beee3dc825617c83ba20a7c82c544061af65 | /tests/s/72.tst | 128ac00ac66f290035add4d52db22d25fd5b8a78 | [] | no_license | grenkin/compiler | bed06cd6dac49c1ca89d2723174210cd3dc8efea | 30634ec46fba10333cf284399f577be7fb8e5b61 | refs/heads/master | 2020-06-20T12:44:17.903582 | 2016-11-27T03:08:20 | 2016-11-27T03:08:20 | 74,863,612 | 3 | 0 | null | null | null | null | WINDOWS-1251 | Scilab | false | false | 143 | tst | 72.tst | int main(void) {
int (**p)(int)[3]; /* ошибка: p -- указатель на функцию, возвращающую массив */
}
|
05985c178106a58a0c998ca88fed5e5ad2b022ab | 449d555969bfd7befe906877abab098c6e63a0e8 | /1397/CH6/EX6.2/6_2.sce | 66bd17260c36a65accefb66680ad59f9481ae280 | [] | 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 | 346 | sce | 6_2.sce | //clc();
clear;
//To determine the lattice constant
n=2; //number of atoms per unit cell
M=55.85; //atomic weight in a.m.u
N=6.02*10^26; //avagadro number in kg/mol
rho=7860; //density in kg/m^3;
a=((n*M)/(N*rho))^(1/3);
printf("lattice constant in m is ");
disp(a);
//answer in book is wrong
|
3f1e08ba904f662780b73b477e8ca8e58a53bbc7 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /prog_assembly/libs/scilab_code/GPIO.sce | da74208160410673b3c961e578aaa36e7b51a315 | [] | 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 | 1,799 | sce | GPIO.sce | function GPIO = GPIO(time,single)
[path,fname,extension] = fileparts(file_name);
hid_dir = path + '.' + fname;
if single ==[] then
[a1,b1]=unix_g("sudo ~/rasp30/prog_assembly/libs/sh/asm2ihex.sh ./sftreg ~/rasp30/prog_assembly/libs/asm_code/sftreg_GPIO.s43 16384 16384 16384")
if b1==1
disp('There is an error in your assembly file')
abort;
end
else
[a1,b1]=unix_g("sudo ~/rasp30/prog_assembly/libs/sh/asm2ihex.sh ./sftreg ~/rasp30/prog_assembly/libs/asm_code/asm_code_test/sftreg_GPIO_single.s43 16384 16384 16384")
if b1==1
disp('There is an error in your assembly file')
abort;
end
i_hex=dec2hex(single);
i_hex_string=string(i_hex)
unix_g('>./shift_number')
y=mopen('./shift_number','wb')
if time<16 then
mputl('0x000'+string(i_hex),y)
elseif time<256 then
mputl('0x00'+string(i_hex),y)
elseif time<4096 then
mputl('0x0'+string(i_hex),y)
else
mputl('0x'+string(i_hex),y)
end
mclose(y)
unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x4202 -input_file_name ./shift_number");
end
i_hex=dec2hex(time);
i_hex_string=string(i_hex)
unix_g('>./shift')
y=mopen('./shift','wb')
if time<16 then
mputl('0x000'+string(i_hex),y)
elseif time<256 then
mputl('0x00'+string(i_hex),y)
elseif time<4096 then
mputl('0x0'+string(i_hex),y)
else
mputl('0x'+string(i_hex),y)
end
mclose(y)
unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x4200 -input_file_name ./shift");
unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x4300 -input_file_name '+hid_dir+'/input_vector");
format("v",16);
err=1;
while err==1
[y,err]=unix_g('sudo tclsh ~/rasp30/prog_assembly/libs/tcl/run.tcl '+path+'sftreg.elf');
end
if err==0
disp('The script worked')
end
endfunction
|
b861b43d7ab326aaeedb1a14c940b7972ff2df56 | 27fecbbeb6c49dcf03b9bddf1b867c31e13a3825 | /Simulações/Relatório 04/rascunhÃO.sci | 91b88c321fa2f974d08b8b143d224cdcd36e510b | [] | no_license | LucasHattoriCosta/Poli | 42c9fc2d34c31e01336265fbdac3e4921d56e096 | b1ac609c3675539b4e921909c35ea196ffc44df3 | refs/heads/master | 2023-03-15T12:22:03.745943 | 2020-06-29T17:32:48 | 2020-06-29T17:32:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,214 | sci | rascunhÃO.sci | clc
clear
// Características do sistema:
pi = %pi
ro = 0.1 // kg/m
g = 9.80 // m/s²
l = 0.5 // m
comp = 2*l // m
L = 10 // m
m = comp*ro
// Condições iniciais:
//E=[-pi/6,pi/4,L/5,0,comp] // alpha, beta, sigma zero, sigma_ponto_zero, lambda_zero
//E=[-pi/6,pi/6,L/5,0,comp]
//E=[-pi/6,pi/4,L/5,0,comp]
//E=[-pi/4,-pi/3,L/5,0,comp]
E=[-pi/4,pi/4,10,0]
// Integração das equações diferenciais:
alfa = E(1)
betha =E(2)
sigma_zero = E(3)
sigma_ponto_zero = E(4)
sigma = 9.5 //coordenada da quina na abcissa curvilínea
////////////////// PARTE I _MAPA DO TESOURO_ ////////////////////
//como ö + g.sin(a) = 0
//isolo: g.sin(a) = -ö
// Pela 'equação do sorvetão':
// sigma = sigma_zero + sigma_zero_ponto . t + 1/2 . (g.sin(a)).t^2
// sigma = sigma_zero + sigma_zero_ponto . t + 1/2 . (-ö).t^2
// 0 = t^2 .[1/2.(-z_dot(2))] + t .[z_dot(1)] + (sigma_zero - sigma)
k1 = sigma_ponto_zero
k2 = -g*sin(alfa)
//(sigma_zero - sigma)
f = poly([(sigma_zero - sigma) k1 0.5*k2], 't', 'coeff')
a = roots(f)
//Deu dois valores = +-t. Desprezo o tempo negativo:
tempo_quina = abs(a(1))
disp(tempo_quina)
// Espaço de estados:
function [z_dot]=esp_est_sigma(t,z) //Espaço de estados para o sigma
k=z(1,:)
kdot=z(2,:)
dk_dt= kdot //Primeira componente espaço de estados
d2k_dt2= -g*sin(alfa) //Segunda componente espaço de estados
z_dot=[dk_dt;d2k_dt2]
endfunction
// Crio o vetor tempo
tempo = 0:0.005:tempo_quina
// ODE:
M = E
X_1 = ode([M(3);M(4)], 0, tempo, esp_est_sigma)
x_1 = X_1(1,:)
xp_1 = X_1(2,:)
a_1 = diff(xp_1)/0.005
a_1($+1) = a_1($)
/////////// FIM PARTE I ///////////
////////// PARTE II_A PARTE DIFÍCIL////////////
function [z2_dot]=esp_est_sigma_II(t,z) //Espaço de estados para o lambda
k=10.5 - z(1,:)
kdot=z(2,:)
dk_dt= kdot
d2k_dt2= -g*(sin(betha) + (1/(2*l))*(sin(alfa)-sin(betha))*(k))
z2_dot=[dk_dt;d2k_dt2]
endfunction
tempo_2 = 0:0.005:10
X_2 = ode([x_1(1,$);xp_1(1,$)], 0, tempo_2, esp_est_sigma_II)
x_2 = X_2(1,:) //Vetor de deslocamentos
xp_2 = X_2(2,:) //Vetor de velocidades
a_2 = diff(xp_2)/0.005
a_2($+1) = a_2($)
[nk, nc] = size(X_2)
for k=1:nc
if x_2(k) > 10.5 then
disp(tempo_2(k))
break
end
end
x_2_final = x_2(1:k-1)
xp_2_final = xp_2(1:k-1)
a_2_final = a_2(1:k-1)
tempo_2b = 0:tempo_2(k)/(k-1):tempo_2(k)
//////////// END PARTE II //////////////////////
/////////// PARTE III //////////////
function [z_dot]=esp_est_sigma_III(t,z) //Espaço de estados para o sigma
k=z(1,:)
kdot=z(2,:)
dk_dt= kdot //Primeira componente espaço de estados
d2k_dt2= -g*sin(betha) //Segunda componente espaço de estados
z_dot=[dk_dt;d2k_dt2]
endfunction
tempo_3 = tempo_2(k):0.005:10
X_3 = ode([x_2_final(1,$);xp_2_final(1,$)], 0, tempo_3, esp_est_sigma_III)
x_3 = X_3(1,:)
xp_3 = X_3(2,:)
a_3 = diff(xp_3)/0.005
a_3($+1) = a_3($)
//////
////// VETORZÃO ////
Xzão = cat(2,x_1,x_2_final, x_3)
Xzão_ponto = cat(2,xp_1,xp_2_final, xp_3)
azão = cat(2, a_1, a_2_final, a_3)
tempozão = 0:10/(size(Xzão)(2)-1):10
///// PLOTS ///////////////
clf()
scf(0)
subplot(2,2,1)
plot(tempozão, Xzão)
subplot(2,2,2)
plot(tempozão, Xzão_ponto)
subplot(2,2,3)
plot(tempozão, azão)
|
a45d78494e785a263e4b1e9aa0a5d8e45f180637 | 06a62d768e69fd9dda11b30011c252807e301813 | /lab/integral.sci | f4cf9025c157f4fd6d5d552314edac2e4e12296e | [] | no_license | vikram-niit/matlab | 36ce3d9539629128251eab060164ce81c03aa690 | da8aeb4d727c47474d37676650664bd028d7e41d | refs/heads/master | 2020-03-18T13:40:37.068765 | 2018-05-25T03:51:55 | 2018-05-25T03:51:55 | 134,800,217 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 412 | sci | integral.sci | recursionlimit(110);
function [y] = integral(x0, x1, y0, N)
printf("recursion: %d N: %d\n", recursionlimit("current") - 1, N)
if(N == 0)
y = y0;
else
y = integral(x0, x1, y0, N-1);
printf("y: %f x0: %f x1: %f y0: %f N: %f\n", y, x0, x1, y0, N)
y = y0 + x1 * y - x1^3/3 + x1;
printf("y: %d \n", y)
end
endfunction
|
923b321f7766fd61d89720afa7a73dd9e572f1c4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /443/CH4/EX4.3/4_3.sce | 6733dd4518c076bb947b10efa141c621fe4606dc | [] | 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 | 819 | sce | 4_3.sce | pathname=get_absolute_file_path('4_3.sce')
filename=pathname+filesep()+'4_3_data.sci'
exec(filename)
//Question 4.3
//New Pressure(in bar)
p2=p1*(rc^n)
//New temperature(in kelvin)
t2=(t1)*(p2/p1)*(1/rc)
//Average temperature(in kelvin)
//t=(t3+t2)/2
//Heat transfer(in mJ)
Q23=CV/AF
//Finding t3 using formula Q23=Cvmean*m*(t3-t2)(in bar)
m=poly([(y/2) x (-((Q23*AF)/(AF+1))-(t2*x)-(0.5*y*(t2^2)))],"t3",["roots"])
printf("\nt3:%f\n",roots(m))
//Pressure p3(in bar)
p3=p2*(t3/t2)
//For constant specific heat
t32=((Q23*1000)/(Cv*m))+t2
//Pressure p32 (in bar)
p32=p2*(t32/t2)
printf("\n\nRESULTS\n\n")
printf("\nFor variable specific heat\n")
printf("\nt2:%f\n",t2)
printf("\nQ23:%f\n",Q23)
printf("\nPressure: %f\n",p3)
printf("\nFor constant specific heat\n")
printf("\nPressure:%f\n",p32) |
8d21c49be1cecd414fe7593efd4b0c5f0ffa29f2 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.2/macros/scicos/EVENTSCOPE_f.sci | b64cd97bdcfe32a8cc689b41dab22616b4fe7e75 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 2,311 | sci | EVENTSCOPE_f.sci | function [x,y,typ]=EVENTSCOPE_f(job,arg1,arg2)
x=[];y=[];typ=[]
select job
case 'plot' then
standard_draw(arg1)
graphics=arg1(2); [orig,sz]=graphics(1:2)
thick=xget('thickness');xset('thickness',2)
xrect(orig(1)+sz(1)/10,orig(2)+(1-1/10)*sz(2),sz(1)*8/10,sz(2)*8/10)
xarrows([orig(1)+sz(1)/5,orig(1)+sz(1)/5;
orig(1)+(1-1/5)*sz(1),orig(1)+sz(1)/5],..
[orig(2)+sz(2)/5,orig(2)+sz(2)/5;
orig(2)+sz(2)/5,orig(2)+(1-1/5)*sz(2)])
t=(0:0.3:2*%pi)';
xpoly(orig(1)+(1/5+3*t/(10*%pi))*sz(1),..
orig(2)+(1/4.3+(sin(t)+1)*3/10)*sz(2),'lines')
xset('thickness',thick)
case 'getinputs' then
[x,y,typ]=standard_inputs(o)
case 'getoutputs' then
x=[];y=[];typ=[];
case 'getorigin' then
[x,y]=standard_origin(arg1)
case 'set' then
x=arg1;
graphics=arg1(2);label=graphics(4)
model=arg1(3);[nclock,rpar,ipar]=model([4 8 9])
win=ipar(1);clrs=ipar(3:nclock+2)
//next line for compatibility
per=rpar(1);
while %t do
[ok,label,nclock,clrs,win,per]=getvalue(..
'Set Scope parameters',..
['Block label';
'Number of inputs';
'inputs color c (<0) or mark (>0)';
'Output window number';
'Refresh period'],..
list('str',1,'vec',1,'vec',-1,'vec',1,'vec',1),..
['EventScope';
string(nclock);
strcat(string(clrs),' ');
string(win);
string(per)]);
if ~ok then break,end //user cancel modification
mess=[]
if size(clrs,'*')<>nclock then
mess=[mess;'Inputs color c size must be equal to Number of inputs';' ']
ok=%f
end
if win<0 then
mess=[mess;'Window number can''t be negative';' ']
ok=%f
end
if per<=0 then
mess=[mess;'Refresh period must be positive';' ']
ok=%f
end
if ok then
[model,graphics,ok]=check_io(model,graphics,0,0,nclock,0)
else
x_message(['Some specified values are inconsistent:';
' ';mess])
end
if ok then
rpar=[per]
ipar=[win;1;matrix(clrs,nclock,1)]
model(8)=rpar;model(9)=ipar
graphics(4)=label;
x(2)=graphics;x(3)=model
break
end
end
case 'define' then
nclock=1
win=1; clrs=[-1;-3;-5;-7;-9;-11;-13;-15];
ipar=[win;1;clrs(1:nclock)]
per=30;
rpar=[per]
state=-1
model=list('evscpe',0,0,1,0,[],state,rpar,ipar,'d',%f,[%f %f])
x=standard_define([2 2],model)
end
|
1ca53f4f907d0cd3f8be2fa8d8543e1fd5dacbbe | 449d555969bfd7befe906877abab098c6e63a0e8 | /1997/CH9/EX9.16/example16.sce | f8669ce030de6fdd57c0bdada0a050f77741b7b8 | [] | 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 | 723 | sce | example16.sce | //Chapter-9 example 16
//=============================================================================
clc;
clear;
//input data
//Da = 7*lamda; diameter of antenna
//Calculations
//HPBW = 70*(lamda/Da)
//HPBW = 70*(lamda/(7*lamda));
HPBW = 70/7;//half power beamwidth
NNBW = 2*HPBW;//null to null beamwidth
//Gp = 6.4*(Da/lamda)^2; //power gain
//Gp = 6.4*((7*lamda)/lamda)^2 ; power gain of parabolic reflector
Gp =6.4*(7)^2;
G = 10*log10(Gp)//gain in dB
//Output
mprintf('Gain of parabolic reflector is %3.1f \n HPBW of Antenna is %3.1f degrees\n NNBW of Antenna is %3.1f degrees ',Gp,HPBW,NNBW);
//=============end of the program==============================================
|
ed08f10d42fdeeb619228770aa57e203013a82c5 | a178109facfc72b26e4addfe1fa3952c764630dd | /2 Control_Design_Scilab_bette_than_1/Test_Abstract_problem/Second_Method/main_controller.sce | df7ba59be351f1e3b7571a8595280c415fb78713 | [
"BSD-2-Clause"
] | permissive | yi1128/Disturbance_observer | fb20d7db81193841e35b61e7c727e5fe91240dca | 6b5e79d25f0ab7a410adf30c2d1399864055cd56 | refs/heads/master | 2022-04-21T23:58:22.911921 | 2020-04-20T12:17:02 | 2020-04-20T12:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,548 | sce | main_controller.sce | clear
clc
loadmatfile('A.mat');
loadmatfile('B.mat');
loadmatfile('H.mat');
loadmatfile('C.mat');
loadmatfile('observer.mat');
m=rank(B);
n=size(A);
n=n(1,1);
qw=rank(H);
p=rank(C);
function [LME,LMI,OBJ]=DRC(XLIST)
[delta2,delta3,deltah3,betah,Thx,Thw,gama6,gama7]= XLIST(:)
LME=list(delta2-delta2',delta3-delta3',delta3*B-B*deltah3)
LMI=list(-([-H'*betah'-betah*H,betah*(Gama-A-Phi*C),-2*betah*theta*C*A-Thw'*B',zeros(qw,qw),delta2;(betah*(Gama-A-Phi*C))',zeros(n,n),-Thx'*B',zeros(n,qw+qw);(-2*betah*theta*C*A-Thw'*B')',-B*Thx,C'*C+delta3*A+A'*delta3+B*Thx+Thx'*B',delta3*H+B*Thw,zeros(n,qw);zeros(qw,qw+n),(delta3*H+B*Thw)',-gama6*eye(qw,qw),zeros(qw,qw);delta2',zeros(qw,n+n+qw),-gama7*eye(qw,qw)]),delta2,delta3,gama6,gama7,-1-betah*H)
OBJ=[]
endfunction
delta2_0=eye(qw,qw);
delta3_0=eye(n,n);
deltah3_0=zeros(m,m);
betah_0=zeros(qw,n);
Thx_0=eye(m,n);
Thw_0=eye(m,qw);
gama6_0=1e1;
gama7_0=1e1;
Init_guess=list(delta2_0,delta3_0,deltah3_0,betah_0,Thx_0,Thw_0,gama6_0,gama7_0);
Mbound=100;
abstol=1e-3;
nu=1;
maxiters=500;
reltol=1e-3;
Ans_LMI=lmisolver(Init_guess,DRC,[Mbound,abstol,nu,maxiters,reltol]);
//Ans_LMI=lmisolver(Init_guess,DRC);
delta2=Ans_LMI(1);
delta3=Ans_LMI(2);
deltah3=Ans_LMI(3);
betah=Ans_LMI(4);
Thx=Ans_LMI(5);
Thw=Ans_LMI(6);
gama6=Ans_LMI(7);
gama7=Ans_LMI(8);
Tx=inv(deltah3)*Thx;
Tw=inv(deltah3)*Thw;
beta=inv(delta2)*betah;
savematfile('Tx.mat','Tx');
savematfile('Tw.mat','Tw');
savematfile('beta.mat','beta');
disp(spec(A+B*Tx))
|
61dcb1530268c743c6ac776dac7964c60de7fc56 | 099b4b0f30eafd7a0e9eac539caf7578b0e562fd | /Projets/simulation of the temperature evolution in a material/scilab/AnimationP.sce | 178087545622155096139370956d9bcf9c48a8a4 | [] | no_license | Mehdikossir/Projects | 2c60cd6ff0ebbeda17d529d25c10d241a8eaf724 | a43366f4aa11f541b70209ba9778d8547cb8b025 | refs/heads/master | 2021-09-26T13:55:43.208141 | 2021-09-13T21:53:08 | 2021-09-13T21:53:08 | 240,940,996 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 363 | sce | AnimationP.sce | tab= read("polystyrene",100,101)
for i=1:50
clf
a=string(double(i*16/100))
plot2d(tab(i,:),rect=[0,285,101,315],style=14)
xtitle("Température à "+a+" sec, barre de polystyrène","x","T(K)")
sleep(100)
end
plot2d(tab(50,:),rect=[0,285,101,315],style=14)
xtitle("Température à "+string(a)+" sec, barre de polystyrène","x","T(K)")
|
ef6752dd8d89717dcae5dd949cdf1e59cc70669a | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Instrumentation_H._S._Kalsi_3554.zip/Electronic_Instrumentation_H._S._Kalsi_3554/CH14/EX14.2/Ex14_2.sce | 897b497755311f57c3a60969a398cd2e39e44da9 | [] | 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 | 444 | sce | Ex14_2.sce | errcatch(-1,"stop");mode(2);// Exa 14.2
;
all;
// Given data
Va=2;// Volts
Vb=1;// Volts
Vc=3; // Volts
Ra=3;// k Ohms
Rb=3;// k Ohms
Rc=3;// k Ohms
Rf=1;// k Ohms
Rom=270;// Ohms
Supply=15;// Volts
// Solution
disp(" Assuming that the opamp is initially nulled");
// Using equation 14.8 to determine the output voltage
Vo=-(Rf/Ra *Va+Rf/Rb *Vb+Rf/Rc *Vc);
printf(' The output voltage = %d Volts \n',Vo);
exit();
|
fcc2d799feabdbca7802f279f02201f26f1eecce | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH3/EX3.8/c3_8.sce | e8147395f7ab8142a57743dda199246adda3695a | [] | 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,112 | sce | c3_8.sce | //(3.8) A piston–cylinder assembly contains 0.9 kg of air at a temperature of 300K and a pressure of 1 bar. The air is compressed to a state where the temperature is 470K and the pressure is 6 bars. During the compression, there is a heat transfer from the air to the surroundings equal to 20 kJ. Using the ideal gas model for air, determine the work during the process, in kJ.
//solutiion
//variable initialization
m = .9 // mass of air in kg
T1 = 300 // initial temperature in kelvin
P1 = 1 // initial pressure in bar
T2 = 470 // final temperature in kelvin
P2 = 6 // final pressure in bar
Q = -20 // heat transfer in kj
//from table A-22
u1 = 214.07 // in KJ/kg
u2 = 337.32 // in KJ/Kg
deltaU = m*(u2-u1) // change in internal energy in kj
W = Q - deltaU // in KJ/kg
printf('the work during the process in KJ is \n\t W = %f',W)
|
7a7eadad39bacedd37f0e40d1992b58174961bf3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /914/CH5/EX5.10/ex5_10.sce | 9c92960b82bb7dec44d803fd2966ca4b02b730f2 | [] | 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 | 2,518 | sce | ex5_10.sce | clc;
warning("off");
printf("\n\n example5.10 - pg171");
// given (from example 5.9)
vol = 1 //cm^3
na=2; // moles of a
nb=3; // moles of b
nc=4; // moles of c
mma=2; //molecular weight of a
mmb=3; //molecular weight of b
mmc=4; //molecular weight of c
ma=na*mma; //[g] weight of a
mb=nb*mmb; //[g] weight of b
mc=nc*mmc; //[g] weight of c
NabyA=2+2; //[mol/cm^2*s] - molar flux = diffusing flux +convected flux
NbbyA=-1+3; //[mol/cm^2*s] - molar flux = diffusing flux +convected flux
NcbyA=0+4; //[mol/cm^2*s] - molar flux = diffusing flux +convected flux
NtbyA=NabyA+NbbyA+NcbyA; //[mol/cm^2*s] - total molar flux
// on a mass basis,these corresponds to
nabyA=4+4; //[g/cm^2*s]; - mass flux = diffusing flux +convected flux
nbbyA=-3+9; //[g/cm^2*s]; - mass flux = diffusing flux +convected flux
ncbyA=0+16; //[g/cm^2*s]; - mass flux = diffusing flux +convected flux
// concentrations are expressed in molar basis
CA=na/vol; //[mol/cm^3]
CB=nb/vol; //[mol/cm^3]
CC=nc/vol; //[mol/cm^3]
CT=CA+CB+CC; //[mol/cm^3] - total concentration
// densities are on a mass basis
pa=ma/vol; //[g/cm^3]
pb=mb/vol; //[g/cm^3]
pc=mc/vol; //[g/cm^3]
Ua=NabyA/CA; //[cm/sec];
Ub=NbbyA/CB; //[cm/sec];
Uc=NcbyA/CC; //[cm/sec];
U=(pa*Ua+pb*Ub+pc*Uc)/(pa+pb+pc);
Ustar=(NtbyA/CT);
// the fluxes relative to mass average velocities are found as follows
JabyA=CA*(Ua-U); //[mol/cm^2*sec]
JbbyA=CB*(Ub-U); //[mol/cm^2*sec]
JcbyA=CC*(Uc-U); //[mol/cm^2*sec]
printf("\n\n fluxes relative to mass average velocities are-");
printf("\n\n Ja/A=%fmol/cm^2*sec",JabyA);
printf("\n Jb/A=%fmol/cm^2*sec",JbbyA);
printf("\n Jc/A=%fmol/cm^2*sec",JcbyA);
jabyA=pa*(Ua-U); //[g/cm^2*sec]
jbbyA=pb*(Ub-U); //[g/cm^2*sec]
jcbyA=pc*(Uc-U); //[g/cm^2*sec]
printf("\n\n ja/A=%fg/cm^2*sec",jabyA);
printf("\n jb/A=%fg/cm^2*sec",jbbyA);
printf("\n jc/A=%fg/cm^2*sec",jcbyA);
// the fluxes relative to molar average velocity are found as follows
JastarbyA=CA*(Ua-Ustar); //[mol/cm^2*sec]
JbstarbyA=CB*(Ub-Ustar); //[mol/cm^2*sec]
JcstarbyA=CC*(Uc-Ustar); //[mol/cm^2*sec]
printf("\n\n fluxes relative to molar average velocities are-");
printf("\n\n Ja*/A=%fmol/cm^2*sec",JastarbyA);
printf("\n Jb*/A=%fmol/cm^2*sec",JbstarbyA);
printf("\n Jc*/A=%fmol/cm^2*sec",JcstarbyA);
jastarbyA=pa*(Ua-Ustar); //[g/cm^2*sec]
jbstarbyA=pb*(Ub-Ustar); //[g/cm^2*sec]
jcstarbyA=pc*(Uc-Ustar); //[g/cm^2*sec]
printf("\n\n ja*/A=%fg/cm^2*sec",jastarbyA);
printf("\n jb*/A=%fg/cm^2*sec",jbstarbyA);
printf("\n jc*/A=%fg/cm^2*sec",jcstarbyA); |
2e0d8ac14e42afd1a2eb7103aa8edbe98dc8725e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3557/CH15/EX15.3/Ex15_3.sce | 5599950f2597a976b523803d0bb81214971a2dd8 | [] | 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 | 360 | sce | Ex15_3.sce | //Example 15.3//
pcu=8.93;// g cm^-3 //Density of Copper
a=63.55;//amu //atomic mass of copper
c=10^6;//cm^3/m^3 //given
d=1;//g.atom //given
h=0.6023*10^24;//atoms/g.atom //Avogardo's Number
p=pcu*c*(d/a)*(h)
mprintf("p = %e atoms/m^3",p)
a1=104*10^27;//m^-3 //density of free electrons in copper at room temperature
e=a1/p
mprintf("\ne = %f",e)
|
b08094867ea4ef6c2b2f593dd67378f59223fb60 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH1/EX1.16/1_16.sce | 77adb7baa7869fd45471221494e438bcffda87f2 | [] | 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 | 525 | sce | 1_16.sce | //ques-1.16
//Calculating degree of Total and Permanent and Temporary Hardness
clc
V=50;//volume of water sample (in mL)
v1=15;//volume of EDTA used before boiling (in mL)
v2=5;//volume of EDTA used after boiling (in mL)
M=0.01;//Molarity of EDTA
total=v1*M*(1000/V)*50*2;//Total hardness (in ppm)
perm=v2*M*(1000/V)*50*2;//Permanent hardness (in ppm)
temp=total-perm;//Temporary hardness (in ppm)
printf("Total hardness is %d ppm, Permanent hardness is %d ppm and Temporary hardness is %d ppm.",total,perm,temp);
|
fe6dd2146f0ea81a7a42d1ed445a6f75977517da | 449d555969bfd7befe906877abab098c6e63a0e8 | /2279/CH7/EX7.8/eg_7_8.sce | 5257de4580227a4c075501337fc142b9002c0745 | [] | 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 | 724 | sce | eg_7_8.sce | //x[n] = 1+sin(2*%pi/N)n+3cos(2*%pi/N)n+cos[(4*%pi/N)n+%pi/4]
clear;
close;
clc;
N = 10;
n = 0:0.01:N;
Wo = 2*%pi/N;
xn =ones(1,length(n))+sin(Wo*n)+3*cos(Wo*n)+cos(2*Wo*n+%pi/4);
for k =0:N-2
C(k+1,:) = exp(-sqrt(-1)*Wo*n.*k);
a(k+1) = xn*C(k+1,:)'/length(n);
if(abs(a(k+1))<=0.1)
a(k+1)=0;
end
end
a =a';
a_conj =conj(a);
ak = [a_conj($:-1:1),a(2:$)];
Mag_ak = abs(ak);
for i = 1:length(a)
Phase_ak(i) = atan(imag(ak(i))/(real(ak(i))+0.0001));
end
Phase_ak = Phase_ak'
Phase_ak = [Phase_ak(1:$-1) -Phase_ak($:-1:1)];
k = -(N-2):(N-2);
subplot(2,1,1)
plot2d3('gnn',k,Mag_ak,5)
xtitle('abs(ak)','k','ak')
subplot(2,1,2)
plot2d3('gnn',k,Phase_ak,5)
xtitle('phase(ak)','k','ak')
|
ffc4bd0eb8f08dcb50514faafcfd1eb77b7375b7 | 19c6e93614bb02c3c860d74c25b49558f521ba17 | /opdracht4.sce | 610e686a699241a66b5d9c90137253ecdd0d9470 | [] | no_license | darkeclipz/spherical-geometry | cc26edcf55aa7bef6c876a5d9208ab9dd5e1e9de | 4eb9c757ef271442c31f55b2d18b0bfe9457530d | refs/heads/master | 2023-02-19T03:33:57.024519 | 2021-01-19T13:35:12 | 2021-01-19T13:35:12 | 319,594,472 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 752 | sce | opdracht4.sce | function [v]=vertex(lat_a, lon_a, lat_b, lon_b)
// bA, bB en Lab bepalen
bA = lat_a
bB = lat_b
Lab = abs(lon_b - lon_a)
if(Lab > 180)
Lab = 360 - Lab
end
// hoek GrKgrc bepalen
tanK = sind(Lab) / (cosd(bA)*tand(bB)-sind(bA)*cosd(Lab))
K = atand(tanK)
if(K < 0 && Lab > 0)
K = K + 180
elseif(K > 0 && Lab < 0)
K = K + 180
elseif(K < 0 && Lab < 0)
K = K + 360
end
// lengte van vertex bepalen
Lav = atand(1/(tand(K)*sind(bA)))
LV = lon_a + Lav
if(LV > 180)
LV = LV - 360 // West
end
// breedte van de vertex bepalen
tanBV = tand(bA)/cosd(Lav)
BV = atand(tanBV)
v(1) = BV
v(2) = LV
endfunction
|
5fcf515cb967083a215af901fdcb868194a21596 | 584105ff5b87869494a42f632079668e4c3f82de | /TestCases/calib3d/estimateAffine3D/test2.sce | 8bd9a0d95c747bb48486d46e2d7d433cf040fce2 | [] | no_license | kevgeo/FOSSEE-Computer-Vision | 0ceb1aafb800580498ea7d79982003714d88fb48 | 9ca5ceae56d11d81a178a9dafddc809238e412ba | refs/heads/master | 2021-01-17T21:11:31.309967 | 2016-08-01T14:45:40 | 2016-08-01T14:45:40 | 63,127,286 | 6 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 282 | sce | test2.sce | first = [ 0 0 1;
0 3 1;
4 3 1;
2 2 2;
7 1 2;
8 0 2];
second = [ 0 0 3;
0 3 3;
4 3 3;
2 2 4;
7 1 4;
8 0 4];
[out1 ou2t] =estimateAffine3D(first,second,3,2);
//output->
// !--error 999
//confidence value should be between 0 and 1.
|
9c1100740ef731fb306cd4118fab61b775c1e4f1 | a09ffb7ebceab9afb82e709d443663089ba3e37b | /Hamming Distance.sce | c6135cf4f625514d29c52dd3fbab8a97c3731786 | [] | no_license | Sid-149/Hamming-Code | 7eb459aabe968fa9264243d826f56028f1e0ab62 | 0778c2f4e59075467cc4e890a9da58fc7a73e077 | refs/heads/main | 2023-01-14T11:04:46.731831 | 2020-11-16T15:04:41 | 2020-11-16T15:04:41 | 312,824,658 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 658 | sce | Hamming Distance.sce | clear
M=[0 0 0 0;0 0 0 1;0 0 1 0;0 0 1 1;0 1 0 0;0 1 0 1;0 1 1 0;0 1 1 1;1 0 0 0;1 0 0 1;1 0 1 0;1 0 1 1;1 1 0 0;1 1 0 1;1 1 1 0;1 1 1 1]
P=[0 1 1;1 0 1;1 1 0;1 1 1]
I=[1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1]
G=[I P]
for i=1:16
c(i,:)=[0 0 0 0 0 0 0]
c(i,:)=M(i,:)*G
c(i,:)=modulo(c(i,:),2)
end
for i=1:16
a(i)=0
for j=1:7
if (c(i,j)==1) then
a(i)=a(i)+1
end
end
end
dmin=min(a(a>0))
t1=dmin-1
if (modulo(dmin,2)==0) then
t2=(dmin-2)/2
else t2=(dmin-1)/2
end
disp("dmin:")
disp(dmin)
disp("Error detection capability:")
disp(t1)
disp("Error correction capability:")
disp(t2)
|
00c19bc5c7387dcedd098b70df2204cda857be5f | 449d555969bfd7befe906877abab098c6e63a0e8 | /331/CH10/EX10.7/Example_10_7.sce | a6c190386c6eb5fb2671ca0e44915c69d617f3fd | [] | 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 | 572 | sce | Example_10_7.sce | //Caption:Simple (Single) Exponential Smoothing Method
//Example10.7
//Page385
clear;
clc;
F1 = 600;//forecast of a product for the first week of march
D1 = 550; //Demand of the first week
D2 = 620; //Demand of the second week
alpha = 0.2; //smoothing constant
F2 = F1+alpha*(D1-F1);
disp(F2,'Forecast for the second week of march F2=')
F3 = F2+alpha*(D2-F2);
disp(F3,'Forecast for the third week of march F3=')
//Result
//Forecast for the second week of march F2=
//
// 590.
//
// Forecast for the third week of march F3=
//
// 596. |
3a9a05ff80fc36779cd855664aa1adfc06b9008c | 449d555969bfd7befe906877abab098c6e63a0e8 | /73/CH16/EX16.14/Example16_14.sci | 96e5d4937659e1b6a8ce92d1473d5f670abc2820 | [] | 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 | 461 | sci | Example16_14.sci | //Chapter 16_Bipolar and MOS Digital Gate Circuits
//Caption : AC Power
//Example16.14: Calculate the ac power dissipated by a CMOS inverter which drives a 20pF load.Given f=1MHz and Vdd=10V.
//Solution:
clear;
clc;
Ct=20*10^-12;// load capacitor in Farad
Vdd=10;//drain voltage supply in Volt
f=1*10^6;//frequency at which output voltage changes
//since P=Ct*Vdd^2*f
P=20*10^-12*(10)^2*10^6;
disp('W',P,'ac power dissipated by a CMOS inverter is:') |
12aff93962fe020e6b8e587a0233c8c0c6544595 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH18/EX18.11/18_11.sce | 664002835845cbe3edb27c57a902be022412b0a0 | [] | 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 | 673 | sce | 18_11.sce | //Chapter 18, Problem 11
clc;
//initializing the variables:
R = 15; //resistance in ohms
V = 110; //supply voltage
taw = 2; //time constant
t1 = 3; // in secs
i2 =5; // in amperes
//calculation:
L = taw*R
t = 0:0.1:10
I = V/R
i = I*(%e^(-1*t/taw))
plot2d(t,i)
xtitle("current/time characteristic", "t", "i")
i1 = I*(%e^(-1*t1/taw))
t2 = -1*taw*log((i2/I))
printf("\n Inductance is %.0f H\n\n",L)
printf("\n (a)The current flowing in the winding 3 s after being shorted-out = %.2f A\n\n",i1)
printf("\n (b)The time for the current to decay to 5 A = %.3f sec\n\n",t2)
|
460f57137c6f328248ae60b2d2ec08400730af9f | 93c7fb5ee09b14b93d6c6a5a99d15e57555802be | /tests/test_100/test17.tst | bbb32d004d02038c1317aeede1991e64b274abcc | [] | no_license | ach5910/42PushSwap.com | b1cd724453b20296e39c18e5d576bdfb6290f7da | bfa2755c1cb84c7d72a4858c77193743a5583a1a | refs/heads/master | 2020-04-05T12:35:36.043271 | 2017-07-26T06:33:40 | 2017-07-26T06:33:40 | 95,174,903 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 490 | tst | test17.tst | 1753 7086 3645 8503 3408 5324 7158 9016 2370 6570 4467 4396 3156 2359 6563 7279 619 4397 1715 916 1211 9065 786 8138 1119 823 9334 3544 2795 3284 6400 4659 2179 8990 7675 9906 7690 9972 6870 3043 9528 5374 3310 1137 1169 9868 4473 7714 4558 430 4367 2659 1086 8386 5710 4277 9058 9256 5652 7602 5904 3103 7864 246 4327 8666 7839 6665 5175 468 7213 3985 6806 4921 2793 213 428 4183 3016 7080 2958 2992 9902 4944 1757 4111 1505 6013 2260 784 4076 2872 3502 1215 3307 6747 8394 3165 1104 2398 |
e3b7293b4526d468c2357b0dfc84bfd5b0fb6988 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/1.1/macros/robust/musolve.sci | 0b4173f94dc706040510123ddb8efb56b8b00a17 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 7,113 | sci | musolve.sci | function [D,G,mu]=musolve(M,KK,T,params)
// musolve - Structured Singular value problem
//%Syntax
// [mu [,D [,G]] ]=musolve(M,KK,T [,params])
//
// M - n by n matrix for which the upper bound of SSV is to be computed.
// K - m by 1 vector contains the block structure. K(i), i=1:m, is the
// size of each block, and sum(K) should be equal to n.
// T - m by 1 vector indicates the type of each block. For i=1:m,
// T(i)=1 indicates the corresponding block is a repeated scalar
// real block
// T(i)=2 indicates the corresponding block is a full complex block.
// T(i)=3 indicates the corresponding block is a repeated complex
// scalar block.
// PARAMS =[printflg #iter rtol utol ptol #psteps #dsteps]
// if PARAMS has less than 7 elements the right most ones are set
// to their default values:
// printflg = 0 : print flag, 0 - nothing is printed
// #iter = 50 : # of iterations allowed
// rtol = 1.d-6 : required relative accuracy.
// utol = 1.d-10 : tolerance for unfeasability
// ptol = 1.d-12 : tolerance for projection
// #pstep = 5 : # of primal dichotomy steps
// #dstep = 0 : # of dual Newton steps, 0 - default dual step
// D - hermitian n by n matrix
// G - hermitian n by n matrix
//%Description
// Minimize mu such that D and G matrices exist which verify :
// M'*D*M +%i*(G*M - M'*G) -mu^2*D<=0
// D>=0
//!
// Origin R. Nikhoukah, S Steer Inria 1992
[lhs,rhs]=argn(0)
params_d=[1 50 1.d-6 1.d-10 1.d-12 5 0]
if rhs==3 then
params=params_d
else
np=prod(size(params))
for k=np+1:7
params(k)=params_d(k)
end
end
[n,n1]=size(M)
if n1<>n then error(20,1),end
nblc=prod(size(KK))
if nblc<>prod(size(T)) then
error('the bloc structure and type vector must have the same size')
end
if sum(KK)<>n then
error('sum of bloc size must equal de dimension of M')
end
Mr=real(M)
Mi=imag(M)
A=[]
b=[]
Q=[]
p=[]
x=[]
t1=find(t==1)
realcase=(norm(Mi,'inf')==0)&(t1==[])
if realcase then
// REAL CASE
//form a basis of D
ptr=1
xptr=1
for ib=1:nblc
blsiz=KK(ib)
if T(ib)==1|T(ib)==3 then
for l=ptr:ptr+blsiz-1
for k=ptr:l
Dr=0*ones(n,n);
Dr(k,l)=1
Dr(l,k)=1
A=[A compress(Dr)]
Q=[Q compress(Mr'*Dr*Mr)]
end
end
elseif T(ib)==2 then
Dr=0*ones(n,n);
Dr(ptr:ptr+blsiz-1,ptr:ptr+blsiz-1)=eye(blsiz,blsiz)
A=[A compress(Dr)]
Q=[Q compress(Mr'*Dr*Mr)]
else
error('blocs types must be 1 2 or 3')
end
ptr=ptr+blsiz
end
qg=[]
msiz=n
else
// COMPLEX CASE
//form a basis of D
MM=[Mr -Mi;Mi Mr]
MMh=[Mr' Mi';-Mi' Mr']
ptr=1
xptr=1
for ib=1:nblc
blsiz=KK(ib)
if T(ib)==1|T(ib)==3 then
for l=ptr:ptr+blsiz-1
for k=ptr:l
Dr=0*ones(n,n);
Dr(k,l)=1
Dr(l,k)=1
if l<>k then
Di=0*ones(n,n)
Di(l,k)=1;Di(k,l)=-1,
A=[A compress(eye(2,2).*.Dr) compress([0 -1;1 0].*.Di)]
Q=[Q compress(MMh*(eye(2,2).*.Dr)*MM),..
compress(MMh*([0 -1;1 0].*.Di)*MM)]
else
A=[A compress(eye(2,2).*.Dr)]
Q=[Q compress(MMh*(eye(2,2).*.Dr)*MM)]
end
end
end
elseif T(ib)==2 then
Dr=0*ones(n,n);
Dr(ptr:ptr+blsiz-1,ptr:ptr+blsiz-1)=eye(blsiz,blsiz)
A=[A compress(eye(2,2).*.Dr)]
Q=[Q compress(MMh*(eye(2,2).*.Dr)*MM)]
else
error('blocs types must be 1 2 or 3')
end
ptr=ptr+blsiz
end
// form basis for G
jMM=[-Mi -Mr;Mr -Mi]
jMMh=[Mi' -Mr'; Mr' Mi']
ptr=1
Qg=[]
for ib=1:nblc
blsiz=KK(ib)
if T(ib)==1
for l=ptr:ptr-1+blsiz
for k=ptr:l
Gr=0*ones(n,n);
Gr(k,l)=1
Gr(l,k)=1
if l<>k then
Gi=0*ones(n,n)
Gi(l,k)=1;Gi(k,l)=-1,
Qg=[Qg compress((eye(2,2).*.Gr)*jMM-jMMh*(eye(2,2).*.Gr))',..
compress(([0 -1;1 0].*.Gi)*jMM-jMMh*([0 -1;1 0].*.Gi))']
else
Qg=[Qg compress((eye(2,2).*.Gr)*jMM-jMMh*(eye(2,2).*.Gr))']
end
end
end
ptr=ptr+blsiz
end
end
msiz=2*n
end
//compress column of Qg to obtain full rank
[nQg,mQg]=size(Qg)
if nQg<>0 then
[u,rk]=colcomp(Qg)
Qg=Qg*u;Qg=Qg(:,mQg-rk+1:mQg);nQ=prod(size(Qg))
Q=[Q matrix(Qg,1,nQ)]
A=[A 0*ones(1,nQ)]
nxq=nQ/(msiz*(msiz+1)/2)
end
//
b=-0.0001*compress(eye(msiz,msiz))
p=0*b
//tmax=sum(m.*m')
tmax=(maxi(svd(m))**2)*(1+.1)
nx=prod(size(A))/(msiz*(msiz+1)/2)
// Solve the problem
[x,mu,info]=nemirov(A,b,Q,p,msiz,0,list(tmax,0*ones(1,nx)),params)
mu=sqrt(mu)
if info(1)<0 then
D=[];G=[]
return
end
if nQg<>0 then
//Choose a particular solution and transform back
xg=[0*ones(mQg-rk,1);x(nx-nxq+1:nx)]
x=[x(1:nx-nxq); u*xg]
end
// Reconstruct D matrix
ptr=1
xptr=1
Dr=0*ones(n,n);Di=0*ones(n,n);
if realcase then
for ib=1:nblc
blsiz=KK(ib)
if T(ib)==1|T(ib)==3 then
for l=ptr:ptr+blsiz-1
for k=ptr:l
Dr(k,l)=x(xptr);Dr(l,k)=x(xptr);
xptr=xptr+1
end
end
elseif T(ib)==2 then
Dr(ptr:ptr+blsiz-1,ptr:ptr+blsiz-1)=eye(blsiz,blsiz)*x(xptr)
xptr=xptr+1
end
ptr=ptr+blsiz
end
else
for ib=1:nblc
blsiz=KK(ib)
if T(ib)==1|T(ib)==3 then
for l=ptr:ptr+blsiz-1
for k=ptr:l
if l<>k then
Dr(k,l)=x(xptr);Dr(l,k)=x(xptr);
Di(l,k)=x(xptr+1);Di(k,l)=-x(xptr+1),
xptr=xptr+2
else
Dr(k,l)=x(xptr);Dr(l,k)=x(xptr);
xptr=xptr+1
end
end
end
elseif T(ib)==2 then
Dr(ptr:ptr+blsiz-1,ptr:ptr+blsiz-1)=eye(blsiz,blsiz)*x(xptr)
xptr=xptr+1
end
ptr=ptr+blsiz
end
end
// Reconstruct G matrix
ptr=1
Gr=0*ones(n,n);Gi=0*ones(n,n);
for ib=1:nblc
blsiz=KK(ib)
if T(ib)==1
for l=ptr:ptr-1+blsiz
for k=ptr:l
if l<>k then
Gr(l,k)=x(xptr);Gr(k,l)=x(xptr);
Gi(l,k)=x(xptr+1);Gi(k,l)=-x(xptr+1)
xptr=xptr+2
else
Gr(k,l)=x(xptr)
xptr=xptr+1
end
end
end
ptr=ptr+blsiz
end
end
D=Dr+%i*Di
G=Gr+%i*Gi
//end
function AA=compress(A)
//Si A est une matrice carree symetrique AA est le vecteur
// [A(1,1),A(2,1),A(2,2),...,A(q,1),...A(q,q),...]
//!
if norm(a-a','fro')>1.d-5 then
error('non symmetric matrix')
end
[m,n]=size(a)
AA=[]
for l=1:m,AA=[AA A(l,1:l)],end
//end
function A=uncompress(AA,mod)
//Reconstruit la matrice carree symetrique ou antisymetrique A
//a partir du vecteur AA:
// mode : 's' : la matrice A est symetrique
// 'a' : la matrice A est anti-symetrique
// [A(1,1),A(2,1),A(2,2),...,A(q,1),...A(q,q),...]
//!
nn=prod(size(AA))
m=maxi(real(roots(poly([-2*nn 1 1],'x','c'))))
s=1;if part(mod,1)=='a' then s=-1,end
A=[]
ptr=1
for l=1:m
A(l,1:l)=AA(ptr:ptr+l-1)
ptr=ptr+l
end
A=A+s*tril(A,-1)'
//end |
62604e8d587dd71ee44ff016773b3b21a23fde5a | 9f9364e082d4bc2f7ee5cbd7a489642615821873 | /src/testCases/test1-13.tst | ced5b26eb3dca9a596e483f0c5654e9b75c2dfd0 | [] | no_license | abrageddon/DLX-Opt | 4602617f83ddf8cb0fea83fecd2faa362849dfcd | 20038078f11a7ae67e7ab336e551e23966551290 | refs/heads/master | 2021-01-01T05:49:33.218016 | 2013-03-14T06:08:45 | 2013-03-14T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 290 | tst | test1-13.tst | main
var a22a, b33b;
{
let a22a <- 0;
let b33b <- 4;
if a22a < b33b then
let a22a <- a22a - b33b - b33b;
if a22a < b33b then
let a22a <- a22a - b33b - b33b
fi
fi;
call outputnum(a22a);
call outputnewline();
call outputnum(b33b);
call outputnewline()
}.
|
350b6908f601f20c2f81259f3d1cf0fa30a51ccf | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/rlevinson.sci | 300723403b08c6cf322ff537fa7ceb07c5a4921a | [] | no_license | sonusharma55/Signal-Toolbox | 3eff678d177633ee8aadca7fb9782b8bd7c2f1ce | 89bfeffefc89137fe3c266d3a3e746a749bbc1e9 | refs/heads/master | 2020-03-22T21:37:22.593805 | 2018-07-12T12:35:54 | 2018-07-12T12:35:54 | 140,701,211 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,030 | sci | rlevinson.sci | function [R, U, kr, e] = rlevinson(a, efinal)
//rlevinson function computes the autocorrelation coefficients using prediction polynomial.
// Calling Sequence
// a = rlevinson(a, efinal)
// [a, U] = rlevinson(a, efinal)
// [a, U, kr] = rlevinson(a, efinal)
// [a, U, kr, e] = rlevinson(a, efinal)
// Parameters
// a: input argument prediction polynomial.
// efinal: input argument 'final prediction error'.
// R: returns the autocorrelation coefficients.
// U: return a upper triangular matrox of order (length(a)*length(a))
// kr: return refelection coefficient.
// e: Return the vector of prediction error.
// Examples
//X = [7 6 5 8 3 6]
// R = rlevinson(X, 0.3)
//
// See also
//
// Author
// Jitendra Singh
//
if or(type(a)==10) then
error ('Input arguments must be numeric.')
end
if argn(2)<2 then // checking of number of input arguments, if argn(2)<2 execute error.
error ('Not enough input argument, define final prediction error.')
end
a=a(:);
if a(1)~=1 then
warning('First coefficient of the prediction polynomial was not unity.')
end
if a(1)==0 then
R=repmat(%nan,[length(a),1])
xx=length(a);
l=tril(zeros(xx,xx),-1);
d=diag(ones(1,xx));
u=triu(repmat(%nan,[xx,xx]),1);
U=l+d+u;
U(xx,xx)=%nan;
U(1:xx-1,xx)=(repmat(%inf,[1,xx-1]))'
kr=repmat(%nan,[xx-2,1]);
kr=[kr',%inf]
kr=kr'
else
a=a/a(1);
n=length(a);
if n<2 then // execute the error if the length of input vector in less than 2
error ('Polynomial should have at least two coefficients.')
end
if type(a)==1 then // checking for argument type
U=zeros(n,n);
end
U(:,n)=conj(a($:-1:1)); // store prediction coefficient of order p
n=n-1;
e(n)=efinal;
Kr(n)=a($); // defining the input required for next step i.e. levinson down
a=a'
for i=n-1:-1:1 // start levinson down
ee=a($)
a = (a-Kr(i+1)*flipdim(a,2,1))/(1-Kr(i+1)^2);
a=a(1:$-1)
Kr(i)=a($);
econj=conj(ee) //conjugate
econj=econj'
e(i) = e(i+1)/(1.-(econj.*ee));
U(:,i+1)=[conj(a($:-1:1).'); zeros(n-i,1)]; //conjugate
end // end of levinson down estimation
e=e';
if abs(a(2))==1 then
e1=%nan
else
e1=e(1)/(1-abs(a(2)^2));
end
U(1,1)=1;
kr=conj(U(1,2:$))
kr=kr';
R1=e1;
R(1)=-conj(U(1,2))*R1; //conjugate
for j=2:n
R(j)=-sum(conj(U(j-1:-1:1,j)).*R($:-1:1))- kr(j)*e(j-1);
R=R(:);
end
R=[R1; R];
end
endfunction
|
f850afd11107637b6c78d02d0fd51ab994caa8de | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH3/EX3.9/EX3_9.sce | 983ed6cebfa8b686233a929139d0f02ec5f2e63f | [] | 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 | 278 | sce | EX3_9.sce | //EXAMPLE 3-9 PG NO-178-179
Z1=10+%i*0;
Z2=13+%i*7.5;
Z3=-13+%i&7.5;
Z4=8.66-%i*5;
X=[Z1+Z2 Z3;Z3 Z2+Z4];
Z5=-104+%i*180.13;
Z6=280+%i*0;
Y=[Z5 Z3;Z6 Z2+Z4];
I1=det(Y/X);
disp('i) Current (I1) is = '+string (I1) +' A ');
|
0991e4cef73a9414e3fe8a66a6437058264c11db | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH3/EX3.20/MS_20.sce | fc9eeb8449d5acd12ab4d14a3eba6eef1e8609df | [] | 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 | 312 | sce | MS_20.sce | // sum 3-20
clc;
clear;
H=20;
D=5;
d=3;
rho=21;
sigd=rho*H;
p=2;
A=D*H;
P=p*A;
M=P*H/2;
Z=%pi*(D^4-d^4)/(32*D);
sigb=M/Z;
sigmax=420+sigb;
sigmin=420-sigb;
// printing data in scilab o/p window
printf("sigmax is %0.2f kN/m^2 ",sigmax);
printf("\n sigmin is %0.2f kN/m^2 ",sigmin); |
b37fc1bab333f0b4e47bad7ee7b946fbeddc1068 | 299721455523ed57682bfaa01171a2cad61590b9 | /exp 1/Addition of Matrices.sce | 1c20876dafe2edfa6b804888a28566dd8a8e2f72 | [] | no_license | Anupamgupta01/SCILAB-PROGRAMS | 5acc63c3409fa62f02a1f60ed488c10c7d489b88 | 924a153d3227c007a3682b487a1ebd14a523da96 | refs/heads/master | 2023-05-11T14:14:25.453037 | 2021-06-05T22:25:37 | 2021-06-05T22:25:37 | 374,222,790 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 453 | sce | Addition of Matrices.sce | clc;
m=input('Enter The Number Of Rows:')
n=input('Enter The Number Of Columns:')
A=zeros(m,n)
B=zeros(m,n)
C=zeros(m,n)
disp('Enter the elements of first matrix:')
for i=1:m
for j=1:n
A(i,j)=input('')
end
end
disp('Enter the elements of second matrix:')
for i=1:m
for j=1:n
B(i,j)=input('')
end
end
for i=1:m
for j=1:n
C(i,j)=A(i,j)+B(i,j)
end
end
disp('First Matrix:')
disp(A)
disp('Second Matrix:')
disp(B)
disp('Sum Of Above Two Matrices:')
disp(C)
|
0276af1e1c65ea30667b2294fee5fc2c81f57082 | c0aa53c5c57ef13997c78f6723cd4302b10db35a | /Segunda Unidade/verificarSeidel.sce | 6db2c6e736b4f5cffc9992a15278210aaccc0976 | [] | no_license | mpsdantas/computacao_numerica | 4a47a71c849f04f0493817ba1c502dfd22118598 | 5906b38941b99c7e702f730911878aba2b12bc71 | refs/heads/master | 2021-01-15T08:36:48.054724 | 2016-12-17T16:52:24 | 2016-12-17T16:52:24 | 67,094,751 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 453 | sce | verificarSeidel.sce | function converge = verificarSeidel(B)
[l c] = size(B);
C = abs(B);
Beta = ones(l,1);
converge=%T
for i=1:l
if (sum(C(i,:)) > 1)
converge = %F
break
end
Beta(i) = C(i,:)*Beta;
end
BetaMax = max(Beta);
if(BetaMax>1) then
converge = %F;
end
if (converge==%F) then
if (max(abs(spec(B)))<1) then
converge = %T
end
end
endfunction |
20de770558b1b7c0e57a35a8d9063170e4dac1dc | 4bbc2bd7e905b75d38d36d8eefdf3e34ba805727 | /ee_scicoslab/utils/cos2cosf_converter.sce | 866d266b98d5533e18958eab752b11f070479945 | [] | no_license | mannychang/erika2_Scicos-FLEX | 397be88001bdef59c0515652a365dbd645d60240 | 12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba | refs/heads/master | 2021-02-08T17:01:20.857172 | 2012-07-10T12:18:28 | 2012-07-10T12:18:28 | 244,174,890 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,354 | sce | cos2cosf_converter.sce | // ***********************************************************
// * ScicosLab Pack Installer *
// * Requires: Scicoslab v4.4.1 *
// * Built/Tested On: XP, Windows 7 *
// * Description: Convert .COS to .COSF *
// * Copyright (c) 2011 Evidence Srl *
// * Author: Dario Di Stefano, Evidence *
// ***********************************************************
// Load scicos library
lib(SCI + '/macros/scicos/');
// Load the cos2cosf function
x = cos2cosf;
// example
//load('prova_cos2cosf.cos'); // load the diagram
//file_name = 'pippo2.cosf'; // Open a file
//[u,err] = file('open',file_name,'unknown','formatted'); // open the detination file
//if err<>0 then
// disp("File or directory write access denied");
// return
//end
//cos2cosf(u,scs_m); // Call the conversion function
//file('close',u); // close the file
//return
// Set the reference path
// SCIDIR = strsubst(SCI,'/','\');
MYDIR = 'C:\Dario\EE_svn\repos\scilab_codegen\trunk\testcase';
MYDIR = x_dialog(['Enter directory path for COS files search:'],[MYDIR]);
if MYDIR == []
return;
end
cd(MYDIR);
// Create a list for the cos files
if ~MSDOS then // Unix Linux
disp('linux')
unix('find . -type f -name *.cos > x.x');
else
disp('win32')
unix('dir /S /B *.cos > x.x');
end
cos_list = mgetl('x.x');
mdelete x.x;
cos_list = x_dialog(['Select the files to be converted:'],[cos_list]);
if cos_list == []
return;
end
// Create the .cosf files
[numr,numl] = size(cos_list);
clear scs_m
for j = 1:1:numr,
[x,ierr] = fileinfo( cos_list(j) );
if(ierr <> 0)
disp('Warning: File ' + cos_list(j) + ' does not exist!');
continue;
end
if( grep(cos_list(j),'cosf') ~= [] )
continue;
end
disp('Converting file ' + cos_list(j));
load(cos_list(j));
[fd,err] = file('open',cos_list(j)+'f','unknown','formatted'); // open the detination file
if err ~= 0
disp('COS2COSF CONVERTER ERROR IN FILE: ' + cos_list(j));
break;
end
cos2cosf(fd, scs_m); // Call the conversion function
file('close', fd); // close the file
clear scs_m
end
|
9140e9836c69466db38151549e24d90c30461142 | 449d555969bfd7befe906877abab098c6e63a0e8 | /704/CH2/EX2.7/2_7.txt | c4fd24808d828d192ccbece320255b62f68376fd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 377 | txt | 2_7.txt | //Caption:Find out the speed for 6 pole machine
//Exam:2.7
clc;
clear;
close;
F=60;//flux per pole(in m Wb)
F_1=F*10^-3;//flux per pole(in Wb)
Z=480;//Number of armature conductors
P=6;//Number of poles
A=2;//Number of parallel paths(Armature wave wound)
E_g=320;//generated emf (in V)
N=E_g*60*A/(F_1*Z*P);//speed(in rpm)
disp(N,'speed of the machine (in rpm)='); |
367d363a5e452d70a40f5e467971fad2a210ebc6 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/percent/%s_4_hm.sci | ed9ce9a6014bc5a0b5dd24f71d37bee4ddced1b5 | [
"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 | 163 | sci | %s_4_hm.sci | function M=%s_4_hm(s,M)
// Copyright INRIA
//s>=M
if size(s,'*')<> 1 then
error('>= : arguments have incompatible dimensions')
end
M('entries')=s>=M('entries')
|
8dceb996db6837a900b4109fcbaa233eec2cd351 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH3/EX3.12/Ex3_12.sce | ac54942fcdb1e2a90c8b1d5e5b0b7c8b189f6171 | [] | 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 | 944 | sce | Ex3_12.sce |
//Variable declaration
k=0.0002 //device parameter
Vt=4 //thevinin voltage(V)
Vdd=24 //drain voltage(V)
Id0=3 //drain current(mA)
//Calculations
Vgs=(sqrt(Id0/k))+4 //as Id=k(Vgs-Vt)^2
Rd=-(Vgs-Vdd)/Id0 //as Vds=Vdd-IdRd and Vgs=Vds=7.87
k=0.0003 //device parameter
syms Id
expr = solve([Id**2-7.5*Id+13.7],[Id])
printf ("equation has 2 solutions")
disp(expr) // putting value of k=0.0003 in eq of Id,
Id1=3.15 // we get Vgs=Vds=24-5.4Id and putting Vgs again in Id we get,
// Id^2-7.5Id+13.7=0
Idchange=((Id1-Id0)/Id0)*100 //changed Id(mA)
//Result
printf ("change in Id is %.1f %% increase",Idchange)
|
c39c2e64681b34888ae7c4dab1ef3bd77709f5c3 | 009e6209a86f0838f0faca8a33b2c162e5d1a7a6 | /src/scripts/euler.sce | aadc9ae4618845267ac2cb611efbd47c30cbbc23 | [] | no_license | MoisesU/MESO-MetodosNumericos | 90a62a31e3213c50dec55228ceca7ce034cfbb7c | 17fe0efa1690ac93f36799a12a9f9c99f1ab94a4 | refs/heads/main | 2023-06-02T05:51:03.641326 | 2021-06-20T03:18:17 | 2021-06-20T03:18:17 | 306,203,044 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,093 | sce | euler.sce | function datos = euler(fxy, x1, y1, h, n)
datos = []
for i=1:n+1
datos(i, 1) = i-1
datos(i, 2) = x1
datos(i, 3) = y1
f2xy = fxy(x1, y1)
datos(i, 4) = f2xy
datos(i, 5) = h*f2xy
datos(i, 6) = datos(i, 5) + y1;
y1 = datos(i, 6)
x1 = x1+h
end
endfunction
function datos = eulerMejorado(fxy, x1, y1, h, n)
datos = []
for i=1:n+1
d = 0
yc = 0
yaux = 0
datos(i, 1) = i-1
datos(i, 2) = x1
datos(i, 3) = y1
f2xy = fxy(x1, y1)
datos(i, 4) = h * f2xy
yp = y1 + h* f2xy
datos(i, 5) = yp
x1 = x1 + h
datos(i, 6) = f2xy + fxy(x1, yp)
datos(i, 7) = h*(datos(i, 6) + datos(i, 4))/2;
datos(i, 8) = datos(i, 7) + y1;
y1 = datos(i, 8);
end
endfunction
|
61a434cb25e19ffb89062f3e2bf667958cabce87 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1541/CH2/EX2.40/Chapter2_Example40.sce | 729ec320c677cdf78d43824da41c4d19adc441b5 | [] | 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 | Chapter2_Example40.sce | //Chapter-2, Example 2.40, Page 2.75
//=============================================================================
clc
clear
//INPUT DATA
VLP=11000;//Primary line voltage in V
VLS=440;//Secondary line voltage in V
Vphp=11000;//Primary phase voltage in V
Vphs=(440/sqrt(3));//Secondary phase voltage in V
ILP=4;//Primary line current in A
q=0.8;//Power factor
//CALCULATIONS
Iphp=(ILP/sqrt(3));//Primary phase current in A
K=(Vphs/VLP);//Turn ratio
I2ph=(Iphp/K);//Secondary phase current in A
P=(sqrt(3)*VLS*VLP*q)/10^5;//Output of the transformer in kW
//OUTPUT
mprintf('Primary phase current is %3.2f A and Secondary phase current is %3.0f A \nOutput of the transformer is%3.0f kW',Iphp,I2ph,P)
//=================================END OF PROGRAM==============================
|
7ed0969aa9689da18a230e1f5db69c7cb822e9c3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH4/EX4.2/example_4_2.sce | 74a256d4d5144ba28550966b0a425ee773021060 | [] | 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 | 503 | sce | example_4_2.sce | syms s t V q L C R L1 L2 X1 X2 q1 R1 R2 q2 X
//F-V anolagy
F=V;
x=q;
M=L;
K=1/C;
B=R;
V=L1*q1*s^2 + R1*s*q1 + R2*s*(X1-X2)
//0=L2*s^2*q2 + (1/C)*q2 + R2*s*(q2-q1)
//REPLACING I/s=Q
disp("V=L1*s*I1 + R1*I1 + R2*(I1-I2)") //LOOP 1
disp("0=L2*s*I2 + 1/(s*C) + R2*(I2-I1)") //LOOP 2
//F-I ANOLOGY
phi=X;
F=I;
I=phi*(C*s^2 + 1/(R*s) + 1/L)
//REPLACING phi=V/s
I=V*(s*C + 1/R + 1/(s*L))
disp("i(t)=c*diff(v) + v/R + 1/L*int(v)") //taking laplace inverse
|
9d8b0aad6e6acfd72033a689c1073cba39242024 | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/DEPENDENCIES/16_10data.sci | df8cf2454d52f5f0636b6475e0ed21a2ff1d87f8 | [] | 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 | 72 | sci | 16_10data.sci | W=10;//load in N/m
L=20;//L in m
EI=70000;//flexural rigidity,in N.m^2 |
9a39e6896d291b9c44bfd3bb70910663b74adc90 | 494b677053e1199325a80808377463794e1003e5 | /experiments/gfs-gccl-c/gfs-gccl-c/results/Ignore-MV.GFS-GCCL-C.vehicle/result2s0.tst | 0b3df1f2572d5da3827309e2d025b01802c4041d | [] | no_license | kylecblyth/IIS-Project | 92fb0770addced8022817470f974bf5191bfe05d | abf66fd98d9b6c7c3a0fbc254ef4026641338489 | refs/heads/master | 2020-06-12T19:41:02.430510 | 2016-12-07T10:35:31 | 2016-12-07T10:35:31 | 75,764,815 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,863 | tst | result2s0.tst | @relation vehicle
@attribute COMPACTNESS integer[73,119]
@attribute CIRCULARITY integer[33,59]
@attribute DISTANCECIRCULARITY integer[40,112]
@attribute RADIUSRATIO integer[104,333]
@attribute PRAXISASPECTRATIO integer[47,138]
@attribute MAXLENGTHASPECTRATIO integer[2,55]
@attribute SCATTERRATIO integer[112,265]
@attribute ELONGATEDNESS integer[26,61]
@attribute PRAXISRECTANGULAR integer[17,29]
@attribute LENGTHRECTANGULAR integer[118,188]
@attribute MAJORVARIANCE integer[130,320]
@attribute MINORVARIANCE integer[184,1018]
@attribute GYRATIONRADIUS integer[109,268]
@attribute MAJORSKEWNESS integer[59,135]
@attribute MINORSKEWNESS integer[0,22]
@attribute MINORKURTOSIS integer[0,41]
@attribute MAJORKURTOSIS integer[176,206]
@attribute HOLLOWSRATIO integer[181,211]
@attribute class{van,saab,bus,opel}
@inputs COMPACTNESS,CIRCULARITY,DISTANCECIRCULARITY,RADIUSRATIO,PRAXISASPECTRATIO,MAXLENGTHASPECTRATIO,SCATTERRATIO,ELONGATEDNESS,PRAXISRECTANGULAR,LENGTHRECTANGULAR,MAJORVARIANCE,MINORVARIANCE,GYRATIONRADIUS,MAJORSKEWNESS,MINORSKEWNESS,MINORKURTOSIS,MAJORKURTOSIS,HOLLOWSRATIO
@outputs class
@data
van bus
bus bus
saab van
opel van
saab opel
bus bus
opel opel
van van
van van
bus bus
opel opel
van van
van van
bus bus
van van
bus bus
opel opel
van van
saab saab
opel van
bus bus
van van
opel bus
bus bus
bus bus
opel van
saab saab
van van
van van
van van
saab opel
saab bus
saab opel
bus bus
bus bus
opel saab
opel bus
opel van
van van
bus bus
bus van
bus bus
van van
bus saab
saab opel
van van
bus bus
bus bus
saab opel
saab bus
van van
opel opel
opel opel
saab opel
van van
saab opel
opel bus
opel van
opel bus
van van
opel saab
saab opel
saab saab
bus bus
bus bus
saab saab
opel saab
saab saab
saab saab
bus bus
saab saab
opel bus
saab opel
bus bus
saab opel
van van
opel saab
saab opel
bus bus
van van
opel van
bus bus
opel saab
saab saab
van van
|
1631599c4635a5faed66b8e52eab5c77af8e23b7 | fa428f297a915e9a041597642bfe29627ab69c42 | /app/views/partials/navbar.sce | 313823afb256d8666ba5b0f00fb9aca51517c5ce | [] | no_license | TheBrenny/Web-Dev-and-Security | dff903be92838b14f7126dd1f7092922b86bf2cc | e4abb96dc24e606704b09f5acdd2684d6d5d577d | refs/heads/main | 2023-06-17T08:33:35.176024 | 2021-06-15T05:07:20 | 2021-06-15T05:07:20 | 343,603,444 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 358 | sce | navbar.sce | <div class="navbar">
<img src="/assets/img/logo_small.png" alt="z5217759 // QM" class="logo">
<nav>
[[e= navItem in navList ]]
<a href="[[navItem.slug]]" class="navItem
[[?= navItem.active ]]
navActive
[[?==]]
">[[navItem.title]]</a>
[[?==]]
</nav>
</div> |
8b3a71e13b7de7b2624d87cd39068a339dadda78 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-MachineLearning/FLCoxPH-TD-05.tst | 4498cdcf4f76eca4b8f2dcce5db8f32f44442588 | [] | no_license | kamleshm/intern_fuzzy | c2dd079bf08bede6bca79af898036d7a538ab4e2 | aaef3c9dc9edf3759ef0b981597746d411d05d34 | refs/heads/master | 2021-01-23T06:25:46.162332 | 2017-07-12T07:12:25 | 2017-07-12T07:12:25 | 93,021,923 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 109 | tst | FLCoxPH-TD-05.tst | .run file=../PulsarLogOn.sql
CALL FLCoxPH('tblCoxPHdeep','ObsID', 'VarID', 'Num_Val', 15, NULL,AnalysisID);
|
9461b8d1b1c1b763fde70d81fd1d9e4fd6550e85 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3784/CH1/EX1.4/Ex1_4.sce | 8616179108b83fd9dac02be899c31f8d22c7a970 | [] | 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 | 592 | sce | Ex1_4.sce | clc
//Variable Initialization
Vm=320 //Input Voltage In Volts
Eb=100 //Back Emf In Volts
Ra=5 //Armature Resistance In Ohm
af=45 // Firing Angle Of SCR In Degree
N=1200 //Speed Of Motor In RPM
//Solution
Va=Vm* (1/%pi)* (1+cosd(af)) //Voltage Across Armature In volts
Ia=(Va-Eb)/Ra //Armature Current Amp
W=(2*%pi*N)/60 //Angular Speed In rad/Sec.
K=Eb/W //Voltage Constant In V-rad/Sec
T=K*Ia //Torque Of Motor In N-m
//Result
printf('\n\n The Armature Current=%0.1f Amp\n\n',Ia)
printf('\n\n The Motor Torque=%0.1f N-m\n\n',T)
//The answers vary due to round off error
|
a4454535c9a8cffa81f7f31592e4767f71234db6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH8/EX8.2/8Ex2.sce | 84612186190e7d684c0f8267ddcf1d88acda697c | [] | 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 | 261 | sce | 8Ex2.sce | //chapter 8 Ex 1
clc;
clear;
close;
//let age of younger person be x
//by the given condition: equation is 3(x-6)=x+16-6;
mycoeff=[-28 2];
p=poly(mycoeff,"x","coeff");
x=roots(p);
mprintf("Their present ages are %d years and %d years",x,x+16);
|
ef3d957765ae26054534bc1daf10baf75798b94a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2213/CH7/EX7.24/ex_7_24.sce | 9cfe137ba6d4df66eb08845fd6cd56b5aa332a6d | [] | 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 | 373 | sce | ex_7_24.sce | //Example 7.24: weight of the locomotive abd number of axles
clc;
clear;
close;
//given data :
W=12*30;//tonnes
we=1.04*360;//tonnes
r=5*9.81;//
G=1;//in percentage
mu=0.2;//
alpha=0.8;//
x=13.882;//
y=0.041;//
wlo=(x)/(mu-y);//in tonnes
al=20;//allowable load in tonnes
na=wlo/al;//
disp(wlo,"weight of the locomotive in tonnes")
disp(ceil(na),"number of axles required")
|
9403133bcbd8a6d9ad9413c74191b5f2738113a3 | 1a679c5bea6f6f3d080ec52122a5c04f941f8e67 | /log transformation.sce | 83adcf9d7f31adbd5fd6ba877407354688f85ecf | [] | no_license | Malay1998/Image-Processing-with-Scilab | c34c35d76d2db50f41c9b95b239a0f5e6d203a80 | 4ab83c92212d4fdbb9cb6f75ce06cfced34d0c7c | refs/heads/main | 2023-06-04T04:06:35.361106 | 2021-06-26T22:00:38 | 2021-06-26T22:00:38 | 380,540,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 158 | sce | log transformation.sce | a=imread('milkeway.jpg');
b=double(a);
[m,n]=size(b);
for i=1:m
for j=1:n
c(i,j)=10*log(1+b(i,j));
end
end
imshow(c);
|
3e184a3625bb83d02359c35b78913b287532db34 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3401/CH5/EX5.1/Ex5_1.sce | aac57710d763388dd5d4e652290d0f82e03af120 | [] | 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 | 329 | sce | Ex5_1.sce | clc
Nd=10**16 //cm^-3
Na=0
ni=1.8*10**6 //cm^-3
T=300 //K
k=8.617*10^-5 //eV/K
E=10 //V/cm^2
e=1.6*10**-19
un=8500
n0=((Nd-Na)/2)+sqrt((((Nd-Na)/2)^2)+ni^2)
disp(n0,"n0 in cm^-3 is")
p0=(ni^2)/n0
disp(p0,"p0 in cm^-3")
//Jdrf=e*(un*n0+up*p0)*E= e*un*Nd*E
Jdrf=e*un*Nd*E
disp(Jdrf,"Jdrf in A/cm^2 is= ")
|
1173e54a74a30228a5fbdd828ea7e01e2468a5c7 | 2f14b5754bf00d8f425d930813ec9fbb37443f20 | /rps2.sce | fa43e0afe843dcb800fb062e4e7020231ecfa155 | [] | no_license | sohamkan/Sci-projects | 9f14b01e4937ccf3cf59732fc19d495d566bfaae | 5baf7456498ba0075760095655826b7ddcae471e | refs/heads/master | 2022-11-22T04:03:53.155413 | 2020-07-12T04:31:34 | 2020-07-12T04:31:34 | 278,990,043 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,660 | sce | rps2.sce | function [] = rockpaperscissors(n)
clc;
clear all;
R = 1;
P = 2;
S = 3;
n = 1;
while n == 1
pause(0.5);
pause on
o = 1;
while o == 1
player_move = upper(input('Make your move [R/P/S]: ','s'));
disp(' ');
pause(0.5);
pause on
if player_move == 'R'
disp('Player chose Rock');
o=0;
elseif player_move == 'P'
disp('Player chose Paper');
o=0;
elseif player_move == 'S'
disp('Player chose Scissors');
o=0;
else
disp('Invalid input only use R, P or S');
end
pause(0.5);
pause on
end
disp(' ');
pause(0.5);
pause on
computer_move = randi([1,3]);
if computer_move == 1
disp('Computer chose Rock')
elseif computer_move == 2
disp('Computer chose Paper')
elseif computer_move == 3
disp('Computer chose Scissors')
end
disp(' ');
pause(0.5);
pause on
if player_move == 'R' && computer_move == 3
disp('Player wins');
n = 0;
elseif computer_move == 1 && player_move == 'S'
disp('Computer wins')
n = 0;
end
if player_move == 'S' && computer_move == 2
disp('Player wins')
n = 0;
elseif computer_move == 3 && player_move == 'P'
disp('Computer wins')
n = 0;
end
if player_move == 'P' && computer_move == 1
disp('Player wins')
n = 0;
elseif computer_move == 2 && player_move == 'R'
disp('Computer wins')
n = 0;
end
if player_move == computer_move
disp('Game is a draw. Playing again...');
n = 1;
end
disp(' ');
end
player_move = upper(input('Make your move [R/P/S]: ','s'));
if player_move == 'R'
disp('Player chose Rock');
elseif player_move == 'P'
disp('Player chose Paper');
elseif player_move == 'S'
disp('Player chose Scissors');
end
computer_move = randi([1,3]);
if computer_move == 1
disp('Computer chose Rock')
elseif computer_move == 2
disp('Computer chose Paper')
elseif computer_move == 3
disp('Computer chose Scissors')
end
end
while player_move == computer_move
player_move = upper(input('Make your move [R/P/S]: ','s'));
if player_move == 'R'
disp('Player chose Rock');
elseif player_move == 'P'
disp('Player chose Paper');
elseif player_move == 'S'
disp('Player chose Scissors');
end
computer_move = randi([1,3]);
if computer_move == 1
disp('Computer chose Rock')
elseif computer_move == 2
disp('Computer chose Paper')
elseif computer_move == 3
disp('Computer chose Scissors')
end
if player_move == 'R' && computer_move == 2
disp('Player wins')
elseif computer_move == 1 && player_move == 'S'
disp('Computer wins')
end
if computer_move == 1 && player_move == 'S'
disp('Computer wins')
elseif player_move == 'R' && computer_move == 2
disp('Player wins')
end
if player_move == 'S' && computer_move == 3
disp('Player wins')
elseif computer_move == 2 && player_move == 'P'
disp('Computer wins')
end
if computer_move == 2 && player_move == 'P'
disp('Computer wins')
elseif player_move == 'S' && computer_move == 3
disp('Player wins')
end
if player_move == 'P' && computer_move == 1
disp('Player wins')
elseif computer_move == 3 && player_move == 'R'
disp('Computer wins')
end
if computer_move == 3 && player_move == 'R'
disp('Computer wins')
elseif player_move == 'P' && computer_move == 1
disp('Player wins')
end
end
if player_move == computer_move
disp('Game is a draw. Playing again ...');
else
end
disp(move);
while computer_move ~= player_move
end
|
60bfd3afc3de008a0777651f4ad4706c5043eff1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1733/CH8/EX8.17/8_17.sce | f5b16eeb6dab4d49c7a28f281bb89c5cf4d5dde2 | [] | 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 | 112 | sce | 8_17.sce | //8.17
clc;
R1=50*10^3;
R=10*10^3;
Vs1=4.5;
Vs2=5;
Vo=R1/R*(Vs2-Vs1);
printf("Output voltage=%.1f V", Vo) |
384e0971ccdc13d6cb8cb319e8bf48707188b24b | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/LT52YEG/ATWM1_Working_Memory_MEG_LT52YEG_Session1/ATWM1_Working_Memory_MEG_Salient_Cued_Run1.sce | 91403c168cd7cf36d410142afdece5e246adef13 | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 49,381 | sce | ATWM1_Working_Memory_MEG_Salient_Cued_Run1.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run1";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 36;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 382; width = 382; color = 0, 0, 0;} frame1;
box { height = 369; width = 369; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 369; width = 369; color = 42, 42, 42;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# Start of experiment (MEG only) - sync with CTF software
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
} expStart;
time = 0;
duration = 1000;
code = "ExpStart";
port_code = 80;
};
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 10000;
#mri_pulse = 1;
code = "BaselinePre";
port_code = 91;
};
TEMPLATE "ATWM1_Working_Memory_MEG.tem" {
trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
41 61 292 292 399 125 2142 2992 2592 fixation_cross gabor_063 gabor_126 gabor_040 gabor_081 gabor_063 gabor_126_alt gabor_040 gabor_081_alt "1_1_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2600_gabor_patch_orientation_063_126_040_081_target_position_2_4_retrieval_position_2" gabor_circ gabor_171_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_1_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_171_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 2492 fixation_cross gabor_158 gabor_142 gabor_023 gabor_092 gabor_158_alt gabor_142 gabor_023_alt gabor_092 "1_2_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2500_gabor_patch_orientation_158_142_023_092_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_070_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_2_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1942 2992 2292 fixation_cross gabor_057 gabor_023 gabor_087 gabor_175 gabor_057 gabor_023_alt gabor_087 gabor_175_alt "1_3_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2300_gabor_patch_orientation_057_023_087_175_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_039_framed blank blank blank blank fixation_cross_target_position_2_4 "1_3_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_039_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1892 2992 2142 fixation_cross gabor_178 gabor_053 gabor_068 gabor_098 gabor_178_alt gabor_053_alt gabor_068 gabor_098 "1_4_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2150_gabor_patch_orientation_178_053_068_098_target_position_1_2_retrieval_position_1" gabor_178_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_4_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1742 2992 2192 fixation_cross gabor_084 gabor_172 gabor_066 gabor_028 gabor_084 gabor_172 gabor_066_alt gabor_028_alt "1_5_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_300_300_399_1750_3000_2200_gabor_patch_orientation_084_172_066_028_target_position_3_4_retrieval_position_1" gabor_084_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_5_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_084_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 2142 fixation_cross gabor_002 gabor_174 gabor_117 gabor_030 gabor_002_alt gabor_174_alt gabor_117 gabor_030 "1_6_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2150_gabor_patch_orientation_002_174_117_030_target_position_1_2_retrieval_position_1" gabor_049_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_6_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_049_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 2092 fixation_cross gabor_152 gabor_029 gabor_111 gabor_135 gabor_152_alt gabor_029_alt gabor_111 gabor_135 "1_7_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2100_gabor_patch_orientation_152_029_111_135_target_position_1_2_retrieval_position_2" gabor_circ gabor_079_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_7_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_079_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1792 2992 1992 fixation_cross gabor_032 gabor_005 gabor_076 gabor_141 gabor_032 gabor_005 gabor_076_alt gabor_141_alt "1_8_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_032_005_076_141_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_076_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_8_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_076_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2042 2992 2542 fixation_cross gabor_113 gabor_095 gabor_153 gabor_176 gabor_113 gabor_095_alt gabor_153 gabor_176_alt "1_9_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2550_gabor_patch_orientation_113_095_153_176_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_176_framed blank blank blank blank fixation_cross_target_position_2_4 "1_9_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1792 2992 2442 fixation_cross gabor_056 gabor_141 gabor_166 gabor_027 gabor_056_alt gabor_141_alt gabor_166 gabor_027 "1_10_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2450_gabor_patch_orientation_056_141_166_027_target_position_1_2_retrieval_position_2" gabor_circ gabor_141_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_10_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_141_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1842 2992 2442 fixation_cross gabor_115 gabor_131 gabor_150 gabor_008 gabor_115_alt gabor_131 gabor_150_alt gabor_008 "1_11_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2450_gabor_patch_orientation_115_131_150_008_target_position_1_3_retrieval_position_1" gabor_115_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_11_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_115_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 2342 fixation_cross gabor_086 gabor_111 gabor_028 gabor_167 gabor_086 gabor_111_alt gabor_028 gabor_167_alt "1_12_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2350_gabor_patch_orientation_086_111_028_167_target_position_2_4_retrieval_position_2" gabor_circ gabor_061_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_12_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_061_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2092 2992 2042 fixation_cross gabor_129 gabor_161 gabor_006 gabor_083 gabor_129_alt gabor_161_alt gabor_006 gabor_083 "1_13_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_300_300_399_2100_3000_2050_gabor_patch_orientation_129_161_006_083_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_145_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_13_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_145_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 1942 fixation_cross gabor_115 gabor_044 gabor_178 gabor_161 gabor_115 gabor_044_alt gabor_178_alt gabor_161 "1_14_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_1950_gabor_patch_orientation_115_044_178_161_target_position_2_3_retrieval_position_2" gabor_circ gabor_090_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_14_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2142 2992 2392 fixation_cross gabor_142 gabor_164 gabor_035 gabor_081 gabor_142 gabor_164_alt gabor_035 gabor_081_alt "1_15_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2400_gabor_patch_orientation_142_164_035_081_target_position_2_4_retrieval_position_2" gabor_circ gabor_164_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_15_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_164_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1842 2992 2242 fixation_cross gabor_131 gabor_096 gabor_172 gabor_016 gabor_131 gabor_096 gabor_172_alt gabor_016_alt "1_16_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_300_300_399_1850_3000_2250_gabor_patch_orientation_131_096_172_016_target_position_3_4_retrieval_position_2" gabor_circ gabor_096_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_16_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_096_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1992 2992 1942 fixation_cross gabor_139 gabor_098 gabor_058 gabor_121 gabor_139_alt gabor_098 gabor_058 gabor_121_alt "1_17_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_1950_gabor_patch_orientation_139_098_058_121_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_171_framed blank blank blank blank fixation_cross_target_position_1_4 "1_17_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_171_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2142 2992 2392 fixation_cross gabor_078 gabor_126 gabor_042 gabor_148 gabor_078 gabor_126_alt gabor_042 gabor_148_alt "1_18_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2400_gabor_patch_orientation_078_126_042_148_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_098_framed blank blank blank blank fixation_cross_target_position_2_4 "1_18_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_098_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1992 2992 2242 fixation_cross gabor_026 gabor_011 gabor_099 gabor_068 gabor_026 gabor_011_alt gabor_099 gabor_068_alt "1_19_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_026_011_099_068_target_position_2_4_retrieval_position_2" gabor_circ gabor_011_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_19_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1842 2992 2492 fixation_cross gabor_067 gabor_180 gabor_144 gabor_039 gabor_067_alt gabor_180 gabor_144 gabor_039_alt "1_20_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2500_gabor_patch_orientation_067_180_144_039_target_position_1_4_retrieval_position_1" gabor_067_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_20_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_067_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2442 fixation_cross gabor_016 gabor_062 gabor_078 gabor_123 gabor_016_alt gabor_062_alt gabor_078 gabor_123 "1_21_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2450_gabor_patch_orientation_016_062_078_123_target_position_1_2_retrieval_position_1" gabor_016_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_21_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_016_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 1942 fixation_cross gabor_062 gabor_040 gabor_147 gabor_091 gabor_062_alt gabor_040 gabor_147 gabor_091_alt "1_22_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_1950_gabor_patch_orientation_062_040_147_091_target_position_1_4_retrieval_position_1" gabor_062_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_22_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_062_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1792 2992 2192 fixation_cross gabor_078 gabor_012 gabor_034 gabor_094 gabor_078_alt gabor_012 gabor_034_alt gabor_094 "1_23_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_300_300_399_1800_3000_2200_gabor_patch_orientation_078_012_034_094_target_position_1_3_retrieval_position_2" gabor_circ gabor_151_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_23_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_151_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2342 fixation_cross gabor_167 gabor_023 gabor_108 gabor_046 gabor_167 gabor_023 gabor_108_alt gabor_046_alt "1_24_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2350_gabor_patch_orientation_167_023_108_046_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_046_framed blank blank blank blank fixation_cross_target_position_3_4 "1_24_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_046_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2242 2992 2442 fixation_cross gabor_151 gabor_103 gabor_072 gabor_041 gabor_151 gabor_103_alt gabor_072 gabor_041_alt "1_25_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_151_103_072_041_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_041_framed blank blank blank blank fixation_cross_target_position_2_4 "1_25_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1992 2992 2242 fixation_cross gabor_179 gabor_109 gabor_064 gabor_048 gabor_179_alt gabor_109_alt gabor_064 gabor_048 "1_26_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_179_109_064_048_target_position_1_2_retrieval_position_1" gabor_134_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_26_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_134_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1892 2992 2292 fixation_cross gabor_018 gabor_150 gabor_127 gabor_037 gabor_018 gabor_150_alt gabor_127_alt gabor_037 "1_27_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_018_150_127_037_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_077_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_27_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_077_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1792 2992 2342 fixation_cross gabor_138 gabor_167 gabor_100 gabor_118 gabor_138 gabor_167 gabor_100_alt gabor_118_alt "1_28_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_300_300_399_1800_3000_2350_gabor_patch_orientation_138_167_100_118_target_position_3_4_retrieval_position_2" gabor_circ gabor_031_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_28_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_031_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1892 2992 2142 fixation_cross gabor_115 gabor_170 gabor_138 gabor_100 gabor_115 gabor_170_alt gabor_138 gabor_100_alt "1_29_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2150_gabor_patch_orientation_115_170_138_100_target_position_2_4_retrieval_position_2" gabor_circ gabor_170_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_29_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_170_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2092 2992 2542 fixation_cross gabor_022 gabor_159 gabor_053 gabor_176 gabor_022_alt gabor_159 gabor_053 gabor_176_alt "1_30_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2550_gabor_patch_orientation_022_159_053_176_target_position_1_4_retrieval_position_1" gabor_022_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_30_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_022_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1892 2992 1942 fixation_cross gabor_163 gabor_098 gabor_075 gabor_039 gabor_163 gabor_098_alt gabor_075 gabor_039_alt "1_31_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_300_300_399_1900_3000_1950_gabor_patch_orientation_163_098_075_039_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_123_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_31_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_123_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 1992 fixation_cross gabor_180 gabor_143 gabor_006 gabor_115 gabor_180 gabor_143_alt gabor_006 gabor_115_alt "1_32_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2000_gabor_patch_orientation_180_143_006_115_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_069_framed blank blank blank blank fixation_cross_target_position_2_4 "1_32_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_069_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2242 2992 2042 fixation_cross gabor_007 gabor_089 gabor_173 gabor_024 gabor_007_alt gabor_089_alt gabor_173 gabor_024 "1_33_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2050_gabor_patch_orientation_007_089_173_024_target_position_1_2_retrieval_position_1" gabor_007_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_33_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_007_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 1992 fixation_cross gabor_039 gabor_148 gabor_058 gabor_073 gabor_039_alt gabor_148 gabor_058_alt gabor_073 "1_34_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2000_gabor_patch_orientation_039_148_058_073_target_position_1_3_retrieval_position_1" gabor_179_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_34_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 2192 fixation_cross gabor_166 gabor_141 gabor_080 gabor_010 gabor_166_alt gabor_141 gabor_080_alt gabor_010 "1_35_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_166_141_080_010_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_035_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_35_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2042 2992 2092 fixation_cross gabor_118 gabor_052 gabor_160 gabor_086 gabor_118_alt gabor_052 gabor_160 gabor_086_alt "1_36_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2100_gabor_patch_orientation_118_052_160_086_target_position_1_4_retrieval_position_1" gabor_118_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_36_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_118_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2092 2992 2192 fixation_cross gabor_027 gabor_087 gabor_053 gabor_143 gabor_027_alt gabor_087 gabor_053 gabor_143_alt "1_37_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2200_gabor_patch_orientation_027_087_053_143_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_143_framed blank blank blank blank fixation_cross_target_position_1_4 "1_37_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1742 2992 2342 fixation_cross gabor_001 gabor_154 gabor_065 gabor_039 gabor_001_alt gabor_154 gabor_065 gabor_039_alt "1_38_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_300_300_399_1750_3000_2350_gabor_patch_orientation_001_154_065_039_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_065_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_38_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_065_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2042 2992 2492 fixation_cross gabor_005 gabor_062 gabor_169 gabor_039 gabor_005_alt gabor_062 gabor_169_alt gabor_039 "1_39_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2500_gabor_patch_orientation_005_062_169_039_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_121_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_39_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_121_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2042 2992 2542 fixation_cross gabor_152 gabor_046 gabor_115 gabor_131 gabor_152 gabor_046_alt gabor_115_alt gabor_131 "1_40_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2550_gabor_patch_orientation_152_046_115_131_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_070_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_40_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2192 2992 2142 fixation_cross gabor_178 gabor_137 gabor_098 gabor_008 gabor_178 gabor_137_alt gabor_098_alt gabor_008 "1_41_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_300_300_399_2200_3000_2150_gabor_patch_orientation_178_137_098_008_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_056_framed blank blank blank blank fixation_cross_target_position_2_3 "1_41_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_056_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2142 fixation_cross gabor_082 gabor_016 gabor_142 gabor_105 gabor_082 gabor_016_alt gabor_142 gabor_105_alt "1_42_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_082_016_142_105_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_105_framed blank blank blank blank fixation_cross_target_position_2_4 "1_42_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_105_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 2292 fixation_cross gabor_022 gabor_105 gabor_038 gabor_154 gabor_022_alt gabor_105 gabor_038_alt gabor_154 "1_43_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2300_gabor_patch_orientation_022_105_038_154_target_position_1_3_retrieval_position_1" gabor_022_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_43_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_022_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 2242 fixation_cross gabor_123 gabor_095 gabor_018 gabor_037 gabor_123 gabor_095 gabor_018_alt gabor_037_alt "1_44_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2250_gabor_patch_orientation_123_095_018_037_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_176_framed blank blank blank blank fixation_cross_target_position_3_4 "1_44_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1992 2992 1892 fixation_cross gabor_154 gabor_048 gabor_133 gabor_026 gabor_154_alt gabor_048 gabor_133 gabor_026_alt "1_45_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_154_048_133_026_target_position_1_4_retrieval_position_1" gabor_105_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_45_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_105_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 2042 2992 2592 fixation_cross gabor_077 gabor_127 gabor_096 gabor_021 gabor_077_alt gabor_127_alt gabor_096 gabor_021 "1_46_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_300_300_399_2050_3000_2600_gabor_patch_orientation_077_127_096_021_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_021_framed blank blank blank blank fixation_cross_target_position_1_2 "1_46_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_021_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2192 2992 2092 fixation_cross gabor_151 gabor_179 gabor_091 gabor_063 gabor_151 gabor_179 gabor_091_alt gabor_063_alt "1_47_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2100_gabor_patch_orientation_151_179_091_063_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_041_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_47_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1842 2992 1892 fixation_cross gabor_167 gabor_149 gabor_134 gabor_009 gabor_167 gabor_149_alt gabor_134_alt gabor_009 "1_48_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_1900_gabor_patch_orientation_167_149_134_009_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_134_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_48_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_134_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1842 2992 2392 fixation_cross gabor_093 gabor_013 gabor_051 gabor_159 gabor_093_alt gabor_013_alt gabor_051 gabor_159 "1_49_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2400_gabor_patch_orientation_093_013_051_159_target_position_1_2_retrieval_position_1" gabor_093_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_49_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_093_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 2292 fixation_cross gabor_173 gabor_037 gabor_062 gabor_124 gabor_173_alt gabor_037 gabor_062_alt gabor_124 "1_50_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2300_gabor_patch_orientation_173_037_062_124_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_014_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_50_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_014_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2042 2992 2542 fixation_cross gabor_141 gabor_085 gabor_124 gabor_160 gabor_141 gabor_085_alt gabor_124_alt gabor_160 "1_51_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2550_gabor_patch_orientation_141_085_124_160_target_position_2_3_retrieval_position_2" gabor_circ gabor_035_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_51_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1892 2992 1892 fixation_cross gabor_092 gabor_074 gabor_138 gabor_161 gabor_092_alt gabor_074 gabor_138 gabor_161_alt "1_52_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_300_300_399_1900_3000_1900_gabor_patch_orientation_092_074_138_161_target_position_1_4_retrieval_position_2" gabor_circ gabor_027_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_52_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_027_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2142 2992 2092 fixation_cross gabor_018 gabor_153 gabor_138 gabor_123 gabor_018 gabor_153_alt gabor_138 gabor_123_alt "1_53_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2100_gabor_patch_orientation_018_153_138_123_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_075_framed blank blank blank blank fixation_cross_target_position_2_4 "1_53_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_075_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1742 2992 2242 fixation_cross gabor_162 gabor_107 gabor_177 gabor_046 gabor_162_alt gabor_107_alt gabor_177 gabor_046 "1_54_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2250_gabor_patch_orientation_162_107_177_046_target_position_1_2_retrieval_position_1" gabor_162_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_54_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_162_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1992 2992 2092 fixation_cross gabor_131 gabor_098 gabor_023 gabor_045 gabor_131 gabor_098 gabor_023_alt gabor_045_alt "1_55_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_300_300_399_2000_3000_2100_gabor_patch_orientation_131_098_023_045_target_position_3_4_retrieval_position_1" gabor_180_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_55_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_180_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2042 fixation_cross gabor_141 gabor_054 gabor_113 gabor_028 gabor_141 gabor_054 gabor_113_alt gabor_028_alt "1_56_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2050_gabor_patch_orientation_141_054_113_028_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_028_framed blank blank blank blank fixation_cross_target_position_3_4 "1_56_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_028_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 2342 fixation_cross gabor_067 gabor_137 gabor_016 gabor_093 gabor_067_alt gabor_137 gabor_016_alt gabor_093 "1_57_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2350_gabor_patch_orientation_067_137_016_093_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_154_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_57_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2142 2992 2192 fixation_cross gabor_151 gabor_136 gabor_088 gabor_169 gabor_151 gabor_136_alt gabor_088 gabor_169_alt "1_58_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2200_gabor_patch_orientation_151_136_088_169_target_position_2_4_retrieval_position_2" gabor_circ gabor_136_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_58_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_136_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 1992 fixation_cross gabor_005 gabor_134 gabor_113 gabor_152 gabor_005 gabor_134_alt gabor_113 gabor_152_alt "1_59_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2000_gabor_patch_orientation_005_134_113_152_target_position_2_4_retrieval_position_2" gabor_circ gabor_088_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_59_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_088_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 1942 fixation_cross gabor_087 gabor_060 gabor_177 gabor_138 gabor_087 gabor_060_alt gabor_177 gabor_138_alt "1_60_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_1950_gabor_patch_orientation_087_060_177_138_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_003_framed blank blank blank blank fixation_cross_target_position_2_4 "1_60_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_003_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 2192 2992 1892 fixation_cross gabor_121 gabor_104 gabor_076 gabor_166 gabor_121_alt gabor_104 gabor_076_alt gabor_166 "1_61_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_1900_gabor_patch_orientation_121_104_076_166_target_position_1_3_retrieval_position_2" gabor_circ gabor_104_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_61_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_104_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 2292 fixation_cross gabor_180 gabor_064 gabor_136 gabor_018 gabor_180 gabor_064 gabor_136_alt gabor_018_alt "1_62_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2300_gabor_patch_orientation_180_064_136_018_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_136_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_62_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_136_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1992 2992 2592 fixation_cross gabor_175 gabor_154 gabor_065 gabor_026 gabor_175_alt gabor_154_alt gabor_065 gabor_026 "1_63_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2600_gabor_patch_orientation_175_154_065_026_target_position_1_2_retrieval_position_2" gabor_circ gabor_107_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_63_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_107_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1842 2992 2492 fixation_cross gabor_126 gabor_069 gabor_040 gabor_004 gabor_126 gabor_069_alt gabor_040_alt gabor_004 "1_64_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_300_300_399_1850_3000_2500_gabor_patch_orientation_126_069_040_004_target_position_2_3_retrieval_position_1" gabor_126_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_64_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_126_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1792 2992 1992 fixation_cross gabor_085 gabor_173 gabor_008 gabor_143 gabor_085 gabor_173_alt gabor_008_alt gabor_143 "1_65_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_085_173_008_143_target_position_2_3_retrieval_position_2" gabor_circ gabor_173_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_65_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1942 2992 1892 fixation_cross gabor_085 gabor_166 gabor_061 gabor_029 gabor_085_alt gabor_166 gabor_061_alt gabor_029 "1_66_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_1900_gabor_patch_orientation_085_166_061_029_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_011_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_66_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2142 2992 2392 fixation_cross gabor_088 gabor_047 gabor_113 gabor_028 gabor_088_alt gabor_047_alt gabor_113 gabor_028 "1_67_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2400_gabor_patch_orientation_088_047_113_028_target_position_1_2_retrieval_position_1" gabor_088_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_67_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_088_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1842 2992 2042 fixation_cross gabor_079 gabor_006 gabor_115 gabor_168 gabor_079_alt gabor_006 gabor_115 gabor_168_alt "1_68_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_079_006_115_168_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_168_framed blank blank blank blank fixation_cross_target_position_1_4 "1_68_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_168_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1892 2992 2592 fixation_cross gabor_034 gabor_001 gabor_152 gabor_177 gabor_034_alt gabor_001_alt gabor_152 gabor_177 "1_69_Encoding_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_300_300_399_1900_3000_2600_gabor_patch_orientation_034_001_152_177_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_152_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_69_Retrieval_Working_Memory_MEG_P4_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_152_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1892 2992 2042 fixation_cross gabor_109 gabor_040 gabor_085 gabor_172 gabor_109_alt gabor_040 gabor_085 gabor_172_alt "1_70_Encoding_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_109_040_085_172_target_position_1_4_retrieval_position_1" gabor_154_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_70_Retrieval_Working_Memory_MEG_P4_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 5000;
code = "BaselinePost";
port_code = 92;
}; |
af3ec877c01552e3ad519ee2c5e6a38bdfdd68ab | c9fb7b224ecd2667e852df2fa71650e0d151ff40 | /Average_Traditional.sce | 5fd3e08c9eef916e8679d57db7ef7f931d9021b7 | [] | no_license | janeriongcol/ndsg-chupacabra | 13a2d3983fa57ae411fa9b665d255e5e7ed00d58 | bafd668a8247b965aee9d2482f0ead4ea6d158a3 | refs/heads/master | 2021-01-18T14:05:38.927008 | 2014-01-08T14:31:45 | 2014-01-08T14:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,382 | sce | Average_Traditional.sce | di = pwd() + "/Documents"
num_files = 15
num_cycles = 100
file_names = ["data_traditional_AverageConnectionSetUpTime.txt", "data_traditional_AverageUtilization.txt", "data_traditional_AveragePlaybackDelayTime.txt", "data_gcp2p_AverageRTT.txt", "data_traditional_AverageReject.txt"]
conn_arr =
["data_traditional_ConnectionSetUpTime1.txt", "data_traditional_ConnectionSetUpTime2.txt", "data_traditional_ConnectionSetUpTime3.txt",
"data_traditional_ConnectionSetUpTime4.txt", "data_traditional_ConnectionSetUpTime5.txt", "data_traditional_ConnectionSetUpTime6.txt",
"data_traditional_ConnectionSetUpTime7.txt", "data_traditional_ConnectionSetUpTime8.txt", "data_traditional_ConnectionSetUpTime9.txt",
"data_traditional_ConnectionSetUpTime10.txt", "data_traditional_ConnectionSetUpTime11.txt", "data_traditional_ConnectionSetUpTime12.txt", "data_traditional_ConnectionSetUpTime13.txt", "data_traditional_ConnectionSetUpTime14.txt", "data_traditional_ConnectionSetUpTime15.txt"]
util_arr =
["data_traditional_Utilization1.txt", "data_traditional_Utilization2.txt", "data_traditional_Utilization3.txt",
"data_traditional_Utilization4.txt", "data_traditional_Utilization5.txt", "data_traditional_Utilization6.txt",
"data_traditional_Utilization7.txt", "data_traditional_Utilization8.txt", "data_traditional_Utilization9.txt",
"data_traditional_Utilization10.txt", "data_traditional_Utilization11.txt", "data_traditional_Utilization12.txt",
"data_traditional_Utilization13.txt", "data_traditional_Utilization14.txt", "data_traditional_Utilization15.txt"]
play_arr =
["data_traditional_PlaybackDelayTime1.txt", "data_traditional_PlaybackDelayTime2.txt", "data_traditional_PlaybackDelayTime3.txt",
"data_traditional_PlaybackDelayTime4.txt", "data_traditional_PlaybackDelayTime5.txt", "data_traditional_PlaybackDelayTime6.txt",
"data_traditional_PlaybackDelayTime7.txt", "data_traditional_PlaybackDelayTime8.txt", "data_traditional_PlaybackDelayTime9.txt",
"data_traditional_PlaybackDelayTime10.txt", "data_traditional_PlaybackDelayTime11.txt", "data_traditional_PlaybackDelayTime12.txt",
"data_traditional_PlaybackDelayTime13.txt", "data_traditional_PlaybackDelayTime14.txt", "data_traditional_PlaybackDelayTime15.txt"]
rtt_arr =
["data_traditional_AverageRTT1.txt", "data_traditional_AverageRTT2.txt", "data_traditional_AverageRTT3.txt",
"data_traditional_AverageRTT4.txt", "data_traditional_AverageRTT5.txt", "data_traditional_AverageRTT6.txt",
"data_traditional_AverageRTT7.txt", "data_traditional_AverageRTT8.txt", "data_traditional_AverageRTT9.txt",
"data_traditional_AverageRTT10.txt", "data_traditional_AverageRTT11.txt", "data_traditional_AverageRTT12.txt",
"data_traditional_AverageRTT13.txt", "data_traditional_AverageRTT14.txt", "data_traditional_AverageRTT15.txt"]
rej_arr =
["data_traditional_AverageReject1.txt", "data_traditional_AverageReject2.txt", "data_traditional_AverageReject3.txt",
"data_traditional_AverageReject4.txt", "data_traditional_AverageReject5.txt", "data_traditional_AverageReject6.txt",
"data_traditional_AverageReject7.txt", "data_traditional_AverageReject8.txt", "data_traditional_AverageReject9.txt",
"data_traditional_AverageReject10.txt", "data_traditional_AverageReject11.txt", "data_traditional_AverageReject12.txt",
"data_traditional_AverageReject13.txt", "data_traditional_AverageReject14.txt", "data_traditional_AverageReject15.txt"]
function compute(arr, name, ttl, x, y)
ave = zeros(num_files,2)
tot = zeros(num_cycles,1)
leg = [ttl; x; y]
disp(leg)
for i=1:num_cycles
ave(i,1) = i-1
end
for i=1:num_cycles
for j=1:num_files
fd = mopen(di+arr(j),'r')
res = fscanfMat(di+arr(j))
tot(i) = tot(i) + res(i,2)
mclose(fd)
end
ave(i,2) = tot(i)/num_files
end
//ave = string([leg ;ave])
//disp(ave)
//write(di+file_names(name),ave)
fprintfMat(di+file_names(name), ave)
endfunction
compute(conn_arr, 1, "Average Connection Set-up Time", "Time", "Connection Set-up Time")
compute(util_arr, 2, "Average Utilization Rate", "Time", "Utilization (%)")
compute(play_arr, 3, "Average Playback Delay Time", "Time", "Playback Delay Time")
compute(rtt_arr, 4, "Average RTT", "Time", "RTT")
compute(rej_arr, 5, "Average Rejection Rate", "Time", "Rejection (%)")
mclose('all')
|
0f48dc664b51069682acb6a9e58cf8379a70774d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1826/CH7/EX7.5/ex7_5.sce | 2d184880c8b5b1ff13ee9ff7daa09567539aee27 | [] | 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 | 278 | sce | ex7_5.sce | // Example 7.5, page no-163
clear
clc
rho=1.54*10^-8//ohm-m
E=100//V/m
n=5.8*10^28//m^-3
e=1.6*10^-19//C
mu=1/(rho*n*e)
vd=mu*E
printf("\nMobility of electron in silvetr is %.4f*10^-3 m^2/v-s\n\nThe drift velocity of the electron in silver is %.5f m/s ",mu*10^3,vd)
|
ca688f3175415ee6fdc3793208b1e1f2e09dfdcd | d7ec0352fdd4cf451ee9dd6bac2218fb96c24c0f | /src/gui/qml/img/input.sci | 17705fc74c6dfdd73ba14731fbf2c657b5193f02 | [] | no_license | mireq/facedetect | d3fc340926a54e144dcf09ef4a814a77cbc9afde | 94ab039149efb2d8f1496c6042bf3a6b133bb49e | refs/heads/master | 2021-01-22T04:33:34.209921 | 2011-05-13T01:08:47 | 2011-05-13T01:08:47 | 1,525,248 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 80 | sci | input.sci | border.left: 6
border.top: 6
border.right: 6
border.bottom: 7
source: input.png
|
c1d46ad057d9fe0995a3debeb210d102d9e989f4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2318/CH2/EX2.5/ex_2_5.sce | 964a09ae702bf125c9433728558497107cee2e2a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 365 | sce | ex_2_5.sce | //Example 2.5://torque
clc;
clear;
close;
d=2.5;//diameter in cm
n=500;//turns
b=1.1;//mWb/m^2
v=100;//volts
pf=0.7;//power factor
rp=2000;//ohms
x=((%pi*(d*10^-2)^2*n*b*10^-3*v*pf)/(4*rp));//
ang1=45;//degree
ang2=90;//degree
td1=x*sind(ang1);//
disp(td1,"torque in Nm when angle is 45 degree")
td2=x*sind(ang2);//
disp(td2,"torque in Nm when angle is 90 degree")
|
746633dbbd113a7a9b0ef227a69adf98b84fc3a0 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Objname.sci | 6c523fc29ec0a84e2c8ee3dcbe268570267081fa | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 224 | sci | Objname.sci | // s: 2014.09.07
function Objname()
global OBJFIGNO OBJJOIN
if OBJJOIN==0 then
OBJFIGNO=OBJFIGNO+1;
Gname="ketfig"+string(OBJFIGNO);
Printobjstr("# "+Gname);
Printobjstr("g "+Gname);
end;
endfunction
|
01878dceff52239d6e23199f4854a6bd5c3053e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH7/EX7.38/ex_7_38.sce | b90fcaa30d8250b601558388fabeba51f7add238 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 392 | sce | ex_7_38.sce | clc;
A=[0 3/2;-1/2 2];
B=[1;0];
C=[1 -1];
D=[0];
Mc=[B A*B];
if (det(Mc)<>0) then
disp("and is controllable",rank(Mc),"Mc has a rank of")
else
disp("and is uncontrollable",rank(Mc),"Mc has a rank of");
end
Mo=[C;C*A];
if (det(Mo)<>0) then
disp("and is observable",rank(Mo),"Mo has a rank of")
else
disp("and is unobservable",rank(Mo),"Mo has a rank of");
end
|
2a027c8f7e366d9c55b80fa6aad99a487dbf9605 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/1.1/macros/optim/linpro.sci | cd593a00080e5076867d571fb3b6abfc1b537119 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 183 | sci | linpro.sci | function [x,f,lagr,info]=linpro(x0,p,c,d,ci,cs,mi,modo,imp)
[lhs,rhs]=argn(0)
if rhs=8 then imp=0,end,
n=maxi(size(p))
[x,f,lagr,info]=quapro(x0,0*ones(n,n),p,c,d,ci,cs,mi,modo,imp)
|
0c1aba3ebae2bacba4b555c4579d1529163fedce | 449d555969bfd7befe906877abab098c6e63a0e8 | /3487/CH7/EX7.5/Ex7_5.sce | 2d16ee49936370cfd032cbd5db94aa68f3cbacea | [] | 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 | 167 | sce | Ex7_5.sce | //Chapter 7,Example 7.5 Page 226
clc
clear
E = 500
Z = 350
L = 800
E1 = E*(1-exp(-(2*Z/L)*2))
printf (" E'' = %f kV \n",E1)
//Answers may vary due to round off error
|
16aa5bbddeb57eb6bbb400529fb5a68656896758 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2207/CH6/EX6.6.6/ex_6_6_6.sce | 0b06e0c9e5d54948d31c10c2993d56d9370ca5d1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 626 | sce | ex_6_6_6.sce | //Example 6.6.6 :minimum instantaneous load current,peak instantaneous current and maximum peak to peak ripple
clc;
clear;
close;
format('v',6)
v=220;//volts
r=10;//in ohms
l=15.5;//in mH
f=5;//in kHz
Eb=20;//in volts
d=0.5;//
x=exp((-(1-d)*r)/(f*10^3*l*10^-3));//
y=(1-x)*(Eb/r);//
y1=(1-x)*((v-Eb)/r);//
A=[0.94 -0.94*0.94;0.94 -1];
B=[-0.94*0.125;-1.25];
X=A\B;//
disp("part (a)")
disp(X(1,1),"minimum instantaneous current in amperes is")
disp("part (b)")
disp(X(2,1),"peak instantaneous current in amperes is")
disp("part (c)")
PP=X(2,1)-X(1,1);//
disp(PP,"maximum peak to peak ripple in the load current in amperes is")
|
e895b812fac8ae54fc31bac1cc4394a511436e2e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH12/EX12.25/example12_25.sce | 7cd98caac3ac44a279f906eb29e243ee75412083 | [] | 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 | 442 | sce | example12_25.sce | clc
// Given that
P = 1e9 // power required for enlighten the city in watt
e = 30 // percentage efficiency of nuclear reactor
E = 3.2e-11 // energy released per fission in J
// Sample Problem 25 on page no. 12.40
printf("\n # PROBLEM 25 # \n")
printf("Standard formula used \n")
printf(" E_total = E*N_0/n \n")
E_ = E * 30 / 100
N = P / E_
N_ = N * 24 * 3600
m = N_ * 235 / 6.023e26
printf("\n Amount of fuel required per day is %f kg.",m)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.