155 Reputation

8 Badges

6 years, 205 days

MaplePrimes Activity

These are questions asked by max125

For some reason the Maple software is not evaluating the last bounds for a triple integral.

But the evalf command works.

I am writing a small code to find median and mean. The code works for an even number of terms, not for an odd number of terms. I tried to find the error but cannot.

restart:medianmean:= proc(x) local a,b,c,d,m,g;
a:=sort(x); b:=nops(x); c:=nops(x)/2; d:=(nops(x)+1)/2;
m:=(a[c]+a[c+1])/2; g:=add(a)/b;
if (b mod 2 = 0) then evalf([a,m,g]) ;
else evalf([a,a[d],g]);
end if; end proc:


I am not sure why I am getting this RootOf result when I solve for x.

Here is my code.

deq:=solve(  diff(eq,x), diff(y(x),x) ):

The last equation we are solving is  -2x / y = 3.
So we should get y  = -2/3 x and  x = -3/2 y.

The Maple software correctly solves for y in terms of x,
but gives an odd Rootof answer when solving for x. Why is that?

I am not sure how to intepret RootOf(2*_Z+3*y(_Z)).

Hi. I wrote a command for finding second derivative.

#secondderiv test of f(x,y)

Everything runs fine ... except if I change the function f to
Then I get error :
Error, invalid input: nops expects 1 argument, but received 2

I sort of understand the error, when there is a single solution
{x=0,y=0} , then the op removes the parentheses to get x=0, y=0
which is now two arguments, and nops requires one argument.
I tried to use  nops(op({soln} ) , but that is not the correct approach
since it overcounts. Also it throws an error if change back f to the original expression.



I entered this function

Then I entered f(0) and got (-4)^(4/5).

When I tried to approximate , I got -2.452480922+1.781831689*I

I am looking for the real number value, which is 3.031433 with my TI-83 calculator and here

How do I set it in maple so that x is assumed to be real in f(x) and all outputs are real.

1 2 3 4 5 6 7 Page 3 of 8