Notes, summaries, assignments, exams, and problems for University

Jacobi Method Implementation in Fortran

Computer science3.12 KB

This section details the implementation of the Jacobi method in Fortran for solving a system of linear equations. The subroutine solucion_Jacobi takes a matrix A, a vector b, and an initial guess X as input, and returns the solution vector X.

Subroutine: solucion_Jacobi(A, b, X)

The subroutine begins with the following declarations and initializations:

  • use normas
  • integer, parameter :: Kx = 100
  • real(8), parameter :: tolerancia = 1E-6
  • real(8), allocatable :: X0(:), ERROR(:)
  • real(8), intent(in) :: A(:,:), b(:)
  • real(8), allocatable, intent(out) :: X(:)
  • integer :: i, j, k, n
  • real(8) :: sum, zero, ek

Where:

  • Kx is the maximum number of iterations.
  • tolerancia is the error tolerance.
  • X0 is the previous iteration's solution vector.
  • ERROR is the error vector.
  • A is the
...
Continue reading "Jacobi Method Implementation in Fortran" »

Electrical Safety Protocols: Hazard Prevention & Protection

Technology3.91 KB

Understanding Electrical Safety and Protection

The physiological effects and after-effects of electric current are determined by several critical factors:

  • Type of current
  • Current magnitude
  • Frequency
  • Duration of current passing through the body
  • Resistance of the human body
  • The insulation properties of the skin

Conductor Identification: Notation and Colors

Proper identification of conductors is crucial for electrical safety. Here are the standard notations and colors for insulated conductors:

  • Working Conductor: Wire of the current system for power supply and energy transmission. Colors: Black, Brown, and Grey.
  • Neutral Conductor: Wire connected to the source node, which contributes to energy transmission. Color: Light Blue.
  • Protective Conductor: Wire required
...
Continue reading "Electrical Safety Protocols: Hazard Prevention & Protection" »

Revolution of October 9, 1820: Independence in Guayaquil

History1.36 KB

Make an Essay. Please, Be Careful with the Parts: Introduction, Body and Conclusion. Do Your Best.

a) October 9th, 1820

The revolution of October 9, 1820 has its antecedents from 1814. José de Antepara, José Joaquin Olmedo, and Jose de Villamil arrived in Guayaquil to introduce new political concepts and forms of government to the people. These patriots emphasized independence, democracy, and the republic, advocating for necessary changes in political and social structures.

Major Miguel de Utamendi arrived in the port, connecting with other figures from Spanish America. On October 8, 1820, the conspirators initiated their plan, successfully taking over the city's barracks. A government junta was formed, and the flag of independent Guayaquil...

Continue reading "Revolution of October 9, 1820: Independence in Guayaquil" »

Judicial Presumptions, Affirmative Defenses, and Evidence Admissibility

Law3.75 KB

Judicial Presumptions: Conclusive and Rebuttable

A judicial presumption is a logical inference made by a judge where, once a fact has been established, it is very likely that another fact is true. This is a type of circumstantial evidence, representing the mental activity of inferring the truth of one fact based on another.

It comprises three essential elements: an ascertained fact, a logical link, and a presumed fact. Courts are expected to apply presumptions during the evaluation of evidence.

Presumptions can be categorized into two main types:

  • Legal Presumptions: Established directly in the text of the law, these may be either conclusive or rebuttable.
  • Judicial Presumptions: Created ad hoc by the court in consideration of the specific circumstances
...
Continue reading "Judicial Presumptions, Affirmative Defenses, and Evidence Admissibility" »

Effective Pricing Strategies for Businesses

Economics4.17 KB

Special Pricing Strategies

1. For a New Product

Different stages in a product’s life cycle involve different goals, which require different pricing strategies.

A. Market-Skimming Price

Setting a high price for a new product to skim maximum revenues layer by layer from segments willing to pay the high price; the company makes fewer but more profitable sales. Example: Apple introduces new products with high prices, and then, when the new model is introduced, the older model decreases in price.

Conditions:

  • Good quality and image
  • Enough buyers
  • Profitable → revenues can’t be offset by the costs of producing on a small scale
  • Competitors can’t enter easily

B. Market Penetration Price

Setting a low price for a new product in order to attract a large number...

Continue reading "Effective Pricing Strategies for Businesses" »

US Foreign Policy: Powers, Personality, and Strategies

Social sciences3.41 KB

Congresses Cons. Powers: Treaty Making, Appointment Powers, War Powers, Commerce Powers.

Blunt Foreign Policy Tools: Legislative Power, Budgetary Power, Report to them.
Presidential Personality: 2-Parts to character: Energy & Affect. (Energy: Active or Passive) & (Affect: Positive or Negative).
Pres. Management Style: Competitive (+: Ideas | -: No Collab) Formalistic (+Filter out bad ideas | -: Good Ideas lost) Collegial (+: Many Minds | -: pressure to agree with group under stress 'group think') CEO System (+: President trusts advisers | -: Exclude other voices or surrounded by 'yes-men')
Bureaucracy: State Department, Pres. looks here first when making for. policy decisions. They share info b/n US and foreign gov. (-: recoms' are too
...
Continue reading "US Foreign Policy: Powers, Personality, and Strategies" »

Essential Cisco IOS Commands for Network Setup

Employment training and career guidance5.9 KB

Initial Device Naming and Setup

1. Set Device Hostnames

Assign unique hostnames to your network devices for easy identification. In this example, we name the switch ALS and the router HQ.

Switch Configuration (ALS)

Switch> enable
Switch# configure terminal
Switch(config)# hostname ALS
ALS(config)#

Router Configuration (HQ)

Router> enable
Router# configure terminal
Router(config)# hostname HQ
HQ(config)#

Basic Security Hardening

2. Encrypt Passwords

Use the service password-encryption command to encrypt all plaintext passwords in the running configuration.

ALS(config)# service password-encryption

3. Set a Secure Enable Password

Configure a strong, encrypted password for privileged EXEC mode using enable secret.

ALS(config)# enable secret adap$$1

4.

...
Continue reading "Essential Cisco IOS Commands for Network Setup" »

EU Policy: Law vs. Intergovernmental Cooperation

History4.9 KB

EU policy involvement varies not just in its extent but also in its nature. The most important aspect of this varying nature is whether policies rely heavily on EU law or are more based on forms of intergovernmental cooperation.

It used to be the case that in those policy areas where the EU exercised significant responsibilities, well-established and effective policy instruments resting on EU law were almost invariably in place. It also used to be the case that where EU policy involvement was very limited, policy instruments tended mostly to be of the voluntary and persuasive kind.

However, over the years these two generalised statements, and especially the first, have become increasingly less accurate as the EU has made use of an increasing

...
Continue reading "EU Policy: Law vs. Intergovernmental Cooperation" »

Adam Smith's Economic Ideas and the Wealth of Nations

Social sciences2.02 KB

One of the main ideas is what Adam Smith's economy is based on, and it is the division of labour. He keeps the idea that people work because it is good for them. Adam Smith focused on liberal ideas, which is a free-market, where the government doesn't interfere with the market (laissez-faire). He supported that competition kept everyone honest. Smith is also a big supporter of government favoring war-related industries, so that they would be prepared in case of war. He thought about the importance of the risk. His beliefs were related to the relation between interests and rewards, and risk. If the reward is big, investors tend to forget about the risk. But Smith thought that the danger (real) was big capitalism or entrepreneurs cheating on...

Continue reading "Adam Smith's Economic Ideas and the Wealth of Nations" »

Zara's Strategic Analysis: PESTEL and Porter's Five Forces

Economics3 KB

External Environment Tools

PESTEL Analysis

List of influences on the possible success or failure of strategies:

  • Political Factors: Government policies, taxation changes, trade regulations. Zara's corporate social responsibility is transparent; Zara collaborates with communities in its areas of operation and has a code of conduct.
  • Economic Factors: Business cycles, interest rates, GDP trends. Zara conducts deep consumer research and acts in a unique way. Export and import concerns affect performance.
  • Social-Cultural Factors: Population changes, income distribution. Zara has a good image through donations and charity. Zara embraces diverse cultures, and its brand is known worldwide.
  • Technological Factors: ICT innovations, new discoveries, and technological
...
Continue reading "Zara's Strategic Analysis: PESTEL and Porter's Five Forces" »