Ramakrishnan

Ramakrishnan Vaidyanathan

399 Reputation

13 Badges

10 years, 261 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.

MaplePrimes Activity


These are questions asked by Ramakrishnan

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

There  are commands tic and toc in matlab program.

tic

toc

toc - tic 

This gives the run time for the program.

Even in excel, we can find the difference between clock times at the start and end using NOW commands.

Is there a similar way to use maple commands to find the running time of a program.

 I want to find the time taken by the student to solve the quiz questions in the enclosed doc.

Could anyone help please?
 

restart

Chapter 1 -  SubChapter 1 - Precalculus - Quiz 1 (15 questions - Duration - 1 hour)

 

                Factor 3*x^2-10*x-8

(3x + 2)(x - 4)

NULL

NULL

NULL

NULL

NULL

Press your option above for Answer

 

 

``

 

              Solve "x^(2) - 4 x - 5 = 0 by factoring"

``

``

-1, 5

``

``

Press your option above for Answer

 

 

``

 

                Roots of the equation x^2-8*x-20 = 0*are

 

``

- 2, 10

``

``

``

``

Press your option above for Answer

 

 

``

 

Correct Answer

``

``

``

``

``

Press your option above for Answer

 

 

NULL

 

NULL

NULL

Correct Answer

NULL

NULL

Press your option above for Answer

 

 

NULL

 

NULL

Correct Answer

NULL

NULL

NULL

NULL

Press your option above for Answer

 

 

``

 

Correct Answer

``

``

``

``

``

Press your option above for Answer

 

 

NULL

 

NULL

NULL

Correct Answer

NULL

NULL

Press your option above for Answer

 

 

NULL

 

NULL

Correct Answer

NULL

NULL

NULL

NULL

Press your option above for Answer

 

 

``

 

Correct Answer

``

``

``

``

``

Press your option above for Answer

 

 

NULL

 

NULL

NULL

Correct Answer

NULL

NULL

Press your option above for Answer

 

 

NULL

 

NULL

Correct Answer

NULL

NULL

NULL

NULL

Press your option above for Answer

 

 

``

 

Correct Answer

``

``

``

``

``

Press your option above for Answer

 

 

NULL

 

NULL

NULL

Correct Answer

NULL

NULL

Press your option above for Answer

 

 

NULL

 

NULL

NULL

NULL

Correct Answer

NULL

Press your option above for Answer

 

 

QuizNULL

Go to Chapter1 - SubChapter 2

Home

 

NULL


 

Download Commands_for_Time_Taken_to_Answer_Please.mw

Thanks.

Dear friends, I have made a doc using embedded components to plot a curve. What commands should I do to animate (and pause and play using a custom play/pause button inserted in the table) the plot. Normally I have to use explore animate command, but it requires the user to use animation tools. There must be a way to do the same using play = true; loop = true commands. I donot know its use. Can any one help. Thanks. 

 

use DocumentTools in

Do(q = %MathContainer0);
Do(p = eval(q));
# Do(%Plot0 = plot(p, x = 0..2*Pi));
Do(%Plot0 = plot(p, x = 0..10));
end use;


 

 

 Write the expression in textarea and click the button to see the plot in plot area and expression in math container

      NULL

 

 

``

NULL


Thanks for helping out. Ramakrishnan V

Download animation_CommandPlease.mw

eval(sin(x), x = .2) is evaluated, eval(sin(x), x = 4) is not evaluated. Why? What should we do to get the answer. x-2n k (pi) can be obtained and evaluated. Why Maplesoft does not simplify and evaluate?

Is there a way out to give proper command for Maple soft to know what to do?

Thanks for answer.

Ramakrishnan V
 

eval(sin(x), x = .2)``

.1986693308

(1)

eval(sin(x), x = 4)

sin(4)

(2)

``


 

Download evalDoubtSinx.mw

Can any one do the addition of values (in string format) x in textarea0, y in textarea1 and get the mathcontainer result in the text box2.

Thanks

Ramakrishnan V


y := GetProperty(TextArea1,value);
Do(%TextArea2 = Do(%MathContainer0,x=%TextArea0,y=%TextArea1));

``

``

``

NULL


howTogetNumericAnswerinTextArea.mw

Download howTogetNumericAnswerinTextArea.mw

 

3 4 5 6 7 8 9 Last Page 5 of 13