Commit 49458ea7 by Mike Chen

remove useless static files

parent 4aef50bf
scripts:
- type: 'script'
language: 'python'
code: 'print "Hello world!"'
contents:
- type: 'text'
text: 'This is a sample paragraph. The linebreaks here matter.\n\n'
- type: 'multiple_choice'
randomize: true
choices:
- type: 'choice'
text: 'Choice A'
correct: true
- type: 'choice'
text: 'Choice B'
correct: false
- type: 'choice'
text: 'Choice C'
correct: true
- type: 'true_false'
statements:
- type: 'statement'
text: 'Sun revolves around Earth. '
correct: false
- type: 'statement'
text: 'This is a true statement. '
correct: true
- type: 'string'
answer: 'banana'
- type: 'numerical'
tolerance: '5%'
answer: 6
- type: 'formula'
answer: '-A*(RF/RS)'
samples: 10
tolerance: '5%'
variables:
- type: 'variable'
symbol: 'A'
range: '1-3'
- type: 'variable'
symbol: 'RF'
range: '1-3'
- type: 'variable'
symbol: 'RS'
range: '1-3'
- type: 'variable'
symbol: 'L'
range: '1-3'
- type: 'variable'
symbol: 'T'
range: '1-3'
- type: 'custom'
script:
- type: 'script'
language: 'python'
code: 'correct = true'
The figure below shows two identical circuits connecting a \(6\)V battery to an \(18\Omega\) resistor. The difference is that we chose to measure the voltages and currents in the two circuits differently: we used a different coordinate system of voltages and currents in our measurements.
! Figure 1 (/static/images/circuits/ard.gif)
You are to determine the voltages and currents indicated and compute the powers entering the elements.
What is the voltage (in Volts) \(v_1\) measured across the battery?
= 1/3+2 +- 2%
What is the voltage (in Volts) \(v_2\) measured across the resistor?
= 6.0
What is the current (in Amperes) \(i_1\) measured entering the battery?
= -1/3
What is the current (in Amperes) \(i_2\) measured entering the resistor?
= 1/3
What is the power (in Watts) \(P_1 = v_1 i_1\) entering the voltage source?
= -2.0
What is the power (in Watts) \(P_2 = v_2 i_2\) entering the resistor?
(x) 6.00
( ) 4.2
( ) 3/2
What is the voltage (in Volts) \(v_3\) measured across the battery?
= -6.0
What is the voltage (in Volts) \(v_4\) measured across the resistor?
= -6.0
What is the current (in Amperes) \(i_3\) measured entering the battery?
= 1/3
What is the current (in Amperes) \(i_4\) measured entering the resistor?
= -1/3
What is the power (in Watts) \(P_3 = v_3 i_3\) entering the voltage source?
= -2.0
What is the power (in Watts) \(P_4 = v_4 i_4\) entering the resistor?
= 2.0
Notice that the powers are the same in the two circuits.
That is physical reality: power moves from the battery to the resistor, independent of the coordinate systems we use to measure the voltage and the current, so long as we use associated reference directions. We must always measure current into the terminal that we put the + sign of the voltage measurement on. Think of this as the red probe of the voltmeter.
Now let's do some algebra. To make things a bit easier let's define
\(d = \sqrt(1 + 2 K R_s (V_{IN} - V_T))\)
In the space provided below write an algebraic expression for the
small-signal gain \(\frac{v_o}{v_i}\) in terms of \(R_L\), \(R_S\),
and \(d\). (Be careful, algebraic expressions can be case sensitive!)
= type:formula samples:"RL,RS,d@1,1,1:3,3,3#10" answer:"-RL/RS"
Let's introduct a multiple choice question with multiple correct answers.
(x) Choice A. This is correct.
(x) Choice B. This is also correct.
( ) Choice C. This is wrong.
start
= XMLRootElement
XMLComment
= '<!--' chars:(!'-->' .)+ '-->'
{
return '<!--' + chars.map(function(element) { return element[1]; }).join("") + '-->'
}
XMLAttribute
= attr:AlphanumericalText s1:OptionalSpaces '=' s2:OptionalSpaces value:DoubleQuotedString
{
return attr + '=' + "\"" value.replace("\"", "\\"") + "\""
}
XMLTagOpen
= '<' OptionalSpaces name:AlphanumericalText OptionalSpaces attrs:(XMLAttribute / ' ')* OptionalSpaces '>'
{
tag = '<' + name;
if (attrs.length)
tag += ' ' + attrs.join("");
tag += '>';
return tag;
}
XMLTagClose
= '<' OptionalSpaces '/' OptionalSpaces name:AlphanumericalText OptionalSpaces '>'
{
return '</' + name + '>'
}
XMLTagEmpty
= '<' OptionalSpaces name:AlphanumericalText OptionalSpaces attrs:(XMLAttribute / ' ')* OptionalSpaces '/>'
{
tag = '<' + name;
if (attrs.length)
tag += ' ' + attrs.join("");
tag += '/>';
return tag;
}
XMLElement
= chars:((!'>' !'<' .)+)
{
return chars.map(function(element) { return element[2]; }).join("");
}
/ XMLRootElement
XMLRootElement
= XMLTagEmpty
/ open:XMLTagOpen children:(XMLElement+) close:XMLTagClose
{
return open + children.join("") + close;
}
/ XMLTagOpen XMLTagClose
{
return open + close;
}
/ XMLComment
OptionalSpaces
= ' '*
DoubleQuotedString
= "\"\"" { return ""; }
/ "\"" str:(!UnescapedQuote .)* last:UnescapedQuote {
return str.map(function(element) { return element[1]; }).join("") + last;
}
UnescapedQuote
= last:[^\\] "\"" {return last;}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment