## 7 questions

7 questions. 7 questions. Write a script to create the following arrays .
Write a function that takes N as input and finds the account balance after N years. Use for loop.
Repeat (a) without using any loop.
3.For −π/2 ≤ x ≤ π/2, with point spacing Δx = 1/50:
Plot sin(x), cos(x), tan(x), and exp(x) in a single plot. Make sin a red line, cos a black dotted line, tan a blue line, and exp a green dashed line. Make a legend. Label your axes and give th.e figure a title. Set the y axis to be -1<y<1. (20 points)
Extra credit. Write a script that finds the x values at which cos(x)=exp(x). (hint: use find function for |cos(x)-exp(x)|<0.001) (5 points)
4- While. Write a script that takes an integer, N, from the user input. Then computes the largest integer k such that 2k<=N. For example, if N =100, then k would be 6, because 2^6=64 100.
Display/print the message showing the k value: ‘the largest integer k is ….’
Hint: initially, set k=0. In a while loop, check if 2^k is less than N, if not, break the loop. (25 points)
Choose only one question (25 points). You can get extra credit for solving two or three questions:
5. Function, switch statement. Write a function that takes two square matrices of the same size and an operator name as inputs and apply the operator on the two matrices. The operator name can be ‘ ’, ‘-‘, ‘*’, and ‘/’. For example, when the function opName input is ‘ ‘, the function calculates A B; when the function opName input is ‘-‘, the function calculates A-B.
Function C = ApplyOp(A, B, opName)
Switch opName
Case ‘ ’
C=…;

In your main script, create the following matrices and call your function with all operators.
A=421020109,B=340715095
Function. You work for an engineering design firm that has been contracted to evaluate the concentration of pollutants. A tall chimney releases (20 kg/s) of smoke into a steady uniform wind of speed (u( m/s)). An expression for the decay of the peak pollutant concentration C(ppm) with distance downwind is given as:
C(x,y,z)=M4πρDx.e−(y2 z2)u4Dx
Assuming that the diffusion coefficient D to be 0.01 m2/s, and the density of air to be ρ=1.225kgm3
Write a function which gets the location(x,y,z) and the wind speed, u, as inputs and calculates the pollutant concentration.
Call your function to find how pollution concentration at location (x=3000, y=0, z=10) changes with wind speed 0<u<12 m/s. Plot the pollution concentration vs wind speed.
Loops and flow control. Make function called loopTest(N) that loops through the values 1 through N and for each number n it should display ‘n is divisible by 2’, ‘n is divisible by 3’, ‘n is divisible by 2 AND 3’ or ‘n is NOT divisible by 2 or 3’. Use a for loop, the function mod or rem to figure out if a number is divisible by 2 or 3, and num2str to convert each number to a string for displaying. You can use any combination of if, else, and elseif.

done
Seen
few seconds ago

7 questions

7 questions ## Applied Mathematics Question

Applied Mathematics Question. Applied Mathematics Question. I need help some expert who can check my answers and if anything is wrong then fix them. The task is from Mathematical Modeling class.
Please check the attached link for questions and the attached file for solutions.

Applied Mathematics Question

Applied Mathematics Question ## Lease vs purchase

Lease vs purchase. Lease vs purchase. The cost to purchase the CT scan is \$1,300,000 at 10% (PV), with straight line depreciation over 5 years. The trade-in value \$130,000 at the end of its useful life. The maintenance expense equals \$12,000 annually.
The cost to lease the equipment is \$26,000 per month for a period of 60 months, which includes all maintenance costs. The tables below provide the financial overview of the purchase and lease costs.

Lease vs purchase

Lease vs purchase ## Statistics SPSS Report — US English Writer– Due Dec 16, 2021 — 12:00 PM EST

Statistics SPSS Report — US English Writer– Due Dec 16, 2021 — 12:00 PM EST. Statistics SPSS Report — US English Writer– Due Dec 16, 2021 — 12:00 PM EST. Statistics SPSS Report — US English Writer– Due Dec 16, 2021 — 12:00 PM EST
Hi, I need someone to follow the instructions of the attached document using SPSS statistical software and answer all the questions in an MS Word document in native U.S. English. Please do NOT bid you can not write in fluent US English or can’t meet the deadline. Thank you.

Statistics SPSS Report — US English Writer– Due Dec 16, 2021 — 12:00 PM EST

Statistics SPSS Report — US English Writer– Due Dec 16, 2021 — 12:00 PM EST I load the paper that includes DQ 1 and DQ 2
Thanks ## Write and post a linear equation in two variables and graph the linear equation using Desmos.com (Links to an

Write and post a linear equation in two variables and graph the linear equation using Desmos.com (Links to an. Write and post a linear equation in two variables and graph the linear equation using Desmos.com (Links to an external site.).

Please view this video on how to create and embed a graph using Desmos.com:
https://screencast-o-matic.com/watch/c3hXVsVrjgf

identify two points (written as ordered pairs) on the line and verify that they are true solutions. To do this, you need to plug both values into the equation and make sure that you get a true statement.

Write and post a linear equation in two variables and graph the linear equation using Desmos.com (Links to an ## Complete the Redistricter code to perform the following functions. Implement the MCMC process that iteratively produces candidate redistricting plans

Complete the Redistricter code to perform the following functions. Implement the MCMC process that iteratively produces candidate redistricting plans. Complete the Redistricter code to perform the following functions.

Implement the MCMC process that iteratively produces candidate redistricting plans and accepts or rejects these candidates based on the Metropolis criterion.
Run this process at least 1,000 times and record each run’s resulting plan.
Visualize the results of this simulation in a plot that displays the number of nodes in each district (3 districts => 2 dimensions required) and also a histogram of this information.
Produce a number of plan visualizations that illustrate the results
The data file which is given includes the adjacency matrix that is the connectivity of node, coordinates of node, the number of the nodes, and the population of the party.
The report should be written in complete sentences and structured with an appropriate introduction and conclusion. Its intended audience and tone should match the redistricting paper. Make sure to write in the words and do not plagiarize the other paper. The best way to do this is to write in several stages and not reference the original wording of the other paper after the first stage.
Build off of the work in Project 2 according to the following items. Write up your results in a well structured and organized report, using a similar tone and audience to the redistricting paper.

Basic geographical and demographic information about the map and initial plan.

Underlying theory of the MCMC algorithm that you’ve implemented.

Practical details of the MCMC algorithm (e.g. how many trials, how many samples, estimated runtime).

Equal population constraint implemented via Gibbs distribution: include information on how you tuned the beta parameter in order to achieve an appropriate constraint. You are permitted to allow relatively high variation in district population (even ±25% is OK with me) in order to allow your algorithm the flexibility to really explore the search space. Just make a choice for yourself and explain how you tuned the beta parameter to achieve this.

Resampling 1000 times to simulate uniform distribution after obtaining a Gibbs stationary distribution.

Analysis of electoral competitiveness of your sampled plans compared to the initial plan, visualized with a scatter plot.

Plan diagrams for notable plans in your analysis, together with commentary about what makes them notable.

Overall assessment of whether the initial plan exhibits partisan gerrymandering. If so, explain how this is observed and offer less biased alternatives. If not, explain how this is observed and exhibit some alternatives with a higher level of bias for comparison.

Important: the code needs to work in order to do this project properly. The codes need to succeed in performing the MCMC algorithm with an appropriate depth and breadth. Therefore, make sure to prototype the code by running it at small scales and identify any errors that may appear. If the code is working, it should never end prematurely with a Traceback.

Complete the Redistricter code to perform the following functions. Implement the MCMC process that iteratively produces candidate redistricting plans ## Have you ever watched Let’s Make a Deal? One of the games is based on a famous problem in

Have you ever watched Let’s Make a Deal? One of the games is based on a famous problem in. Have you ever watched Let’s Make a Deal? One of the games is based on a famous problem in probability. The game goes like this:

You have three doors. Under one door is a car and under two doors is a gag prize (known as a Zoink!)
You can choose one of the three doors (A, B, C).
Once you choose one of the three doors, the host (who knows where the prize is) closes one of the doors that does not contain the prize (so if you choose A, the host might close B if he/she knows the prize isn’t there).
You are prompted to keep the first door or switch to the remaining door?
Which option do you pick? How does this relate to conditional probability?

Have you ever watched Let’s Make a Deal? One of the games is based on a famous problem in ## Applied Mathematics Question

Applied Mathematics Question. Your task in this assignment is to use polynomial functions to design a rollercoaster. To express your rollercoaster design you will create a piecewise function out of the polynomial functions. Your rollercoaster must meet certain criteria, and the questions below will guide you through this process. In the end, you will submit a written assignment, showing all of your calculations and ideas, to the dropbox. You can, and may find it very useful to, utilize graphing technology, such as Graph, to help you with this assignment. , BEWARE OF PLAIGRISM PLEASE
check file attached for instructions

Applied Mathematics Question ## Math in Architecture Essay 