Ramakrishnan

Ramakrishnan Vaidyanathan

319 Reputation

12 Badges

5 years, 211 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 replies submitted by Ramakrishnan

The proposed codes will be useful for all those who wish to have sections for a slide show and make simultaneously make a clean pdf document without sections and vertical lines associated with them.

The doubts would be clear if one knows the following.

The arguments in the procedure are two. 1. Are they just file names or files names including the path?

2. Where should the codes be placed? At the beginning of the doc? Can this module be located in the startup code?

3. Should the target file be **.pdf  or  **.mw only?
Thanks for a wonderful job done for maple users.

Ramakrishnan V

@Carl Love 

Thanks. It works when retyped as you mentioned . I also selected the character x and corrected using  format -> character -> italic for x.

Cheers.

ramki

@acer 

Drawing a circle first and then a rectangle with white order and white fill helped me better. Thanks. Ramki

I ask many times a question and prompt get the answers convincingly too. Later on when I ponder over, I found that I should not have asked the question because that was something to do with my maths knowledge and nothing to do with maple knowledge. Since maple is developed for mathematics, both the types of questions are answered convincingly by the support team.
Congratulations to the support staff.

Ramakrishnan V

@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;

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