Items tagged with function function Tagged Items Feed

I can't seem to find what's wrong with this function:

F:= x-> (-c-ax)/b;
G:=x-> (-d-ex)/f;
If -a/b = -e/f then print (false) else print (true); end if;

Hello,

For a control systems project I'am working on I need to minimize the actuator effort required to control an input voltage to certain output voltage. As a first experiment I chose a sinusoidal input ug and a sinusoidal output ul. The function to minimize is the funtion Uint. We know that when both the input voltage and output voltage share the frequency, phase and amplitude, that the control effort is zero. Running the animation (see Maple input below) shows that if the input and output voltage frequencies approach eachother the function Uint goes to zero. However, if the frequencies exactly match and I evaluate the function Uint I get a devision by zero notification (this could already be seen from the function of Uint). How can I solve this?

restart

with(plots):

u[G] := sin(omega[G]*t)

u[L] := sin(omega[L]*t)

U[int] := int((u[G]-u[L])^2, t)

omega[G] := 9:

animate(plot, [[u[G], u[L], (1/10)*U[int]], t = 0 .. 5, legend = ["Public grid voltage", "Local grid voltage (control goal)", "Cum. Actuator voltage (scaled)"]], omega[L] = 8 .. 10, gridlines = true, labels = ["Time [s]","Voltage [V]"], labeldirections = ["horizontal", "vertical"], labelfont = ["ARIAL", "bold", 12])

omega[L] := 9; t := 10; evalf(U[int])

NULL

 

Download 20131109_Division_by.mw

 

Thanks

Is there any way to write a function that determines the area of any n-sided polygon determined by a sequence of points? ie [[x_1, y_1]. [x_2, y_2], ... [x_n, y_n]] while returning 0 if any of the 2 segments intersect, otherwise print the area. Thanks for any help

I've been on this question a week now and still no conclusive answer! What I need is a function that produces the inequalities that determine a triangle given the 3 points and then using a 4th point, prints true if the 4th point satisfies 2 or 3 or the inequalities and prints false if it only satisfies 1 or none of the inequalities. I need to have this solved by tonight so any quick help would be greatly appreciated!

Consider the curve defined by f(x, y) = 3+2x+y+2x^2+2xy+3y^2 = 0.Locally on the curve we can view y as a function of x, i.e. y = y(x).Compute formulas for the first and second derivative of y with resoect to x.

Hi

I have entered two functions and got a solotion for them:

Now i want to know if there is someway Maple can do this automaticly:

 

So that i not have to do like i did here, manuel copy-paste the values into the function, or re-enter them.

 

Using Maple 17.02 on Windows 64-bit, but i guess that makes no differance, since it's java :) 

 

Try makeing it simple, i'm new with Maple.

 

Thanks in advance!

Emil Kristensen

 

after composite

test5 := subs(y=-q/p, subs(x=-q/p, x+y));
test6 := subs(p=x,subs(q=y,test5));

how to recover test6 := -2*y/x back to x+y with y/x or x/y;

I am trying to plot a function f(x).  Within the definition of f(x) I have some parameters, e.g., a, b, c tha have been defined.  Then these three parameter define a new parameter R.

The function is f(x)=R x.

 

 

a := 1;              Define a
1

b := 2;              Define b
2


c := 3;               Define c
3

R = a+2*b+3*c; Define R from a, b, c

R = 10 + 2 b~ (it should had given me 14)

F(x):=R*x;  Define the function
x -> R x


plot(R*x, x = -5 .. 5);   RECEIVE ERROR
Warning, expecting only range variable x in expression R*x to be plotted but found name R

 

 

I also tried to define R as R(a,b,c) and then F as F(R,x)...

but still it doesnot work.

Can anyone direct me to the right solution?

 

Thanks in advance.

NM

In some tutorials for certain "Maple-words" a name "command" is used, while others use "function".

What is the difference between "function" and "command" in Maple?

How would I write a function that produces true if a vector/ line satisfies 3 linear inequalities and false if it does not satisfy all 3 linear inequalities? Ie
If the vector <m,n> satisfies ax+by+c>0, dx+ey+f>0 and gx+hy+i>0 then the function returns true, and if it does not satisfy one or more then it returns false? Thanks very much for your time.

How do I define a function from a graph in a plot? 

Or how do I find the intersection between two lines? I have to find the intersection of 2 lines in a graph, while one of these lines consists of 2 different equations dependent from the same variable. 

 

Thanks in advance. 

Can anybody tell me what error is in the following function?

F:= ([[a,b], [c,d], [e,f]]) -> (1/2) abs((c-a)(f-b)-(e-a)(d-b));

Thank you!

Dear All,

I need your help, what function in Maple must be used to find the different form of this function

f := product((p*beta[1]*(t[i]/theta[1])^(beta[1]-1)*exp(-(t[i]/theta[1])^beta[1])/theta[1])^Y[i]*((1-p)*beta[2]*(t[i]/theta[2])^(beta[2]-1)*exp(-(t[i]/theta[2])^beta[2])/theta[2])^(1-Y[i]), i = 1 .. n)

into this function

Hey everyone. Another question. I am getting a bug I have never gotten before - it's really bizarre. I have a sheet that works perfectly fine. All the functions are defined normally and they work properly. Then, when I get to the bottom of the sheet and try to define

> pathZ(r,theta):=(1- Heaviside(theta-Pi/(12)))*centralR*theta+Heaviside(theta-Pi/(12))*(centralR*Pi)/(12);

I get nothing being defined. I press enter while at that line and then it just goes...

Hi,

I have a function of n variables

y := (a,b .. n) → ....

For this function I need also n input values

y(x1,x2, ... ,xn)

The vector x has the input values ("x1,x2, ... ,xn") but how can I call them without typing them one by one?

Any ideas?

5 6 7 8 9 10 11 Last Page 7 of 22