Hello, My name is Kostas and I am new in the forum. I am new in Matlab as well. I am trying to get some advice in executing a code that I found on a book "Numerical Methods using Matlab". The code is as follows: function [xo,fo] = opt_steep(f,x0,TolX,TolFun,alpha0,MaxIter) % minimize the function f by the steepest descent method. %input: f = ftn to be given as a string ’f’ % x0 = the initial guess of the solution %output: x0 = the minimum point reached % f0 = f(x(0)) if nargin < 6, MaxIter = 100; end %maximum # of iteration if nargin < 5, alpha0 = 10; end %initial step size if nargin < 4, TolFun = 1e-8; end %|f(x)| < TolFun wanted

How do I append lists?
An example is a1:=[1,2,3];
a2:=[4,5,6];
Desired result is [1,2,3,4,5,6].
Now I a3:=[seq(a1[i],i=1..3),seq(a2[i],i=1..3)];
That is not very elegant.
Also how do I find the dimension of a list?
Like dimension(a1);
3

Hi again people,
I have just another little quick question and that is if I graph two polynomial functions on an interval is there a way to find where the two polynomial intersect each other? Can it be done without graphing? Again I need accuracy to 3 decimal places.
Thanks again.

Hi people, I am actually taking a maple practice test and am wondering how would I go about doing a higher order derivative of this function.
f(x) = sin(x^2/(x^10+2))*e^(2*x)
I would like to find the 8th deriavtive at x = 0 to 3 decimal places.
The answer is 112.000 but i would still like to know how to solve it as in the real test there will be one just like it.
If someone could give the algorithm that i would put it in that would be great. Used the help feature but it was not all that helpful.
Thanks in advance.
Tabish

Before I upgraded, I would input
Δx:=2
and Δx would be a single variable.
Now I input
Δx:=2
and I get "Error, illegal use of an object as a name"
If I input
Δx [enter]
it returns Δ x as though they are multiplied.
How do I input greek-alpha combo variables again?
Thanks for any help.
BE

Hi,
I have a problem with fit parameters restrictions.
I would like to give restrictions of the parameters of my fit in order to get the best fit parameters, but the "parameterranges" seems to be not in function.
my function is following:
> y1 := piecewise(0 <><>

I'm trying to write a document in Maple 10 that includes some ODEs. I want these to be either text or math inputted in the form dV/dt = V [f(S)-r] (where V is a function depending on t and f is a function dependent on S that I want to introduce later in the document). It would be good if they could be inputted in math form so that they have labels but ideally i want them in a clear non-Maple form like above rather than somthing like V'(x)= V(x)*[f(S) - r] which is what I keep getting (or other similar things like it including Maple solving V'(t) and outputting zero which is not at all what i need)

I am trying to use the subs command to take a general solution to a differential equation and apply some numerical values. I can't seem to get the system to recognize the values I am substituting for. Consider the following: m*diff(y(t),t,t)=-m*g+sigma*A*diff(y(t),t); (1) y(0)=h,D(y)(0)=0; (2) dsolve( {(1),(2)} ); (3) subs( {A=2,m=50},rhs((3)) ); Everything works fine. If, on the other hand I impose any kind of constraint on A or m in the original equation then the substitution fails (nothing happens). Clearly the system has tagged the value for A and m as something other than their original name. Since the system doesn't report this name change how can I make substitutions after a symbolic manipulation like this?

Hi,
I'm new to Maple so please forgive me if this seems really easy but I can't seem to find it in help anywhere. Basically, I have an equation that is a function of x, y, and t (where t is time). Instead of a 3-D plot, I would like to display a 2-D plot with x-axis and y-axis and have 5 lines of the equation at various intervals of t (t=0, t=1, t=3, t=5, t=20, etc.).
Thank you very much for the help,
KC

Does anyone know if there is a way to save plots in a maplet?
The following does not produce the expected .ps file:

hey all,i finding how to solve integration on maple rather tricky.I need 2 find the numerical area of the region above the x-axis which is restricted by the curve y=5sinx-3x^2+5 and the x-axis. how can i do this? any suggestions will be gratefully received.

Hi, i'm new to using maple, and so far been ok solving equations, by figuring out the code forthis has got me stumped and would appreciate any help people can give me. basically i'm trying to find the smallest value of x>0 for which the function f(x)=sinx/x has a minimum and to find the coressponding value of the function. However i keep getting error messages, as my code probably does not make sense. could any one help pls? thanks.

hi, I want to solve linear equations with the assumption that Maple round every step of the evaluation accurate to 2 decimal places. for example: > solve({1.11 x - 2.13 y + 1.14 z = 1.23, 0.32 x + 1.44 y + 3.02 z = 4.10, 1.27 x - 1.14 y + 2.54 z = 5.67}, [x, y, z]) x=19.59 y=7.38 z=-4.24 and not [[x = 19.09759807, y = 7.184806478, z = -4.091838645]] thx for your help

Does anybody know of a way to extract derivatives of a specified function from an expression? For example, if I have the expression,
int(D[6](F)(x,t,y(x,t),diff(y(x,t),x),diff(y(x,t),t),diff(diff(y(x,t),t),x))*diff(diff(yv(x,t),t),x),t = t1 .. t2);
I'd like to be able to get the derivatives of yv(x,t) which in this case would be,
diff(diff(yv(x,t),t),x).
I ask because I'm trying to systematically integrate a set of expressions by parts where I know that the dv term always contains a certain function's derivatives and I can stop integrating by parts once I have just the function.

Hello, I am new to maple and I am trying to create letters with the arrows and hats over them so they can represent vectors. I looked at all of the different fonts included in Maple and none of them that I saw had any characters with arrows over them. I looked at all of the shortcuts and I didn't see a way to type stuff directly above a letter, beacuse maple has letters and it has arrows so if there were a way to do a superscript of the arrow except directly over the letter that would work. I also looked at the symbol definitions, and I looked through maple help. I found an overwhelming amount of help for the commands, but nothing for a simple formatting issue.