Ramakrishnan

Ramakrishnan Vaidyanathan

389 Reputation

12 Badges

7 years, 245 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

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

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.

2 3 4 5 6 7 8 Last Page 4 of 12