Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

i used this  commend to plot three equation and it actually work .my question her how to show any point cordinates just i pointed on it ? could i do it by maple or what ?
help please 
implicitplot3d({f[1], f[2], f[3]}, Q[h] = 0 .. 100, S[h] = 0 .. 100, R[h] = 0 .. 100);

when i evaluate this summation if Q[h],S[h],R[h] are big floating numbers it take along time how i decrease this time 
P := simplify(sum(sum((t+1)*Q[h]^2*(1-Q[h])^(t+T)/(t+1+(R[h]/S[h])^sigma*(T+1)), t = 0 .. infinity), T = 0 .. infinity))

The link below has my code for generating 2 matrices.  The 1st one does not generate flfoating point numerical data; whereas, the 2nd one does.  What is wrong with the 1st case?  I am attempting to single out one harmonic which works in the 2nd case.  Also, is there a way I can generate a spectrum of S2(k= 1 to 100, t= 0 to 1)?

?untitled6.mw

 

int(1/(s^2+1), s = 1-I*infinity .. 1+I*infinity); # as expected
                               0

evalf(Int(1/(s^2+1), s = 1-I*infinity .. 1+I*infinity)); # Pi?
                          3.141592654

So evalf(Int(...)) either doesn't know how to handle complex infinite endpoints or handles them in a way incompatible with how int() does it.

 

Hello every body

I have three vectors `X`, `Y` and `Z`. I need to plot `X` vs `Z` and `Y` vs `Z` in one plot. How can I do this?

Thanks in advance

Hi,

I have some matrix valued functions that that I can only define piecewise. Unfortunately I have some problems to manipulate those functions. Piecewise sees to do the job for  scalar valued functions. There I can easily differentiale and add results. For Matrix valued functions however, those features seem to not be availible.
 

I can work around these limitations by manually applying all operations to the operands of the piecewise function. Like I show here:


 

restart:

# a piecewise function

p1:=piecewise(a(t)^2=0,<cos(a(t))^2+sin(a(t))^2,0>,<1,1/a(t)>)

p1 := piecewise(a(t)^2 = 0, Vector(2, {(1) = cos(a(t))^2+sin(a(t))^2, (2) = 0}), Vector(2, {(1) = 1, (2) = 1/a(t)}))

(1)

# differentiation does not work

diff(p1,t)

diff(piecewise(a(t)^2 = 0, Vector(2, {(1) = cos(a(t))^2+sin(a(t))^2, (2) = 0}), Vector(2, {(1) = 1, (2) = 1/a(t)})), t)

(2)

# selecting individual entries does not work

r:=p1(1)+1

r := (piecewise(a(t)^2 = 0, Vector(2, {(1) = cos(a(t))^2+sin(a(t))^2, (2) = 0}), Vector(2, {(1) = 1, (2) = 1/a(t)})))(1)+1

(3)

# strange simplification behaviour

simplify(p1)

piecewise(t = RootOf(a(_Z)), _z1(RootOf(a(_Z))), Vector(2, {(1) = 1, (2) = 1/a(t)}))

(4)

# current workaround, define new piecewise function by using op

r:=piecewise(op(1,p1),op(2,p1)(1)+1,op(3,p1)(1)+1)

r := piecewise(a(t)^2 = 0, cos(a(t))^2+sin(a(t))^2+1, 2)

(5)

 


 

Download Scratch.mw

 

I think my workaround is very cumbersome and error prone. Is there a better way to tackle this probem? Or should I try to overload all needed operations, and is this even possible?

Thanks for all suggestions!

Honigmelone

is it possible to express rational number into fraction in terms of power of 2

input

2.142857143

output

(2^3+2^2+2+1)/(1+2+2^2)

Hi, there.

I have a program, and I want to make an interface where I can text in the figures and show the results. But I have no idea about this. Anyone can give me some instructions? Thanks!

Hello

I'm importing some data from Excel which comes across as L:

L := Matrix(1, 6, [["TC,DB", "PC,JL", "TD,JK", "IW,CM", "CC,PG", "KJ,DJ"]])

M: = convert( L,'list' );

["TC,DB", "PC,JL", "TD,JK", "IW,CM", "CC,PG", "KJ,DJ"

map(convert, M, 'name') ; # remove inverted commas

[`TC,DB`, `PC,JL`, `TD,JK`, `IW,CM`, `CC,PG`, `KJ,DJ`]

How to I add square brackets to each pair in the output?

What I want is a command to display L or M as:

[[TC,DB], [PC,JL], [TD,JK], [IW,CM], [CC,PG], [KJ,DJ]]

 

1.
tanh(1-x) = sum(p(ii)*x^q(ii), ii=0..infinity) or product(p*x^q(ii), ii=0..infinity) ?
2.
tanh(1-x)*1/(1-x) = sum(p(ii)*x^q(ii), ii=0..infinity) or product(p*x^q(ii), ii=0..infinity) ?
3.
tanh(x) = sum(p(ii)*x^q(ii), ii=0..infinity) or product(p*x^q(ii), ii=0..infinity) ?

Remark: it may not be possible to use diff to find p(ii)

update

series(tanh(1-x), x=0);
with(OrthogonalSeries):
Coefficients(series(1/(1-x), x=0));
coeffs(series(tanh(1-x), x=0));
coeffs(series(tanh(1-x), x=0),x);
Error, invalid arguments to coeffs;
 
and is it possible to find q(ii) only if assume p(ii) all are one?

I am trying to solve a vector calculus problem, find r(t) given:

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

My approach below seems kind of complicated for such a straightforward problem.  I am trying to do this without copying pasting previous results. Also there might be a recursion issue when i defined v in terms of v(t).

 

 

I am a newbie at generating numeric data sets using the Matrix command.  Linked is the code I used to generate a time profile for various values of k.  The output results in 10 separate matrices for each value of k.  Instead I would like one matrix that has all ten data sets included.   Can anyone provide assistance?

untitled5.mw

 

 

 

   ,Hello friends

  .I want to plot a coupled differential equation numerically  but I dont know whats wrong with the loops


 

 


 

numeric4.mw  .pdfnumeric4.pdf

 

Question on the ditto operator, labels, and unapply, using three examples.

 

Example 1:

The ditto operator produces no output. Why is that? I presumed that the ditto operator is equivalent to copying pasting the last output.

 

Example 2:

Here the label approach seems to work, but in example three, both the ditto and label approach fails.

 

Example 3:

Someone earlier said that I should use unapply.

Why isn't    " v := x->% " equivalent to "v:=unapply(%,x)"

And why does the label approach fail in the vector calculus example.

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

 

First 919 920 921 922 923 924 925 Last Page 921 of 2224