Items tagged with homework homework Tagged Items Feed

introduction into loops....

February 13 2014 Dira 20

im having issues with a problem on my homework. we are supposed to find all primes between 1000 through 1015. using the for loop, for in loop and while loop. 

the while loop seemed the easiest.

while i<=1015 do
i, "Is it a prime?", isprime(i);

the for loop and the for in loop have gotten me abit comfused ive tried several times with each and nothing.

Optimization hw 02 help...

February 09 2014 Dira 20

question 2 of my homework is actually abit more simple imo. i think i performed all the operations correctly but however my 3dplot shows just a flat plane. i dont think thats right. if someone could take a look at my code in reference to this question. it would be great.

Suppose that a baseball is hit from 5 feet off of the ground with an initial velocity of 40 feet per second at an angle of above the horizontal. Let the horizontal and vertical components of the position, velocity, and acceleration be denoted respectively by and . Assume that the only acceleration is due to gravity (i.e, ).

a) If , plot the parametric equations over the time period that the ball is in the air.

b) Clear in maple by typing theta:='theta'; Now, suppose that we write in Cartesian form by solving for t: t:=solve(rx=x,t); Typing in ry should now yield a function that involves only x and . Make a 3-dimensional plot of for , 



- Pi
20 3
vx; vy;
20 3
20 t
20 3 t + 5

20 3 t + 5
plot([rx, ry, t = 0 .. infinity]);

Optimization Homework Help...

February 08 2014 Dira 20

I want to begin by saying hello! im new to the forums i hope some one can give me a push in the right direction with some of my maple homework. im sort of stuck on a few of these questions and would be greatfull for some help. 


Let .

a) Let g be the tangent line to f when x = c. Use Maple to find g as a function of c.

b) Use Maple to plot f and g(3) using view = [0..5, -25..100].

c) Define a function called plot_tan that plots both f and g(c) where f is blue and g(c) is red. Also use the same view as in part (b). Note that plot_tan is also a function of c.

d) Using your function plot_tan, the following all in one graph using the display command:

plot_tan(1), plot_tan(1.5), plot_tan(2), plot_tan(2.5), plot_tan(3), plot_tan(3.5), plot_tan(4), plot_tan(4.5), plot_tan(5).

e) Try using the option insequence = true in the display command. What does this option do? (You will need to click on the graph and play around with some buttons).

now it seems to me i have to use the point slope formula to get to a fuction g of c. thanks in advance! i hope you can help


Find the points (both x and y coordinates) of intersection y=cosh(x) and y=x^2. Give the answers in numeric form. To find the y-coordinates define one of the functions as f(x) and use f(?).

Find the product of the square root of all prime numbers less than 100.
Hint: The function isprime determines the primality of an integer.

Define a set with elements that are the powers of 13 modulo 100 for exponents ranging from 1 to 1000. Is 5 a member of the set? Why is it beneficial to use a set instead of a list?
Hint: You can determine the set by using one statement if you use the seq command.

Contrast the behavior of functions and expressions by performing the following commands.
a)Define a function f equal to x^3 and Define an expression g equal to x^3
b) Evaluate f and g at 2.
c) Evaluate f and g at y.
d )Assign the value 2 to x. Evaluate f and g.

I want to solve following PDE question with forward difference method inn Maple. Can you help me please?


du/dt=d^2u/dx^2, 0<x<2, t>0


u(0,t)=0, u(2,t)=0


Use h=0.4 and k=0.1. and compare your answers at  t=0.5 to the exact solution u(x,t)=exp(-4*pi^2*t)*sin(2pi*x). Then use h=0.4 and k=0.05,and compare the answers. 

Three families grow vegetables in their backyards,and agree to form a small closed economy by sharing their produce. family andrews grow artichokes, family brown grows beans and family Cuthbert grows corn.Family Andrews receives 70% of its artichokes, 30% of the beans and 30% of the corn.Family Brown receives 20% of the artichokes,60% of the beans and 10% of thr corn.Family Cuthbert receives the remainder of the vegetables.

a) Write down the exchange matrix A.

b) If production is measured in doolars ,define the variables
 of the production vector X.

c) Find all solution of the Leontief closed with matrix equation (I-A)^-1¤X=0.

d) If family Cuthbert produces $100 worth of corn, how much will familes Andrews and Brown need to produce (in dollars) in order foe the economy to be in equilibrium?


Please respond me by email, thanks.


Here is the original question , replaced by the questioner.  She/he must not do such things.





The differential equation dy/dt = t / (2-y), y(0)=1 fails the tests in section 5.1 at y=2. [ f(t,y) is undefined at y=2 and the y-partial derivative of f(t,y) is also undefined there. ] If a solution stays away from y=2, there is no problem at all. Try a few different initial conditions and summarize your findings. Use the Runge-Kutta order 4 method with a fixed step size.

Hint: You may find Maple's solution of the differential equation helpful:

s1 := dsolve({diff(y(t),t)= t/(2-y(t))}, y(t)); 

In the solution _C1 is a constant to be determined using the initial conditions.

An economy consists of service and food sectors. Assume that to produce $1 worth of service consumes 50 cents worth of service and 20 cents worth of food,and to produce $1 worth of food consumes 40 cents worth of serives and 20 cents worth of food. Assume that there is an external demand for $2 million worth of serices and $12 million worth of food.

a)Determine the comsumption matrix C for this economy.

b)In order to satisfy the demand, how much of each must be produce?(Find the production vector that will satisfy the demand.)

c)For this production vector, what is the value of serices that is consumed internally by the food industry ?


I'm in desperate need for help!! For an assignment, we were asked to "write out our first and last names" in maple, using correct upper and lower case letters. I am clueless on how to approach the assignment. Is there anyone that could help me?

when a user liked a particular photo for the first launch of a mobile app, and the time different where by the event started and stoped was k seconds which is at constant (does not change). At this constant thus triggered the like application operation or function that was connected to the application server. Then later the user unlike the photo and the same event and operation was carried out at of (k + 2) seconds. The time variation that was carried out during the sequential or running loop event carried out by 2 seconds.

check if this derived equation is correct first f(Xn) = en(Xn + Xn+ 1) . if its correct do the second question.

what is the rate at which the operation will be finish given an equation f(Xn) = en(Xn + Xn+ 1) 

3 4 5 6 7 8 9 Last Page 5 of 14