MaplePrimes Questions

I have some large worksheets in maple which I would like to export to Latex. Currently, the exported document included both the commands and the results. For example, if the maple code looks like:



The latex document will be:

    %% Created by Maple 17.01, Windows 7
    %% Source Worksheet: test4Export.mw
    %% Generated: Fri Sep 11 11:25:29 CEST 2015
    \documentclass{article}
    \usepackage{maplestd2e}
    \def\emptyline{\vspace{12pt}}
    \begin{document}
    \pagestyle{empty}
    \DefineParaStyle{Maple Heading 1}
    \DefineParaStyle{Maple Text Output}
    \DefineParaStyle{Maple Dash Item}
    \DefineParaStyle{Maple Bullet Item}
    \DefineParaStyle{Maple Normal}
    \DefineParaStyle{Maple Heading 4}
    \DefineParaStyle{Maple Heading 3}
    \DefineParaStyle{Maple Heading 2}
    \DefineParaStyle{Maple Warning}
    \DefineParaStyle{Maple Title}
    \DefineParaStyle{Maple Error}
    \DefineCharStyle{Maple Hyperlink}
    \DefineCharStyle{Maple 2D Math}
    \DefineCharStyle{Maple Maple Input}
    \DefineCharStyle{Maple 2D Output}
    \DefineCharStyle{Maple 2D Input}
    \begin{Maple Normal}{
    \begin{Maple Normal}{
    A test equation}\end{Maple Normal}
    
    }\end{Maple Normal}
    
    \begin{Maple Normal}{
    \begin{Maple Normal}{
    }\end{Maple Normal}
    }\end{Maple Normal}
    \mapleinline{inert}{2d}{A = c+d}{\[\displaystyle A=c+d\]}
    \begin{maplegroup}
    \mapleresult
    \begin{maplelatex}
    \mapleinline{inert}{2d}{A = c+d}{\[\displaystyle A=c+d\]}
    \end{maplelatex}
    \end{maplegroup}
    \begin{Maple Normal}{
    \begin{Maple Normal}{
    \mapleinline{inert}{2d}{}{\[\displaystyle \]}
    }\end{Maple Normal}
    }\end{Maple Normal}
    \end{document}

and the output is:


Is there a way to solve this once while exporting in Maple instead of editing the latex code manually?

I imported data into maple from excel.  I was able to make a scatterplot with my data and a regression line, but I have been unsuccessful in trying to combine them both onto the same plot.  I tried multiple different ways but still could not get it to work.  

I think it has to do something with the brackets around each element inside my imported array, but I am not sure.  Any ideas would be nice.

My objective is to put the regression line and scatterplot on same graph.project1.mwproject1.mw  

Thanks much.

Matt 

I have a series of formulae arranged as a vector.  I need to do two things to this vector:

(1) Optimize it using 'tryhard'.  

(2) Use the optimized results to create a new procedure.

 

I can do either (1) or (2) alone, but when I try to combine them as one command it never works.  A simplified example of what I'm attempting with the resulting error message is below:

with(codegen, optimize, makeproc);
V := Vector(4);
V[1] := x+y;
V[2] := x^2+y^2;
V[3] := x^3+y^3;
V[4] := x^2+y^2+x+y;

T := makeproc([optimize(V, 'tryhard')], [x, y]);

Error, (in codegen/makeproc) Unrecognized input [t78 = x+y, t73 = y^2, t74 = x^2, t77 = t73+t74, t1 = (Vector(4, {(1) = t78, (2) = t77, (3) = t73*y+t74*x, (4) = t77+t78}))]


It seems that makeproc cannot handle a combination of optimized assignments and a vector of formulae.  Is there anyway to fix this?

 

Thanks

Hello guys, I have a question. Is there any possibility to calculate two or more procedures at same time in the maple18 ?. I m thinking about using of the Grid or threads tools.

My problem is:

Given two functions/ procedures, f1(x,y) and f2(x,y). I need make an parallel computation of f1 and f2 and after i need get

f3 = f1+f2.

I am very grateful for the help.

I have the following equation

phi = -arctan(sin(2*theta)*(cos(beta)-1)/(cos(beta)*cos(2*theta)-cos(2*theta)-cos(beta)-1))+theta;

phi = -arctan(sin(2*theta)*(cos(beta)-1)/(cos(beta)*cos(2*theta)-cos(2*theta)-cos(beta)-1))+theta

 

In the denominator I wish to collect the two cos(2*theta) terms  into a single term, as in

(1-cos(beta))*cos(2*theta)

 

Is there a straighforward way of doing it?

 

plots:-implicitplot((-2.0)^x-y,x=-sqrt(2)..-exp(-1),y=-1.5..1.5);

I tried surd, but there is a limitation (integer order).

 

 

 

 

As you can see, could you know how many columns of matrix ee has?

It is not easy.

The true column number is 7.

Is there a good method to sperate differetn columns apart? for example, use comma

Hi,

 I am using a very basic function in Statistics package as below and get error. 

X := RandomVariable(Normal(a, b));

I was having trouble importing an excel sheet

with(ExcelTools):
a:=Import("c:/inquire.xls","test1a.tabs","A2:B50")

  Error, (in ExcelTools:-Import) There was an error reading the Excel file

The excel sheet only had one tab visible named test1a.tabs

However it loaded fine without the range and sheetname specified
      a:=Import("c:/inquire.xls")
             

and it loaded fine using the sheet name as a number

     b:=Import("c:/inquire.xls",1,"A2:B50")

             

 

I was wondering if anyone else experienced this or if I was doing something wrong someone could point out.

 

I find fsolve() to be curiously unstable. Some of the behaviour I can guess at, but other parts are not as clear.

 

Define a function.

P := x->fsolve(exp(-(1/100)*t^2)*cos(2*t),t=x):

plot(P,4..5,smartview=false);

I'm begginer in maple so I have many questions

I have 

f1 := [x2^3-3*x1+x2, -x2-x3+u, x2-2*x3]

I want to put 

x1=2*x1

x2=2*x2

x3=5*x3

 

and I wand it in loop

for x4,...xn

so that f1 will be a vector

I set up a worksheet with embedded components in Maple 18. I am now trying to use the worksheet with Maple 2015. The GetProperty( ) procedure in DocumentTools cannot find a number of kinds of the embedded components (perhaps all kinds).

Why would this happen, and how can I fix it?

guys, i have a tensorial expression which i want to compute it, but i have some problem tensor.mw

 

 

thanks in advance

   Hi there,

   How can we pl0t the volume or surface of revolution of cardioid r=1-cos(\theta) about  polar axis or the vertical axis in maple14.

 Any help will be appreciated.

M.R.Yegan

First 1237 1238 1239 1240 1241 1242 1243 Last Page 1239 of 2434