MapleUser2017

175 Reputation

6 Badges

7 years, 180 days

MaplePrimes Activity


These are questions asked by MapleUser2017

Trying to solve this integral here. 

restart;
with(Statistics);

X := RandomVariable(Normal(10, mu));
                            X := _R
dummy := int(PDF(X, mu), r = -infinity .. 500);
                         /   /           2\\         
                         |   |  (mu - 10) ||         
                         |exp|- ----------||         
                         |   |        2   ||         
                         |   \    2 mu    /|         
          dummy := signum|-----------------| infinity
                         \       mu        /         
solve(dummy = 0.05);
 

What am I missing? Any ideas ? :)

Lets say you have this simple list here 

L := [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

 

Which command would you use to partion into intervals? 

L_g := [1..2,3..4,5..6,7..8,9..10]

Lets say I would like to construct a procedure which 

a) Allowed to call the view option from plots:-display by a different name? Lets say zoom. 

So the argument would PlotGraph(x^2,zoom = [-5..5,-5..5]) 

Is that by any means theoretically possible ? 

PlotGraph := proc(func::anything, zoom := {(x::range := a .. b), (y::range := c .. d)}) plots:-display(plot(func), view = zoom); end proc;

PlotGraph(x^2 , zoom = [0 .. 1, -5 .. 5]);


Error, (in plots:-display) expecting option view to be of type {"default", list({"default", range(realcons)}), range(realcons)} but received zoom = [0 .. 1, -5 .. 5]

 

So question to forum what am I doing wrong? 
 

 

I have been able implement this procedure here. 

AreaBetween := overload([proc(fnc::{list}, a::anything, b::anything, col::list) option overload; plottools:-transform(unapply([x, y + fnc[2]], x, y))(plot([fnc[1]] + [-fnc[2]], x = a .. b, col = [col[2], col[3]], gridlines, size = [600, 600], thickness = 3, filled = [color = col[1]])); end proc])

1) How do get to construct a larger canvas? Meaning if I want a xy axis, x = -10..10, y = -10..10 however only x = a..b is suppose to be shaded. Can I do that with my procedure? 

2) Only the lower graph is colored currently. How do I get it to color the upper graph? 

Many thanks in advance. 

I if a run the CompleteSquare command 

 

CompleteSquare(x^2 + y^2 - 2*x - y - 2 = 10, x, y)

the output is (y - 1/2)^2 + (x - 1)^2 - 13/4 = 10

Why does it places the y's before the x's? 

3 4 5 6 7 8 9 Page 5 of 9