max125

195 Reputation

8 Badges

9 years, 212 days

MaplePrimes Activity


These are questions asked by max125

I am trying to avoid having to copy paste an entire line of output.

The context of the problem , I am given an acceleration vector and want to find the position vector.

a:= <4t, sin t, cos 2t) with v(0) = <1,0,0> and r(0) = <0,1,0>

My problem is with an intermediate step, finding the velocity vector.

There is no output.

Another attempt. This time using a label

This time i do get an output, but v(1) should be (2 + c1) e_x + (-cos(1) + c2) e_y + (1/2 sin(2) + c3)e_z

The only way for it to work is to copy paste manually the output from line (21) as shown here

 

I am not sure why p is assigned to 1 when I do a logic problem.

The letter p should stay as p and not be assigned to one. I suspect it has something to do with a statement that is always true. This is annoying because sometimes I have expressions with p in a formula later on, and I didn't realize p has been assigned to 1. And I can't use p in a logical formula either since it's already been assigned to 1.

I am trying to solve an equation using surd and I get a strange result.

solve(surd(x^4,8)=-2)
    4, -4, 4 I, -4 I

These solutions are clearly wrong.

The equation (x^4)^(1/8) = -2 has no solution.

This problem is equivalent to asking the computer to solve sqrt(x) = -2

which has no solution in R or C.

 

However if I type

solve((x^4)^(1/8) = -2) , then I get no answer, which is what I expected.

Why does surd behave in this unexpected way.

 

Also another thing I am wondering, why doesn't Maple simplify (x^4)^(1/8) to x^(1/2).

I tried the simplify command it didn't work.

 

I have two sets 

f:={1,2,3,4};

h:={1,2,4,5}

L=seq(i,i=1..4):

I want to program , if it is true that f[i] = h[i], then it prints f[i]. So the output should be {1,2}.

for i in L do
if evalb(f[i]=h[i]) then
print(f[i]);
end if;
end do;

I get no output. https://i.imgur.com/qA5hU3i.png

I tried changing the set f to list, f:= [1,2,3,4], still no output.

I am wondering why Maple does this.

> f:=x^2
> f(3)
output: x(3)^2

I understand the difference between an expression and a function. If f is an expression, shouldn't it ouput  x^2(3). Why is the output x(3)^2?

When I enter f*3 or f*(3) then I get the correct expression.

Here is a screenshot. http://prntscr.com/a7u9hm

Here is image inserted with a slightly different function

 

Also while I am here, what exactly does g(x):= x^2 do? when i enter g(3) I get g(3) back.

g(x) is neither a function nor an expression.

screenshot http://prntscr.com/a7ua75



5 6 7 8 Page 7 of 8