## Ramakrishnan

Ramakrishnan Vaidyanathan

## 399 Reputation

10 years, 90 days

## Social Networks and Content at Maplesoft.com

With twenty years of Industrial experience and twenty years of teaching experience, I am now as retired Professor, using Maple to teach mathematics subject for students studying X to XII standards. Published XII Mathematics books.

## multiplot example...

Hope my example of a multiplot with three color given below with codes should help you as well.

Ramakrishnan V

 (1)

 (2)

 (3)

 (4)

## try-catch...

I am not an expert in maple programming.

This try-catch are specials commands I have come across in MATLAB. These are the only ways to correct your programme step by step until you the perfect one is obtained. In that way, I would only suggest that as it is only the first step in the long process of editing our programmes, three more steps are required to be performed.

Step1: Give a correct (simple for which answer is known) input, run the programme and check for the errors. Thus 'User Errors' is eliminated.

Step2: Check for the condition that your problem has a unique solution, multi-solution or no solution. If it satisfies the condition, Thus 'No Solution'  is verified to be incorrect.

Step 3: Maple errors. In this case, run the program step by step check for values of doubtful variables and correct until the end of the programmed codes.

Hope this is in order for getting into the solution successfully.

Thanks for the patience and taking my suggestions.

Ramakrishnan V

## How to solve numerically a PDE system wi...

This has reference to the 'analytical solution available' mentioned in the question. What is that?

ibcs := {H(0) = 0, l(x, 0) = 1, l(H(t), 0) = 1, sh(x, 0) = 0, sh(H(t), t) = 0, sv(x, 0) = 0, sv(H(t), t) = 0, u(0, t) = 0, u(x, 0) = 0};
res := pdsolve(pde_sys, ibcs, numeric, time = t, range = 0 .. H(t));

initial boundary conditions mean boundary conditions at t = 0 , but given conditions use H(t) ,t

May be the problem lies there.

Hope this is useful

Ramakrishnan V

## How do you plot this graph in maple...

In my opinion, any plot is possible only if you have the set of values in order. If there are 10 x values, then you must have a corresponding 10 y values. If y is the function of x as a variable in it, then, the above condition is satisfied and it is possible to plot x vs y. If there is another function say x1 which is a function of x, then again the above condition is satisfied and you can plot x1 vs y.

It goes on and in this way, you can plot y vs x1*x2 (i.e. the product of x1 and x2). In the query, it is difficult to get such relation among V(r), E0 and B0.

Assuming all the are functions of say a variable r, then find V(r), E0(r) and B0(r) for say 5 values of r (=0.1, 10,100,1000,10000 just like that I gave, it can be like 1,2,3,4, and 5 as well). For example, E(r) = r, B0(r) = r*r, and E0(r) = 3r  and r = 1,3,5,7,8 and 9.

Then V = [1, 3,  5, 7,  8,  9]; B0 = [ 1, 9, 25, 49, 64] and E0 = [ 3, 9, 15, 24, 27].

Then only it is easy for anyone (software) to plot using plot command plot(E0, V) or plot(E0*B0, V).Hope this helps in making your plot easily possible.Ramakrishnan V

## How to add mathematics in maple work she...

I donot know much but want to be the first to answer you since question looks simple though it is from an expert in maths. Select File > New > Document mode (Not worksheet mode)

StringTools is the package you can refer to if it is maths with strings! Even symbols are considered as strings in maplesoft.

Document is the best one to open rather than worksheet. It is almost same except minor the prompts and use of native (simple) maths.

To load the package type the commands given below.

with(StringTools):

I hv attached a doc (results inserted below) small one with what i know. Hope this will help to learn more.

If it is real maths with numbers and basic, then i spent much time to know the difference between assignment (:=) and equation (=) commands. Dive in to to learn. It is simple and easy.

Cheers. RamakrishnanV

 (1)

 (2)

 (3)

 (4)

 (5)

 (6)

 (7)

 (8)

Clicked Text on top and typed the following.
Clicked Math and typed commands below.

 (9)

 (10)

 (11)

Note b is not assigned.

 (12)

 (13)

Now b is assigned.

equations can be solved.

Just type solve and ? in math mode.
If the question is somewhat high standard, sorry for this beginners work here.

Cheers.

Ramakrishnan V

## Solution Obtained...

Kitonum's second method seems very easy for use. Cheers. Ramakrishnan V

 (1)

 (2)

 (3)

 (4)

 (5)

 (6)

shortNotation_sin_cos_terms.mw

## How do i plot without modifying vx and v...

I have obtained the plot you want for Cd as a function of V (in terms of  velocity components vx and vy). Hope this is ok?

However I have made a change while plotting i,e vx and vy as x and y for plotting.Later i changed the label. Someone can help me if we can plot retaining vx and vy as well.

Thanks.

 (1)

 (2)

 (3)

 (4)

 (5)

How do I plot without modifying the vx and vy to x and y?

## only one variable...

sum(1/k^1.5, k = 1 .. infinity);
2.612375349
sum(k/(2*k+3), k = 1 .. infinity);
infinity
sum(1/(3/k+2), k = 1 .. infinity);
infinity
sum(k^1.5, k = 1 .. infinity);
Float(infinity)

sum(1/k^1.5*(k/(2*k+3)), k = 1 .. infinity);
0.83769

 (1)

 (2)

 (3)

 (4)

 (5)

 (6)

limitsum.mw

variable is n or k? Only one variable is allowed here.

## Workbook - save attachments as worksheet...

Hope attached workbook helps you understand problems in your case. bmp file and mw files are in workbook itself.

Ramakrishnan V

Fig1.maple

## Solving an equation...

Two linear equations in two variables (say A and B) are required to solve (obtain the values of) the variables.

Here in the Original Problem, A and B are variables. Hence two equations are required to obtain A and B.

The equations being differential, for each order, one condition (initial, A , B at t = T)) required for each variable).

The equations being being differential in second order, one more condition (slope dA/dt, dB/dt at t =T)required for each variable.

without any of these inputs, Maple will provide many solutions with umpteen variations or keep quiet.

A solution from only one second order differential equation in two variable with out the supporting conditions is therefore a difficult one for anyone.

## Plot shown...

I tried my best to cover 18 terms. (It takes more time and checks your patience and when come across a mistake or inconsistency we

 (1)

 (2)

 (3)

 (4)

 (5)

 (6)

 (7)

 (8)

 (9)

 (10)

 (11)

 (12)

 (13)

 (14)

check * or + before k14

 (15)

 (16)

 (17)

 (18)

 (19)

get upset) The rest of the terms also could be covered in the same way for clarity and check for mistakes. The plot obtained is shown for reference. Hope this is useful.

Ramakrishnan V

## How to remove brackets...

The answers will be complete and remove brackets from L only if L is assigned as

 (1)

 (2)

 (3)

 (4)

 (5)

Else L will still have brackets in its List.

## The Solution...

Hope the solution given below by Maple is ok!

Ramakrishnan VSimEquationsSolved.mw

 (1)

 (2)

 (3)

 (4)

 (5)

Thus it has any number of solutions as you fix a value for x3. There are simple ways to make

them give unique solution using RHS.

## No parfar in matlab...

Dear Sir, I checked up with matlab (2017.2) to understand what 'parfar' does. Surprisingly there is no search results for parfar. I have also checked dictionary of matlab under MATLAB operatorss, Built i constants, Built in Functions, MATLAB Commands, Graphics Commands, Programming commands, Simulink commands, and MuPAD commands. This word is not there.

Did you mean: parfor (36 results)

Suggestions:

• Make sure all words are spelled correctly.
• Try different keywords.
• Try more general keywords.
• Try fewer keywords.

The above results only pop up.

However, from what you say, to do faster, loop commands, module and procedure are the best because you make more local variables and hence faster operation results.Just calling the procedure containing the loops with the variable(s) you want these operations is easier and faster than repeatedly doing oops one under the other.

For uses of module and procedure please refer my post on report generation.My_Module_example.mw

 (1)

 (2)

with(MathematicalFunctions);
action1:=module ()
export Mproc,y;
Mproc:= proc (n)
y:=n+2;
end proc;
end module()

See EDIT and check the commands under Start Up Code or press just (cntrol +shift +E) keys 3 keys not 6

Hope this helps.

Ramakrishnan V

## solve inequality...

Please find my document which may throw light on the solutions given by maple. Maple never ignores anything unless it does not contribute to the answer.

Ramakrishnan v

 (1)

 (2)

 (3)

 (4)