MaplePrimes Questions

Hello,

My equation is the following:

Y = 1 - ( sin (2*theta)/ (X+cos(2*theta)))^2

where theta=20 degrees = pi/9  and X= 0..30. How can I numerically calculate Y as a function of X.  And also how can I plot Y(X),

Y(1/X)  and  Y(1/X^2). I like to do these for different theta values (i.e., theta=2*pi/9,  theta= 3*pi/9,,,,,, theta=4*pi/9 ).

Thank you in anvance

Bengu

if i have ten "hz", each displayed with hz[i] was calculated before, then want to make a continues expression and plot it, i use this form and it answered me correcctly. piecewise(x <><><><><><><><><>
OK, so ive solved a pde numerically. I can plot the solution as a graph, evaluate the value at different times, but how can I integrate it over the region it is defined? My goal is this, the weighted average of x:

Can alone explain to me what is happening in this procedure? I know it is it is to generate a line p and an angle theta but don't understand what line and angle or how it does it.

Im having trouble with the DEplot command, i seem never to be able to use the plot commands on maple no matter what i do. Heres what i've got so far. > eq1 := diff(n(t), t)+lambda*n(t) = 0; / d \ |--- n(t)| + lambda n(t) = 0 \ dt / > eq2 := dsolve([subs(lambda = .1, eq1), n(0) = 10]); / 1 \ n(t) = 10 exp|- -- t| \ 10 / > with(DEtools);

In the help, it writes

BesselJ and BesselY are the Bessel functions of the first and second kinds, respectively. They satisfy Bessel's equation:
     2                2    2
    x  y'' + x y' + (x  - v ) y = 0
 

My problem is in statistics. I'm looking for the resulting normalized distribution funtion.

Given a sample has a normal distribution of trait A, and given a subgroup that posseses trait B with a different normal distribution of trait A. Waht would the distribution of trait A be if we eliminate the subgroup that posseses trait B.

The following example that assumes a subgroup of 20% does not yield the proper result.

f := x -> if(x<=0, 0, 1):
#plot(f(x),x=-10..10):
#plot(f,-10..10):
plot(sum(f,i=-infinity..infinity),-10..10);
plot(sum(f(i),i=-infinity..infinity),-10..10);

Why do the first two plots work, but the third and fourth doesn't? How do I plot the sum of this function in a specific range?

How do I get a closed-form expression?

I tried the following (e.g.):

 

> k[21] := t-> piecewise(t<0,0,p*(1-p)^t);                      {definition of descrete probability distribution, here: geometric distribution}

I want  to calculate the derivative of Bessel, I do

In 13.01 (Linux) I see this.

> # works ok
> plots:-spacecurve([sin(t),t,1],t=0..1,thickness=5);

> # expect missing argument error, but loses kernel connection
> plots:-spacecurve([sin(t),t,1],thickness=5);

Is it the same in 13.02, and on Windows, can anyone say?

Dear Maple Experts,

  I'm fairly new to Maple.  I've been trying to compute Gaussian tail probabilities accurately.  As I understand it, Maple has an "erf" function, but not an inverse erf.  Other posts have suggested doing something like:

  inv_erf := x->solve(erf(y/sqrt(2.0))=x,y);

At first ; for instance, about 68% of a Gaussian's probability is within 1 standard deviation, so:

> erf(1/sqrt(2))

    0.6826894920

> evalf(inv_erf(0.6826894920));

    0.9999999994

So far, so good.  Unfortunately, my interest lies in fairly large deviations (up to about 9 standard deviations).  All of a sudden, I start to get complex (!) answers:

> evalf(inv_erf(1-(10^(-16))));
                                 8.304785423
> evalf(inv_erf(1-(10^(-17))));
                         -3.937718724 - 4.575448791 I
 

I've tried using "erfc" instead of "erf", under the logic that it might be better at estimating the tails, but it doesn't seem to resolve the problem.  What's going on and how do I fix it?

  Thanks for any help.

 

Hi everyone, I have question that i cannot solve.

The question is : 

Write a procedure named MULTIPLYMATRIX to find the product of an n x m matrix by an
m x q matrix. Your procedure should print the result matrix. The dimensions n, m, q should be
input parameters in your procedure. Test your procedure by demonstrating multiplication of a 2 x
3 with a 3 x 4 matrix of your choice.

 

I mean when typing polynomials, convert the 2x4 to 2x^4,,,

for 4 is in the right

and sometimes I'm a little lazy(?).

...

p1:=4*y^2+12*y-4*x*y-6*x+x^2+8

a is "coeffs(p1)"

b is "coeffs(coeffs(p1, {x, y}))"

c is "coeffs(p1, [x, y])"

d is "coeffs(p1, x)"

e is "coeffs(p1, x, y)"

the results of a,b,c are the same

8, -6, 12, 4, 1, -4

and the results of d,e are the same

4*y^2+12*y+8, -4*y-6, 1

question 2:

I'd like to get the both resuls of "coeffs(p1, x)" and "coeffs(p1, x)" at the same time,

what's the simplest way?

First 2025 2026 2027 2028 2029 2030 2031 Last Page 2027 of 2431