Ramakrishnan

Ramakrishnan Vaidyanathan

294 Reputation

12 Badges

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

MaplePrimes Activity


These are replies submitted by Ramakrishnan

@dharr 

When I convert my doc to pdf, the last row has sides (vertical borders) extended and bottom border (line) goes to next line. This looks ugly. Using break lines (very difficult also) leave large gaps in many pages.
I want the rows to be complete in both pages. I know, I can achieve this, but I donot know how I can achieve this. I attach my sample doc. The export pdf should have perfect borders for the tables in each sheet even if break is allowed within a cell, and part of the last row can go to second sheet but with perfect border on both sheets, Probably, the terms points and % page width are not clearly understood by me. 50% 621 points. What does this 621 points mean? What does page break "none", "allow within cells": and "allow within rows" mean? A sample document to explain these three would help  me  understand better. I will also try making my document thrice with each control and try to understand. I get confused in my attempts. But an explanation would be of great help. Thanks to both Christopher and Char for the answers that helped me to a great extent,

Ramki.

 ch1Ch1TextforPdf.mw

@Zeineb 

I have given the domain and ranges with tabulated function values as evidence. Hope the table clarifies the doubts. 


 

restart

f := proc (x) options operator, arrow; piecewise(x <= 0, -3, 0 < x and x <= 1, x^2, 1 < x, -x) end proc

proc (x) options operator, arrow; piecewise(x <= 0, -3, 0 < x and x <= 1, x^2, 1 < x, -x) end proc

(1)

f(-1) = -3NULL

f(1/2) = 1/4NULL

f(4) = -4NULL

I

xValue := proc (a) local x, x1; if a < -3 then x := "x:x=(-&infin;,0] " elif a = -3 then x := "x:0<x<3" elif -3 < a and a < 0 then x1 := abs(a); x := ["x1=", x1, "x:x<x1"] elif 0 <= a and a < 1 then x1 := sqrt(a); x := ["x1=", x1, " x: x1<x&le;1"] elif 1 <= a then x := "{}" end if end proc

xValue(4)

"{}"

(2)

``

xValue(-3)

"x:0<x<3"

(3)

xValue(0.9e-1)

["x1=", .3000000000, " x: x1<x&le;1"]

(4)

``

 

f(-4) = -3NULL

f(-3) = -3NULL

f(-2) = -3NULL

f(0) = -3NULL

f(.5) = .25NULL

f(.9) = .81NULL

f(1) = 1NULL

f(2) = -2NULL

f(3) = -3NULL

f(4) = -4NULL

f(10) = -10NULL

"a = -10(<-3)"

Domain: a: a<-3, Range x; x = -infinity and -infinity < x and x < abs(a)

``

"a = -4(<-3)"

``Domain: a: a<-3, Range x; x = -infinity and -infinity < x and x < abs(a)

a = -3

a = -3

(5)

fails

fails

fails

Domain a=-3, Range x; 0 < x and x < abs(a)

``

``

``

``

a = -2 (>-3)

a = -2

(6)

fails

fails

fails

Domain -3<a<0, Rangex; 0 < x and x < abs(a)

fails

fails

fails

fails

a = 0

a = 0

(7)

fails

fails

fails

Domain a=0, Rangex; 0 < x and x <= 1

fails

fails

fails

fails

a = .5(>0)

a = .5

(8)

fails

fails

fails

Domain 0<a<1, Rangex; sqrt(a) < x and x < 1

fails

fails

fails

fails

"a=0.9(<1)"

fails

fails

fails

Domain 0<a<1, Rangex; sqrt(a) < x and x < 1

fails

fails

fails

fails

a = 1(≥1)

fails

fails

fails

fails

fails

fails

fails

fails

fails

fails

a = 3

fails

fails

fails

fails

fails

fails

fails

fails

fails

fails

a = 4

fails

fails

fails

fails

fails

fails

fails

fails

fails

fails

a >= 1

Domain a≥1, Rangex; x = {}

 

 

``

Hope the above table for all possible a values would help you make the answers.

Cheers

``

``

 

Domain*a

Range*x

Domain: a: a<-3, ``

Range x; x = -infinity and -infinity < x and x < abs(a)``

Domain: a: a<-3, ``

Range x; x = -infinity and -infinity < x and x < abs(a)``

Domain a=-3,

Range x; 0 < x and x < abs(a)NULL``

Domain -3<a<0,

Rangex; 0 < x and x < abs(a)NULL``

Domain a=0, ``

Rangex; 0 < x and x <= 1``

Domain 0<a<1, ``

Rangex; sqrt(a) < x and x < 1``

Domain 0<a<1, ``

Rangex; sqrt(a) < x and x < 1``

Domain a≥1, ``

Rangex; x = {}``

 

 

``

``

``

``

 


 

Download piecewiseFunctionSolution.mw

Cheers.

Ramki

@bellaqueame 

Glad to know, you got the answer all by yourself. Cheers. Keep it up.

Ramki

@Joe Riel 

Thank you very much for the perusal of this long codes and constructive  useful comment. Cheers. Ramki..

Dear members,

With a little more search for the mistakes, I found out that the variable y was preventing  the plot from occuring. I changed it to y1 and the doc works fine. However  I request suggestions for any suggestions on improving the code for getting a simple and easy to read module.

Thanks for helping me.

Cheers.

Ramki
 

NULL

 

 

restart

 

Cost in $:     

Present Value:   

Interest in % per year:         NULL

NULL

 Period in years:  

NULLNULL

NULL

Additional Months

NULL

 

 

``

``

 

Principal $

``

Interest % per year

``

Year

Present value at the year end

0

NULL

1

NULL

2

NULL

3

NULL

4

NULL

5

NULL

 

 

 

 

 

 

Cost:  

Interest % per year (float)  

NULL

NULL

 

 

 

NULL

NULL


 

Download Doubt_x_symbolic_required.mw

@acer 

I have now learnt the meaning of parse more clearly.

I also found out using the suggested command 

SetProperty("MathContainer0","expression",parse(GetProperty("TextArea0","value")));

using  " parse(GetProperty("TComboBox0","value")) gets the pop up in MathContainer rather quickly.

Thank you very much.

Ramki

@Thomas Richard 

Thank you very much. It works. Though both value and "value" works, I prefer now to use "value" as there must be some reason behind its rule.

Thanks to both acer and Thomas Richard for instant support.

Ramki.

@tomleslie 

I have understood, what expression means inside the container. Thank you very much for making it function.

Ramki

@Joe Riel 

Thank you very much for the input to my doubts. These are certainly useful in my present preparation of code for use in visualisation of functions and transformations. Thanks again.

Ramakrishnan V

 

@acer 

Radiobuttons, I will use for different function selections. Thanks.

Ramakrishnan V

@acer 

Thanks. I want the update of expression whenever there is a change in the expression.

Since the code is already in the ChangeE() procedure, to avoid duplication of command, I have replaced  the second code with calling the procedure, ChangeE() and it also works well.

 UpdatePlot := proc()

....
              ChangeE(); # This works as well.
    #     DT:-SetProperty("MathContainer0", ':-expression', q);
    end proc;

@acer

No sir. I have posted. I have not attached this document as you already have now. The command that works here does not work elsewhere. That document I have posted with question

  

@acer 

Thank you very much.

I shall try it out and find string or variable, which one is best. In the present document, it may be little difficult. I shall in any way find out the effect. Thank you very much. It seems the commands are very sensitive at times and i face this problem in mathcontainer. I am sending the same as another question next time.

Thank you very much again.

Ramakrishnan V

@acer

Thank you very much. It is very useful to know about the 'refresh' functionality. String identity for components is certainly more straight forward and clear to understand. cheers.

Ramakrishnan V

@Kitonum 

Great. Your idea of using Explore command for this case is the best. However, if I have to have additional commands for additional components involved in the programme, maybe, I say maybe, embedded components with module application would be better. I have to test it. I am sure if Explore command serves the same purpose, a great many complications will be avoided.

Thank you for the nice new command, I have learnt to use from you.

Cheers.

Ramakrishnan V

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