Problem 42998. Electrical Diode Current Calculation
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instances of that phenomenon. Sometimes it is more useful to use one equation in a set of circumstances, and another equation in a different set of circumstances. One example of this is with electrical diodes. A simplification of the approximation of the electrical characteristics of a diode uses these two simple equations:
i = I_s * exp(v/V_T) for v > V_T
i = −I_s for v ≤ V_T
Where V_T = 0.026 Volts and I_S = 1*10-8 Amperes. Write a function with one input, the voltage v across this diode, and one output, the current i running through the diode. Use a conditional statement in writing this program.
(Source: 14:440:127 – Introduction to Computers for Engineers – HW3)
Solution Stats
Problem Comments
-
4 Comments
Sorry! I will add problem statements on these problems from now on. My intent was to use Cody as a homework resource for my class, not to post problems to the public.
Philip, thank you for replying. Unfortunately, there's not an option to create private problems on Cody. That being said, it would probably be fine to post such problems, as long as they are self contained. I've updated this problem with the actual text from your link and included a hyperlinked reference. Please review this updated problem and make similar updates to the others. That way, they can be used for both your homework study and the general Cody population. In fact, you'll likely learn some neat tricks from the Cody population, once they can solve the problems.
OP
Solution Comments
Show commentsGroup

High School Challenge
- 50 Problems
- 98 Finishers
- Times 2 - START HERE
- Add two numbers
- Laws of motion 3
- Laws of motion 6
- Force and Motion 2
- Force and Motion 3
- Velocity Conversion
- Potential energy calculation
- An Ohm's Law Calculator
- Electrical Diode Current Calculation
- Resistance of a light bulb
- Calculate Parallel Resistance
- Current through resistor
- Energy Conversion 2
- Mass Conversion 1
- Convert from Fahrenheit to Celsius
- Return area of square
- Area Conversion 1
- Create times-tables
- Triangle Numbers
- How long do each of the stages of the rocket take to burn?
- Finding Perfect Squares
- Magnitude of Balancing Force
- Mechanical Advantage of a Gear Train
- Calculate load on arm 1
- Find the mass of a rod
- Find the force required to support a lever
- Coefficient of Kinetic friction
- Calculate the acceleration of a crate
- Coefficient of Sliding Friction
- Coefficient of Static friction
- Linear Motion 1
- Linear Motion 2
- Linear Motion 3
- Linear Motion 4
- Linear Motion 5
- Linear Motion 6
- Linear Motion 7
- Basic Mathematics 1
- Basic Mathematics 2
- Basic Mathematics 3
- Basic Mathematics 4
- Basic Mathematics 5
- Basic Mathematics 6
- Basic Mathematics 7
- Basic Mathematics 8
- Resistance of a robot
- Voltage in a lamp
- Resistance in a circuit
- Calculate supply voltage and total current
Problem Recent Solvers772
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!