Items tagged with var


I set a physical model for my reseach,

equ1 := x^4-5*x

equ2 := 1/x+x^2+3

x is a function of time t and it meets diff(x(t), t) = equi-equ2.

I want to plot the curve of x(t) varying with time

When I use the following command

DEplot({x(0) = 0, diff(x(t), t) = equi-equ2},x(t), t = 0 .. 20)   it shows: Error, (in DEtools/DEplot) called with too few arguments

Who can tell me what is wrong with my calculation? Thanks


If I have  the following..or different numbers, but 2 different arrays I need to calculate sample mean & variance

Array A:=([1,1,1,0,0,3,2,4])


Array B:=([2,1,0,1,3,3,4,1])

what formula do I use to force Maple 16 to calculate the sample mean and the sample variance?

I have the following procedure that I am working with. I would like to store the result of the procedure in a variable called "result".

f := proc(result, x)
     if x <= -7 then
         result :=  1:
     elif x > -7 and x <= 7 then
         result := 2:
     elif x > 7 then

good say !

I want for my work to calculate the International Equation of State of Seawater

but when i enter my fonction in mapple: it is like mapple don't recognise the second variable s:

>t:= -> t;
s:= -> s;

> g :=(t, s)-> 999,842594+6,793952*10^(-2)*t-9, 95290*10^(-3)*t^2+1, 1685*10^(-4)*t^3-1, 120083*10^(-6...

I want to minimze VaR (the 5th percentile for the return distribution) with LP.
However, the way I have specified the problem does not work for some reason, why?


nstock := 20:
n := 15:

R := RandomMatrix(n, nstock, generator = -15 .. 15, outputoptions = [datatype = float[8]]):
W := Matrix(nstock, 1, [seq(w[i], i = 1 .. nstock)]):
data1 := Array(Multiply(R, W));

Page 1 of 1