radaar

112 Reputation

6 Badges

2 years, 141 days

MaplePrimes Activity


These are questions asked by radaar

I have written a procedure in which the content is written as either for loop or add commands. Since this procedure need to be evaluated around 1-1.5 lakhs times during iteration (running an iterative method) I need to know which of the two procedure will consume less memory. The whole calculation takes 4 gb. So i am trying to optimize the code. Thank you.

 

procedure_new.mw

I am trying to run maple program in a workstation using 20-40 processor for a job. I have no idea how to do this. Thank you.

I am trying to create an array whose elements are from another matrix. Suppose I have a matrix of n cross m dimension my array will have a dimension of 1 cross n*m. When I create  array I am getting error. The array contains only last element of matrix. The expected answer is given in attachment.

sigma.mw

I have written a code for minimizing a multivariable function using Gauss newton method. But i am getting error 
 

restart; with(LinearAlgebra); with(Student[MultivariateCalculus]); f := unapply(x1*exp(t*x2-y), x1, x2); tt := Matrix(5, 1, [1, 2, 4, 5, 8]); yy := Matrix(5, 1, [3.2939, 4.2699, 7.1749, 9.3008, 20.259]); ff := f(2.50, .25); for ii to 5 do t := tt[ii][1]; y := yy[ii][1]; Jf := Student[MultivariateCalculus][Gradient](f(x1, x2), [x1, x2] = [2.50, .25]); JF := Transpose(Jf[1]); JR := Transpose(Transpose(ff).JF); HF := Transpose(JF).JF; P := LinearSolve(HF, -JR); printf("%a  \n", P) end do

Vector(2, [0.,-1.], datatype = float[8])  

Error, (in LinearAlgebra:-LA_Main:-BackwardSubstitute) inconsistent system

 

``


 

Download GAUSS_NEWTON_METHOD3.mw

I have multiple accounts. I would like to delete them. Please tell me how to delete it. Thank you.

4 5 6 7 8 9 10 Page 6 of 10