MaplePrimes Questions

How do you do this?; actually, for starters, how do you display 2 plots side by side?

Hi

I have a problem with an assumed real variable that are not inserted into equations if it is given an nummeric value. I have tried to make and example below:

> restart;
> with(plottools);
> with(linalg);
>with(plots);
> assume(theta, real);

>A := e^(I*theta)

hi, suppose

integers:=[`$`(-10..10)]; selectremove(`<`,integers,0);

so this separates +ve and -ve. But, if the range of values are complex, how do we separate them based on the +ve and -ve of the real part of the complex number? i.e I want to separate all a +- bi from all -a +- bi.

 

thanks

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.

 

First 2027 2028 2029 2030 2031 2032 2033 Last Page 2029 of 2434