## 1400 Reputation

17 years, 299 days
University of Twente (retired)
Enschede, Netherlands

My "website" consists of a Maple Manual in Dutch

## lprint...

Copy the lprint output

`   with(Physics):   lprint( Physics[`*`](Physics[`*`](Physics[`*`](Physics[`^`](v(t), 2)))) );v(t)^2   lprint(Physics[`^`](v(t), 2));v(t)^2`

## lprint...

Copy the lprint output

`   with(Physics):   lprint( Physics[`*`](Physics[`*`](Physics[`*`](Physics[`^`](v(t), 2)))) );v(t)^2   lprint(Physics[`^`](v(t), 2));v(t)^2`

## Executed worksheet...

@Markiyan Hirnyk This is Maple 14

Zeros.mw

## Executed worksheet...

@Markiyan Hirnyk This is Maple 14

Zeros.mw

## Least squares...

@samiyare In that case you can minimize the quantity (eq1)^2 + (eq2)^2

## Least squares...

@samiyare In that case you can minimize the quantity (eq1)^2 + (eq2)^2

## Explanation...

@Markiyan Hirnyk

ArtNX 's question was: "How to extract the grid points from the plot structure?"

## Explanation...

@Markiyan Hirnyk

ArtNX 's question was: "How to extract the grid points from the plot structure?"

## 1D Maple input...

See this question for copy-pastable input.
Use Worksheet mode, not document mode.

## Working code...

eqn2.mw

@ambitiousad this works for me (Maple 14)

## Working code...

eqn2.mw

@ambitiousad this works for me (Maple 14)

## final solution...

@acer pointed out that salha has to be substtituted in sols to get the final solution. All commands has to be ended wih a colon, because all output exceeds limit of 1000000, so you don't want to see it.
Then you can substitute numerical values for the parameters:

`salpha := solve ( subs( s1, {eq2,eq4} ), {seq(alpha[i],i=aind)} );answer := subs( salpha, sols):# for exampleeval( answer[3], {mu0=evalf(Pi*4*e-7), mu2=1.05, mu3=1000, Rm=16.25e-3, Rr=13.255e-3,       Rs=16.95e-3, Ro=18.45e-3, Np=3) };`

(not all values provided)

## final solution...

@acer pointed out that salha has to be substtituted in sols to get the final solution. All commands has to be ended wih a colon, because all output exceeds limit of 1000000, so you don't want to see it.
Then you can substitute numerical values for the parameters:

`salpha := solve ( subs( s1, {eq2,eq4} ), {seq(alpha[i],i=aind)} );answer := subs( salpha, sols):# for exampleeval( answer[3], {mu0=evalf(Pi*4*e-7), mu2=1.05, mu3=1000, Rm=16.25e-3, Rr=13.255e-3,       Rs=16.95e-3, Ro=18.45e-3, Np=3) };`

(not all values provided)

## Initialization of a Matrix...

@xiao2788 So you can use a Matrix if all rows (calculated lists) have the same length, say 5.

`r := Matrix(80,5):  # initializationfor i to 80 do  for j to 5 do    r[i,j] := ....  end doend do:`

## Initialization of a Matrix...

@xiao2788 So you can use a Matrix if all rows (calculated lists) have the same length, say 5.

`r := Matrix(80,5):  # initializationfor i to 80 do  for j to 5 do    r[i,j] := ....  end doend do:`
 First 7 8 9 10 11 Page 9 of 11
﻿