Ramakrishnan

Dr. Ramakrishnan Vaidyanathan

259 Reputation

4 years, 358 days

Social Networks and Content at Maplesoft.com

I have retired as Professor-Mechanical in Sri Venkateswara College of Engineering and Technology under Anna University affiliated colleges in Tamil Nadu, India. I have 19 years of Industrial and 20 years of teaching experience. I am learning Maple for the past four and half years hoping to make at least one appreciable maple presentation.

Module Example - A simple procedure in a...

Maple

Dear users,

Can any one give a correct model statement (if what I have suggested is incorrect) for each one of the following in a module:

module() export eseq;  local lseq;  global gseq;  option optseq;

description dseq;  uses usesSequence;  statementSequence   end

My model statements:

export x1, y1;

# x1 and y1 are variables calculated here and sent to main document

local a, b;

# a and b are local constants are variables used here inside module only

global z1;

# z1 is a constant or variable used all over the document can be read from and exported to main document and used in manipulation anywhere in the main document as well as inside the module.

option if x1 = .. else... end;

description dseq;

# Statements for self use and understanding the commands during execution

usesSequence;

uses DocumentTools;

# Packages used in module like DocumentTools, Students Calculus

Statement Sequence

valid executable maple command  1

valid executable maple command  last

I want to understand the basic usage of  a module and procedure with a simple document.

I am also confused over the following.

1) Is there any use of a module with zero statement (as given below) in it?

module ()

end module

2) What is the major difference between module and procedure?

3) What is in module that is not possible in procedure?
I believe that procedure is like a function [for call from script(internally or eternally) or command window] in MATLAB and subroutine in FORTRAN or BASIC etc. What is module like in other programme siftwares?

Thanks for helping.

Ramakrishnan V

string to number conversion from TextAre...

How do we use the command convert(expression, number format) in the conversion of number input in a textarea?radianToDegree.mw

I want conversion from string to float and evaluate radian to degree and show it in textareaDegree.

I am unable to do the operation. 6 radian = 6x180/2 (pi) degrees must be shown degree textbox.

Thanks.

Ramki

List command - Doubt...

Maple

The command L2(1,2) etc (statements 5 to 8) all are considered as valid and gives the complete list as the answer. Can anyone interpret the behaviour and logic behind the maple answers?

 (1)

 (2)

 (3)

 (4)

 (5)

 (6)

 (7)

 (8)

 (9)

How to remove equation labels? in Maple...

Maple

Pl. help me remove the equation labels or hide the equation labels in my doc enclosed. What should i do to prevent equation labels from forming in my document. Please refer last two rows in the table below from the document.

Thanks for helping.Ramakrishnan V

Conversion from ppm to % vol is 1ppm = 0.0001 %

Conversion from % vol to ppm is

Avagadro's law between mass and volume is

where T is abs temperature and M is molecular weight;

M/(0.08205T)]*ppm*((A/F)*EA+1) /ρex; Emission is mg/kg fuel

If SFC is x g/kWhr; then Mass flow of exhaust is  (x/1000)*[M/(0.08205T)]*ppm*((A/F)*EA+1) /ρex; Emission is mg/kWhr

If the distance covered per liter is DCL km/liter, then (SFC/1000)*(DCL)/  is distance covered in km/kWhr

1 g/cc = 1 kg/lit; 1kg/m3 = 1 g/lit; Fuel density  is 0.77 kg/lit

Emission in mg/km = 0.77*Emission is mg/kg fuel/(km/liter fuel)

SFC is in g/kWhr

Measured emission is  E in ppm

Excess Air percentage is EA in per unit point

Molecular Weight of pollutant is M g/mol

Molecular weight of air =  =  g/mol

SFC

g/kWh

 (1)

kg/liter

DCL

km/liter fuel

A/F

EA

 (2)

K

 (3)

kg/m3

=

CO

CO2

HC

NO2

O2

N2

Air

M [g/mol]

Emission [% ] or[ppm]

%

%

ppm

ppm

%

%

%

Emission [mg/Nm3]

 (4)

 (5)

 (6)

 (7)

 (8)

 (9)

 (10)

Emission

mg/kWh

=

=

=

=

=

=

=

Emission

mg/kg fuel

=

=

=

 (11)

=

 (12)

=

 (13)

=  =

=

Emission

[mg/km]

Why in the above row, col2 and col3 have no equn nos?

What should i do to remove the equn numbers 11, 12 and 13?

Temperature of exhaust is in T K

Density of exhaust is say  kg/m3

DCL is distance covered per kWh

 (14)

Emission in g/kWhr is

Emission g/g of fuel = Emission in g/kWhr/SFC in g/kWhrper

Emission in mg/km = 0.77*Emission is mg/kg fuel*(km/liter fuel)

Maple

I have spent much of my time earlier to make curve fitting possible. Somehow, because of my mistakes, the format for curve fitting changed. Can any one help me with getting my answer for curve fitting in the doc and from the excel data enclosed. Data imported, but donot know how to order the way it wants. I know the way,but do not iknow how to get it now.

Thanks

 (1)

 (2)

 (3)

 (4)

 (5)

 (6)

 (7)

 (8)

 (9)