Develop the datapath under visio for the java code

Assignment Help Electrical Engineering
Reference no: EM13225319

Develop the Datapath; draw it under VISIO for this java code :

input .

x - the abscissa at which the linear interpolation is to be evaluated

xi[]- the arrays of data abscissas

yi[]- the arrays of data ordinates

imax- size of the arrays xi[] and yi[]

output .

y - interpolated value

 

double y;

int j;

//////// if x is ouside the xi[] interval take a boundary value (left or right)

if (x <= xi[0]) return y = yi[0];

if (x >= xi[imax-1]) return y = yi[imax-1];

//////////// loop to find j so that x[j-1] < x < x[j]

j = 0;

while (j <= imax-1)

{

if (xi[j] >= x) break;

j = j + 1;

}

y = yi[j-1] + (yi[j] - yi[j-1])*(x - xi[j-1])/(xi[j]-xi[j-1]);

return y;

}

Reference no: EM13225319

Questions Cloud

Describe how the market revolution : Describe how the “market revolution” shaped Americans' perceptions and actions in the Jacksonian era
Cold war lay in a fundamental disagreement : The origins of the cold war lay in a fundamental disagreement between the United States and the Soviet Union over postwar arrangements in:
What is the indicated temperature at the times : A temperature sensor has a static transfer function of 0.15 mV/C° and a time constant of 3.3 s. If a step change of 22° to 50° C is applied at t=0, find the output voltage at 0.5 s from t=0s to t=10s. What is the indicated temperature at these tim..
Implementation of algorithm using vhdl under quartus : Implementation your algorithm using VHDL under Quartus. You are free to select the structural hierarchy of the implementation; the implementation could be behavioral, structural, or a mixed implementation. which the linear interpolation is to be e..
Develop the datapath under visio for the java code : Develop the Datapath; draw it under VISIO for this java code : input . x - the abscissa at which the linear interpolation is to be evaluated xi[]- the arrays of data abscissas yi[]- the arrays of data ordinates imax- size of the arrays xi[] and yi[]
Describe the relationship between masks and layers : Describe the relationship between masks and layers. Explain how you plan to incorporate layers into your final project and whether masks will be used in conjunction. Do your classmates’ posts inspire ideas for your final project?
Array wrapper class that wraps an array of integers : Write an into Array wrapper class that wraps an array of integers and provides the following: Discuss whether you think the mean of equals and the output of to string should be show somehow related
What elements influence individual behavior : What elements influence individual behavior? How are these elements established? What are the benefits of changing or modifying individual behavior?
What are the neurological foundations of audition : What are the neurological foundations of audition? What is the importance of audition in language comprehension?

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Explain combinational versus sequential circuits

(Combinational versus Sequential Circuits) Which of the fol¬lowing contain circuits that are likely to be combinational and which contain sequential circuits? Explain your rationale.

  Compare the frequency response magnitudes

Compare the frequency response magnitudes for each of the responses above (will need to plot on a logarithmic scale). Comment on the observations noting things such as if the signals are resolvable, the size of the side lobes, etc.

  Locate and specify an appropriate sensor

Locate and specify an appropriate sensor if it is to operate at 120 vac as an input to a PLC. Create the ladder diagram program to accomplish the specified control.

  Calculate the mass of the cooling water in a minute

an electrical transformer dissipates heat equivalent of 3000 kW/h. the inlet and outlet temperatures of the cooling water are 55C and 15C respectively. calculate the mass of the cooling water in a minute.

  Combinational logic devices for specific purposes

Interpret manufacturer's data sheet to select appropriate combinational logic devices for specific purposes

  Determine the sensitivity of junction depth to changes

how to determine the sensitivity of junction depth to changes in furnace temperature by calculating (dxj/xj)/(dT/T) for a drive diffusion.

  Define what is the maximum allowable value xmax

What is the maximum allowable value Xmax of X? The system is built with X-Xmax. An engineer argues that the host on the sort side of the bridge can use a minimum frame length shorter than 512 bits if they are talking to other hosts on the same sid..

  Determine the phase angle between the inverter

Determine the phase angle between the inverter fundamental voltage,VC1, and grid side voltage such that the power delivered to the grid is 10 kW and the fundamental current leads VS by 150°. Calculate the reactive power to the grid and draw the ph..

  Sketch the output signal waveform

Assume that in addition to the sine-wave signal you have a dc reference voltage of 1.5 V available. Sketch the output signal waveform.

  Explain can protons every flow through current

Can protons every flow through current? Even though in the overwhelming majority of cases the current flowing through a material is dominated by the movement of electrons"

  Line a goes into an inverter then into a nand gate

Simplify the following circuit. Line A goes into an INVERTER, then into a NAND Gate, then into an OR Gate, then travels into another NOR Gate.

  Write a program to genrate a square wave

assuming XTAL=11.0592 MHz,write a program to genrate a square wave of 20 Hz frequency on pin2.3?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd