Ramakrishnan

Dr. Ramakrishnan Vaidyanathan

274 Reputation

5 Badges

5 years, 25 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.

MaplePrimes Activity


These are questions asked by Ramakrishnan

Thanks to the answers received by mapleprime friends, I have made 2 documents. In both documents, i want the expression to be modified and shown in mathcontainer. In my earlier question  "Slider Commands - "value" or value or both are ok" ,   the command " SetProperty (MathContainer0, value,sin(x)" it worked. In the attached doc, it does not work. The same command in updateplot procedure, works, but incorrectly.

Thanks for clarification.

Ramakrishnan V
 

restart

NULL

Function: Examples: "y = a+b*x+c*x^(2)+...; y = a^(x); y = a sin(bx+c)+d;  y = a f(bx+c) + d"

All valid input values for the function ( i.e. for x value, function exists) is domain. This can be visualized by a point in graph (x,y)

restart

 

               

 

 

               

    
                      

 

                

 

 

                 

 

                             

``

``a

a

(1)

b

b

(2)

c

c

(3)

d

d

(4)

NULL

 

 

           

NULL


 

Download doubt2_MathContainer.mw

In the attached document, I have made use of both commands as follows.

a:=GetProperty(SliderA,"value");

b:=GetProperty(SliderB,value);

Both are working alright. How is it possible? Which one is desirable?


 

a:

b:

For sliderA, GetProperty(SliderA,"value") is used.

For sliderB, GetProperty(SliderB,value) is used.

Both are working alright. How? Which one is more desirable?

``


 

Download Doubt_on_SliderCommand.mw

Thanks for answering.

Ramakrishnan V

Dear friends,

I have attached a document with two commands  in slider0 for plotting the same graph in two plot components.
use DocumentTools in 
a := Do(%Slider0/100);
b := Do(%Slider1/100);

Do(%Plot0 = plot(sin(a*x)+cos(b*x^2),x=0..10,y=-3..3));
SetProperty("Plot1",value,plot(sin(a*x)+cos(b*x^2),x=0..10,y=-3..3));
end use; 

I am just curious to know which one is better and when?

 

``

``

 

``


 

Download DoubtOnLatestCodesinEmbeddedPlot.mw

Thanks for answers.

Ramakrishnan V

Dear members, Can anyone help me, how to adjust the spacing between lines, sections in adjacent paragraphsand sections within a paragragraph.


 

"line 1"

" line 2  line 3"

Sec 1

   

``

Sec 2

   

Sec2

   


How do I vary the spacing between the lines?


 

Download spacingDoubt.mw

There is a time difference variation between two clocks (0.124, 0.120) and between the same clocks for the same calculations at different times(0.07, 0.124 and 0.120, 68. What is the reason?

Thanks for answering.

Ramakrishnan V
 

restart; t1 := time[real]()

2344.956

(1)

t1PC := Now(ProcessClock)

_m1718422690432

(2)

"for i = 1 to 1000  i:=i+1  end;"

t2 := time[real]()

2345.080

(3)

t2PC := Now(ProcessClock)

_m1718421822656

(4)

tdiff := t2-t1

.124

(5)

tdiffPC := t2PC-t1PC

120*Units:-Unit(ns)

(6)

I redo the same programm again to see the time of performance

t1 := time[real]()

2345.253

(7)

t1PC := Now(ProcessClock)

_m1718419758016

(8)

"for i = 1 to 1000  i:=i+1  end;"

t2 := time[real]()

2345.323

(9)

t2PC := Now(ProcessClock)

_m1718418631616

(10)

tdiff := t2-t1

0.70e-1

(11)

tdiffPC := t2PC-t1PC

68*Units:-Unit(ns)

(12)

 

Now I again recall the stored time values. (unit: milliseconds). t1 and t2 are retained for ever until unassigned.

t1

2345.253

(13)

``

t2

2345.323

(14)

t2-t1

0.70e-1

(15)

t2PC-t1PC

68*Units:-Unit(ns)

(16)

``


 

Download timeToRunDifference.mw

1 2 3 4 5 6 7 Last Page 1 of 10