subject
Engineering, 02.11.2019 05:31 aprilhaters

Afactorial is the product of all the integers from 1 to n. for example, 5 factorial is: 1*2*3*4*5. even though matlab has a built-in function to calculate factorials, create a function called fact (on same script) to calculate the factorial of any given number. the fact function will receive the integer number from the script and will return the result. you must use an appropriate loop to calculate the factorial. you must generate the integer number in the script, randomly (must use a random function, not just hardcoding a number).

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 04.07.2019 18:10
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
question
Engineering, 04.07.2019 18:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
You know the right answer?
Afactorial is the product of all the integers from 1 to n. for example, 5 factorial is: 1*2*3*4*5....
Questions
question
Mathematics, 16.10.2020 21:01
question
Mathematics, 16.10.2020 21:01
question
English, 16.10.2020 21:01
Questions on the website: 13722363