// Program: 4033 // Author: Manuel J. A. Eugster ( e0126312@student.tuwien.ac.at ) // FileId: $Id: CalcResistor.java,v 1.1 2002/01/14 17:28:09 heder Exp $ package Wider; import java.lang.*; // CLASS: // Implements resistor calculation methods. // public class CalcResistor { // METHOD: // Calculation method for two serial switched // resistors. // public static float ser( float res1, float res2 ) { return( res1 + res2 ); } // METHOD: // Calculation method for two parallel switched // resistors. // public static float par( float res1, float res2 ) { return( 1 / ( ( 1 / res1 ) + ( 1 / res2 ) ) ); } }