## solve differential equations...

how do I solve differential equations with maple V?

## invalid base or missing operator or ;...

h:=0.1: n:=ceil(5.0/h): t:=0.0: y:=2.9: data[0]:=[t,y]: for i from 1 to n do mk := y^2-4y+3: y := y + h*mk: t := t + h: data[i] := [t,y]: od: t:='t': y:='y': h:='h': datalist1 := [ seq( data[i], i=0..n ) ]; plot1:=plot( datalist1, 0..5, 0..4, color=red); display([plot1,plot2]); ok this is what i have typed in...the equation is dy/dt = y^2-4y+3 i am able to plot the direction field but now when i use Euler's method to find a solution with y(0)=2.9 for 0<>

## error every time...

h:=0.1: n:=ceil(5.0/h): t:=0.0: y:=2.9: data[0]:=[t,y]: for i from 1 to n do mk := y^2-4y+3: y := y + h*mk: t := t + h: data[i] := [t,y]: od: t:='t': y:='y': h:='h': datalist1 := [ seq( data[i], i=0..n ) ]; plot1:=plot( datalist1, 0..5, 0..4, color=red); display([plot1,plot2]); ok this is what i have typed in...the equation is dy/dt = y^2-4y+3 i am able to plot the direction field but now when i use Euler's method to find a solution with y(0)=2.9 for 0<>

## how to plot an array?...

I have an array I have defined within Maple - how does one plot the array? I have tried defining a function mapping the index to the element of the array, but it's not clear how to restrict that to integers ... -Monty

## non verbose mode?...

I am trying to create an array for testing the FFT errors within maple. Every time I try to assign values to the 1024-element array, the program prints them all out. Is there any way to turn this off?

## How do I Multiply(expand) a Polynomial and get it'...

How do I multiply(expand) a Polynomial and get it's shortened form? I have a polynomial X^2+a*X+b and I rise it to the power of 2 and multiply by X eg X*(X^2+a*X+b)^2 and I wish to get the answer for this in the form of X^5+2*X^4*a+(a^2+2b)X^3+2*a*X^2*b+X*b^2 as opposed to getting X^5+2*X^4*a+2X^3b+a^2X^3+2*a*X^2*b+X*b^2 Is this possible? At the moment I use the Expand command in maple to generate the answer. I know this is slightly pedantic as maple is returning the correct answer but I need to build a Matrix out of this using quite a few of these polynomials. Any h

## Outputting values to a file or plot to graph...

I have to following Maple file and from the graph that is plotted the I need to find how far each of the reflected rays falls from a common focus. Is it possible to read the values of the y-intercept of each of the refelcted rays and then either output these to a file or to directly plot a graph showing the distance each ray falls from the common focus. Thanks Download 3259_Mirror.mws
View file details

## Problems with latex2edu and maple graded questions...

Sorry for the repetition. I posted this last night as a reply rather than a new posting. I am having difficulty converting latex files with maple-graded questions. It appears that it does not recognize the question type even though the documentation claims that all question types are available with latex. If I try this example or any of the examples in the latex authoring documentation, it generates errors on the latex2edu conversion site.  \documentclass[12pt]{article} \usepackage{ed} \setImageBase{../classes/myclass/images} \begin{document} \begin{topic}{fun} \begin{question}{Maple} 

## Multiplication of Matrices...

This is a personal pet peeve. Let A be a 2x2 matrix with elements 0.5, 0.5, 0.3, 0.7 Find A^2 Repeat with a 2x2 matrix with elements 1/2, 1/2, 3/10, 7/10. Why does the first example give more than 2 decimals? Why is the answer to the first so inaccurate? Is there some library besides LinAlg or LinearAlgebra I should include to handle such rudimentary calcs?

## Maple library inside a module (procedure)...

Hi, It´s possible to call a Maple library from a module or a procedure? I try to use the command with, but Maple don´t accept that. Thank´s João Paulo Laudares

## inequality problem with MapleTA...

In the following qu file for a MapleTA question, if the RESPONSE is

{a<x and x<b} then after the question gets graded as correct, "Your Answer" appears incorrectly as {a<b}.
But if the RESPONSE is

{a< x and x<b} (note there is a blank space after the first inequality sign!) then "Your Answer" appears correctly as RESPONSE.

One could ask students to put the blank space in, but this should not be necessary. Any ideas?

.......

question=Enter this and see what happens.
<p>

$qml@ maple=evalb(($ANSWER)=($RESPONSE));@ maple_answer=$ans;@
type=maple@
mode=Maple@
name=a< x< b@

## Problems with LaTeX authoring with Equation...

Has anyone had any trouble using Equation with structures that are not functions? I am using 2.51, and the following question always returns incorrect.  \begin{question}{Equation} \qutext{Test question} \answer{x^2 + y^2 = 1} \end{question}  Is there a workaround?