Notes, summaries, assignments, exams, and exercises for Design and Engineering for University

Operational Amplifier Circuits: Inverting and Non-Inverting Configurations

Design and Engineering3.23 KB

comxador invrsor: xl invrsor entry. The form d ralimntacion s asimtrica ised. Vo = / + vsat if <vr/-vsat if vi> vi vr. invrsor not to rvs. Comxador invrsor with istrsis (r1 to r2 + and tb to ralimntacion +) i = (vrf-vo) / r1 + r2; v + = = vrf vrf-ir1 + (vo-vrf) / r1 + r2; v sl ls notif valors intrvalo d qs d moves tnsion input v = vi-vil, with sixth and seventh entry d tnsions ls ls xa vo cuals changes. no invrsor to rvs. Comxador vntana: 2 comxadors invrsors 1Ì2 to 1 adder * (-1) s active output when the input sta d tnsion UNDERSTAND U.S. In 1 intrvalo (vlrf, vrf) r1 = r2 = r3 = r4; vo = v2-v1, vi <vlrf/v1 and v2=+vsat and vo=0; vi> ls 2-vsat vrf; vlrf <vi <vrf, vo = 2vsat.mdia rctificador wave Diode suprdiodo srie rsistncia...

Continue reading "Operational Amplifier Circuits: Inverting and Non-Inverting Configurations" »

Optimizing Network Throughput with Net2Plan and IPOPT

Design and Engineering3.25 KB

Configuring Source Routing and Initializing Routes

To begin, we set the routing type to source routing and clear any existing routes from the design. We then calculate the shortest path for each demand based on the number of traversed links.

/* Set the routing type to source routing */
netPlan.setRoutingType(RoutingType.SOURCE_ROUTING);

/* Remove all the routes in the input design */
netPlan.removeAllRoutes();

/* Create one route for each demand, with the shortest path in number of traversed links */
for (Demand d : netPlan.getDemands()) {
    List<Link> shortestPath = GraphUtils.getShortestPath(netPlan.getNodes(), netPlan.getLinks(), d.getIngressNode(), d.getEgressNode(), null);
    if (shortestPath.isEmpty()) {
        throw new Net2PlanException(
...
Continue reading "Optimizing Network Throughput with Net2Plan and IPOPT" »

Swift Pokédex App: Loading Plist Data and Table Views

Design and Engineering6.32 KB

Pokédex Model

import Foundation

class PokedexModel {

var races = [Race]()

var types = [Type]()

/// Loads the data from pokedex.plist into the races and types properties.

init() {

guard let url = Bundle.main.url(forResource: "pokedex", withExtension: "plist"),

let plist = NSDictionary(contentsOf: url) as? [String: Any],

let allRaces = plist["races"] as? [[String: Any]],

let allTypes = plist["types"] as? [[String: Any]] else { return }

races = allRaces.map({ (dic) in

let raceName = dic["name"] as! String

let raceIcon = dic["icon"] as! String

let raceCode = dic["code"] as! Int

return Race(code: raceCode, name: raceName, icon: raceIcon)

}).sorted(by: { $0.name < $1.name })


types = allTypes.map({ (dic) in

let typeName = dic["name"] as! String

let typeIcon = dic[...

Continue reading "Swift Pokédex App: Loading Plist Data and Table Views" »

Positivo o Negativo en Java: Pseudocódigo, Tabla de Multiplicar y Cajero Automático

Design and Engineering3.34 KB

Pseudocódigo para determinar si un número es positivo o negativo

Importar paquete java.io
Clase PositivoNegativo
Inicio clase
Método principal
Inicio
FlujoDeEntrada entrada = new FlujoDeEntrada(teclado);
ContenedorDeEntrada objEntrada = new ContenedorDeEntrada(entrada);
Verificar_Errores
Inicio
Imprime("Pseudocódigo para determinar si un número es positivo o negativo");
Imprime("Proporcione un número:");
int n1 = Entero.convertirInt(objEntrada.leerLinea());
desde (int i = 1; i <= 10; i = i + 1)
Inicio
Imprime(n1 + " x " + i + " = " + i * n1);
Fin
Fin // final de Verificar_Errores
Atrapa_Errores
Inicio
Imprime("Error de lectura de datos");
Fin
Fin
Fin clase

Código en Java

import java.io.*;

import java.util.ArrayList;

public class P8 {

    public static void...

Continue reading "Positivo o Negativo en Java: Pseudocódigo, Tabla de Multiplicar y Cajero Automático" »

Faze razvoja žit, stročnic in oljnic: BBCH lestvica

Design and Engineering10.84 KB

Poljščine: žita, stročnice, oljnice in druge rastline

Navadna pšenica, Triticum aestivum L., žita, Poaceae.

Trda pšenica, Triticum durum Desf., žita, Poaceae.

Večzrna pira, Triticum aestivum L. subsp. spelta, žita, Poaceae.

Ječmen, Hordeum vulgare, žita, Poaceae.

Rž, Secale cereale, žita, Poaceae.

Oves, Avena sativa L., žita, Poaceae.

Tritikala, Triticosecale Wittm. ex A. Camus, žita, Poaceae.

Koruza, Zea mays, prosasta žita, Poaceae.

Proso, Panicum miliaceum, prosasta žita, Poaceae.

Sirek, Sorghum bicolor Moench, prosasta žita, Poaceae.

Ajda, Fagopyrum esculentum Moench, nežita, Polygonaceae.

Soja, Glycine max Merr., zrnate stročnice, Fabaceae.

Fižol, Phaseolus vulgaris, stročnice, Fabaceae.

Grah, Pisum sativum, stročnice, Fabaceae....

Continue reading "Faze razvoja žit, stročnic in oljnic: BBCH lestvica" »

Implementación de Árbol General Enlazado en Java: Estructura y Operaciones

Design and Engineering4.13 KB

Implementación de un Árbol General Enlazado en Java

La clase EnlazadoArbolGeneral<E> implementa la interfaz ArbolGeneral<E> mediante una estructura enlazada de nodos.

Atributos

  • nodoRaiz: referencia al nodo raíz del árbol, de tipo NodoGeneral<E>.

Constructores

El constructor sin parámetros crea un árbol vacío:

public EnlazadoArbolGeneral() {
    nodoRaiz = null;
}

El constructor con parámetros recibe un elemento raíz y un número variable de árboles hijos. Si el arreglo de hijos es null, se lanza una NullPointerException. Si no se proporcionan hijos, se crea un nodo raíz sin descendientes. En caso contrario, los árboles hijos se enlazan como hermanos entre sí y el nodo raíz apunta al primero de ellos como hijo más izquierdo...

Continue reading "Implementación de Árbol General Enlazado en Java: Estructura y Operaciones" »