tomleslie

13876 Reputation

20 Badges

15 years, 167 days

MaplePrimes Activity


These are replies submitted by tomleslie

As far as I know the Haar wavelets correspond to the Daubechies wavelets (with parameter 2)

It is relatively simple to iterate the discrete wavelet transform, using something like

restart:
with(DiscreteTransforms):
A:=Vector([1.0, 0, -3.0, 2.0, 1.0, 0.0, 1.0, 2.0],datatype=float[8]):
w1,w2:=WaveletCoefficients(Daubechies, 2);
for i from 1 by 1 to 5 do # iterate the tranform 5 times
    A:=DiscreteWaveletTransform(A, w1, w2, storagetype=singlearray);
od;

However I cannot get the "textbook" answer. I'm pretty sure this is because Maple uses a different normalisation for the wavelet coefficients (w1, w2) in the above, but I haven't (so far) been able to untangle this

@aamirkhan 

You could try reading the help, by typing either of the following at the Maple prompt

?ImportMatrix

?ExportMatrix

If that fails then the attached worksheet might help

matStoreGet.mw

@tejsa1 

You can plot pretty much anything against anything with odeplot - if you actually want to plot y(t) against x(t) then try

plots[odeplot]( sol, [x(t),y(t)] , 0..2);

or diff(y(t),t) against x(t) as

plots[odeplot]( sol, [x(t),diff(y(t),t)] , 0..2);

and so on.

You really ought to be able to find the combination you want!

The OP's original post specifies his/her matrix as

A := Matrix([[x+I*y, z+I*w], [-z+I*w, x-I*y]])

so that the (1,1) entry is (apparently)

x I*y

with a space between the 'x' and the 'I*y' - which makes this a syntax error for matrix entry.

My default browser is Firefox, but I have just checked this question in chrome/safari/IE and 'see' exactly the same thing - always a space, so always a syntax error.

I mentioned this problem in an earlier post from the same OP, ie

 http://mapleprimes.com/questions/205973-Check--Two-Matrices-Are-The-Same

Those answering either of these question seem to "know" that the space in an individual matrix entry is actually equivalent to a '+' symbol: how do you know this? - do I have some kind of weird browser problem (across four browsers)?

Much easier for everyone here if you post code, rather than pictures. Consider using the big green up-arrow

Just reading your matrix definition fo uA, I'm surprised that MAple did not give you an error message.

Matrix rows are enclosed within square brackets: within a matrix row, entries are separated by commas: you seem to have a "third level" where each matrix entry consists space(?)-separated expression.

I think (but it so hard to read and I have to retype, so I may be wrong) that your matrix entry is

uA:=Matrix( [ [-w^2 x^2 y^2-z^2, -2*(w*y x*z),          2*(-w*x y*z)        ],
                    [2*(-w*y x*z),          w^2 x^2-y^2-z^2, -2*(w*z x*y)         ],
                    [2*(w*x y*z),           2*(-w*z x*y),         -w^2 x^2-y^2 z^2]
                  ]
                );

But if I enter this, I get an error on the first "space" in the [1,1] entry -which I would expect!!!

You have posted code with inconsistent(!) results

You have been asked (by various people) to post the complete code for your problem, or the mathematics (not the Maple) describing your problem - but instead, you continue to post partial code snippets and comments - which no-one here can work with.

Please, just tell us the differential equations you want solved, and any conditions which might affect the solution- preferaby in a maple worksheet using the big green up-arrow

For example you state

The set up of the problem isn't really what is bothering me though. It's the fact that I use solve, it finds constants where the conditions supposively hold, but then I check if the conditions hold with the solved for constants and they do not.

but several aspects of your "solution method " do not seem to be logiically/mathematically valid. However without knowledge of the underlying/fundamental problem, I cannot determine whether this is my stupidity (or yours?)

Over to you

I just copied/pasted your code and executed it, before I started to study the fundamental problem. With Digits=20 (which you must have set somewhere?) the answers came back as

-3.6407974329748334146
-3.7055759076336728052
-0.048141919292672795370

rather than the values you report

-1.7597825261536669519
-1.8936659961101033997
-0.38633519704430619686

Given this inconsistency, I suggest you post a complete a complete worksheet illustrating your problem using the green up-arrow in the toolbar

You may want

delta[1,1]^2 does not means delta[1,1] to the power of 2

to be true, but as far as Maple is concerned

delta[1,1]^2 means delta[1,1] to the power of 2

It *might* be possible to "overload" the ^ symbol so that it has an alternative interpretation (I haven't tried),

but somehow I doubt that you have done this.

Another point you might want to consider.

You use gamma as both an indexed and an unindexed variable

This isn't necessarily wrong - just suspicious, because everywhere it occurs Maple will assume that the unindexed gamma is the complete 2*2 matrix/array/table whose entries are

gamma[1, 1], gamma[1, 2], gamma[2, 1] and gamma[2, 2]

?DifferentialGeometry/LieAlgebra
?DifferentialGeometry/LessonsAndTurorials/LieAlgebras

In general, no-one here is going to do your homework for you - kinda defeats the point of homework. If you can show some evidence of having tried to solve a problem - ie post a worksheet (using the big green up-arrow), then help may be more forthcoming. Having said that, consider the following for your three problems

  • You have two lists: you can't generally form the intersection of lists, so you need to convert them to sets (read the 'convert' help page). Once you have these as sets you need to perform the intersection - well, believe it or not, there is an 'intersect' help page!! Now this will give a result which is a set, so you might want to revisit the 'convert' help page to work out how to convert back to a list
  • If you type "euclidean gcd algorithm" into your favourite search engine then you will find limitless amounts of pseudocode - all you have to do is to write any one of these in Maple syntax - although it would probably be a good idea to actually understand the algorithm first!
  • A similar argument applies to the archimedean spiral - in fact if you type archimedean spiral in the Maple help search, the relevant equation will be displayed. You can then read the 'plot' help page, to figure out how to do the plot

So it's not difficult - just requires you to do some work

"the vertical axis is ignored while there must be 1 unit distance", then you might want to consider adding a 'view' optiion to the previous answer, as in

 

Student[Calculus1][SurfaceOfRevolution]
( x^2,
  1..2,
  'axis'='horizontal',
  'distancefromaxis' = 1,
  'output'='plot',
  'view'=[0..2, -4..4, -3..4]
);

@Z1493 You state

So far, I have received only comments about dy/du needing to be nonzero as well as about the invertibility of x=x(u) and y=y(u). Once this is resolved, it should help on how it is to be used in Maple.

In the last worksheet I posted there is

no 'u',

no dy/du

no comment on the invertibility of x=x(u) and y=y(u).

In other words every statement in this paragraph is complete and utter crap - which everyone reading my worksheet will be able to read/try/assess for themselves.

In your further comment

Judging by the above comments, it seems it was a bit premature to ask a math question which looks like a question on Maple syntax.

My alternative on this statement would be something like

You asked a math question - which was answered: but you didn't like or couldn't understand the answer.

Even when the correct answer to your problem was illustrated using Maple, you still didn't like it or couldn't understand it - therefore any/all such answers must be wrong.

There is an alternative conclusion whose discovery is left as an exercise for the reader(s)

 

@Z1493 

See the attached

diffProb.mw

@Alex Smith 

I am not a big fan of 2D math input, but the &DifferentialD stuff is used as a special character sequence to display the d/dx stuff prettily. If you copy/paste an incomplete expression one can get this effect. For example, given

diff(f(x),x)

If you manage to select only the d/dx part of this expression and paste it to a 1-D math input region, then if will appear as

(ⅆ)/(ⅆx)

However if you select the complete 2-D expression, then paste it to a 1-D math input region, then it will appear as

diff(f(x), x)

Honest

If this is your problem, then I can only advise that you do not copy part of a 2-D expression and paste it to a 1-D region.

Unless...

If you convert a help page to a worksheet, then only the "Examples" section is executable

First 177 178 179 180 181 182 183 Last Page 179 of 207