Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write 2 programming help me in 1 hour of 1. Write a C program that calculates the discrete values de = f(x(t), u(t)) by

image text in transcribed

image text in transcribed

please write 2 programming help me in 1 hour

of 1. Write a C program that calculates the discrete values de = f(x(t), u(t)) by using x[n + 1] = x[n] + T,f(x[n], u[n]) equation with Ts = 0.01 seconds and x[0] = 1. The function is f(x,u) = -sin (exp(-x)) + 2u and the input function is u(t) = sin(2nt/100). n = 0 starts from zero then will be maximum n = 100 which means that total period is 10 seconds (t = nts). Define arrays for t, u[n], x[n] then at the same time print on the screen. 2. Write a C program that calculates the discrete values x[n] of d = f(x(t),u(t)) equation by using F1 = T,f(x(t), u(t)) F2 = T,f(x(t) + F1, u(t) +) F3 = T,f (x(t) + F2, u(t) + 3) F4 = T3f(x(t) + T F3, u(t) +Ts) x[n + 1] = x[n] + (F1 + 2F2 + 2F3 + F4) equation with Ts = 0.01 seconds and x[0] = 1. The function part is given f(x, u) = --sin (exp(-x)) + 2u then the input function is u(t) = sin(2nt/100). n=0 starts from zero then will be maximum n=100 which means that 10 second's total period (t = n7). It is compulsory to define a user defined function to calculate function values of f(3.1). Define arrays for t, F1, F2, F3, F4, u[n], x[n] values but print on t, u[n], x[n] at the same on the as screen

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago