MaplePrimes Questions

Dear all
I have a problem using unapply to construct all functions defined in each intervals.
If I use unapply to construct only two peicewises fuctions the code work well, but otherwise there is someting missing 
splineProb.mw

## using code like this, its run 
ff:=unapply
                  ( piecewise
                    ( x < eval( Xlist[2], NaturalCoeffs),
                      expand( eval( S[1], NaturalCoeffs) ),
                                           expand( eval( S[3], NaturalCoeffs) )
                    ),
                    x
                  );
 

but using code like 
 

unapply
                  ( piecewise
                    ( x < eval( Xlist[2], NaturalCoeffs),
                      expand( eval( S[1], NaturalCoeffs) ),
                     ( x < eval( Xlist[3], NaturalCoeffs),
                      expand( eval( S[2], NaturalCoeffs) ),

                      expand( eval( S[3], NaturalCoeffs) )
                    ),
                    x
                  );
does not run and return 
Error, `;` unexpected
 

Thank you for your help 

Hello, I was recently given a Calculus 3 assignment on Maple. Having no training or teaching, I watched videos and looked up possible routes to finding the solution. I have been working on this assignment the past couple days and could really use some help. The questions I am struggling with are posted below:

Equation given: r(t) = cos(t^3)i + sin(t^3)j + 2t^2 k

1. Use Maple to graph the tangent line at t = 0.8, and the path of the particle from t = 0 to t = pi/2 on the same graph. The line segment for the tangent line should be symmetric about the point of tangency.

2. Find the unit binormal vector when t = 0.8

3. Use Maple to find the normal vector when t = 0.8

4. Find the torsion when t = 0.8

5. Use Maple to graph the unit tangent vector at t = 0.8, the unit normal vector at t = 0.8, the binormal vector at t = 0.8, and the path of the particle from t = 0 to t = pi/2 on the same graph. All the vectors should have the particle's position at t = 0.8 for their initial point. (You are really graphin line segments of length 1.)

 

 

Let A a (linear) partial differential operator and f=f(x, y, t) a function of space (x, y) and time (t).
Let DXY=[a, b] x [c, d], DT=[0..e] and  dXY the boundary of DXY.
Is it possible, with Maple 2015, to solve numerically the pde Af=0 in the open domain  DXY * DT
with Dirichlet conditions on dXY and initial condition f(DXY, 0)?
It seems that the option 'numeric' of pdsolve doesn't work with more than 1 "non time" independent variable:
Error, (in pdsolve/numeric/process_PDEs) can only numerically solve PDE with two independent variables, got {t, x, y}

Nevertheles I seem to remember seeing this on Mapleprime (?)
If Maple 2015 can't do it, can Maple 2020?

Thanks in advance

  • Remark: Af=0 is the heat equation with rho=Cp=lambda=1.
    I guess I could code the alternate directions method to transform  Af=0 into a sequence Axf=0,  Ayf=0 Axf=0 ... of 1D diffusion equations but I'm a little bit lazzy and I'm waiting for your feedback before doing this.

 

dear all

I hope to write taylor expansion with remainder lagrange ..That is taylor lagrange expansion of a given function.

I tried 
series(cos(x),x=0,5) 

or taylor(cos(x),x=0,5) 
always the remainder written USING O(x^6)
I want the reminder depend on the derivative ..that is Lagrange Taylor expansion

Many thanks

Dear all

with(ExcelTools);

data := Import("datatest.xlsx");

I get flotting point like 15.0 , 25.0  in my data
How can get or transform data to integer ( without floating point)  that is instead of 15.0  I would like if possible to obtain 15 

Many thanks

 

Often times I run into calculations like these:

Where d denotes the exterior derivative. Now I know that it is possible to compute the exterior derivative of a function (using the DifferentialGeometry package). But is there a way to compute and simplify them with tensor products as above?

 

dear all 
I need to plot many curves on the same  figure. 
with(plots):
for j from 1 to 6 do 
pf[i]:=plot(f, x = a[i]..a[i+1]);
end do 
How change the following line so that I can plot many curves like 20 or more, using sequence or someting similar
display(pf[1], pf[2],pf[3],pf[4],pf[5],pf[6]})

many thinks

 

Dear maple users,

Greeting for the day.

I have some data in an excel file. How to plot the excel data in contours with labels.

Also, how to show the x-axis range =-1.5..1.5 and y-axis range = -0.5..1 with the contour sequence -2..2.

XLdat.xlsx

waiting for your reply.

Please see the figure for the model plot.

Hello friends,

I have an image in black and white and I wanted to compute and plot the intensity distribution histogram of it. So I did it with the command PlotHistogram, here's the output:

> PlotHistogram(Lena, 256)

I established the number of buckets to 256 but I don't see them at the x-asis, and I would like to see them for clarity as I don't understand the scale that is used by default. Could you help me achieve this and maybe also understand the scale used by default?

Thanks a lot.

I use nprintf to create greek characters as strings so that I can print them using printf.  But here is the strange behavior:

gk_Omega1 := nprintf("#%a", 937);
gk_Omega2 := nprintf("#%a", 937);

printf("%s %s", gk_Omega1, gk_Omega2);

does not print the same.  The gk_Omega1 is fine, but the gk_Omega2 prints "#937" instead of the the greek Omega character.

Does anyone see why this is?

Thanks, David
 

Can anyone look at this worksheet, and explain why maple seems to complicate an easily evaluated integral?

 

 

 

Hyper.mw

 


 

 

What kind of options do I have regarding printing a document to pdf?

Even though the document I have looks nice on the screen, it doesn't fit to a A4 pdf page.

Are there any scaling options, or fit to page anywhere which I did miss?

Any idea of how to import necessary libraries for use in Maple Player?

This question may be a little dumb, but how can I calculate the resultant of two homogeneous polynomials with two variables according to these variables? Say resultant(f,g,{x,y}), where f(x,y) and g(x,y) are homogeneous polynomials with degree m and n, respectively. Any help would be greatly appreciated!

Dear all, 

Yesterday I asked a very similar question, but i thought about it and found a different way to re-phrase my question:

Given a plot with three dependent variables that depend on one independent variable, how can I extract this data into a .xls (or .dat or whatever) file for re-use in Maple later on? The .xls will have to have 4 columns: the first for the independent variable and the next three for the dependent variables.

Find my worksheet here: worksheet.mw

I managed to write a program that extracts the data into a .dat file, but with only two columns. 

The reason that I want to do this is because I want to re-use the solutions to the variables and the derivatives in a different equation (for plotting). For example q(z) = ( diff(h1(z),z)+ diff(h2(z),z)+ diff(h3(z),z))/(h1(z) +h2(z) +h3(z)), and then z versus plot q(z). Any alternative suggestions would be helpful.

First 435 436 437 438 439 440 441 Last Page 437 of 2428