GCD and LCM using Sympy in Python

##########Source code for finding GCD and LCM using Sympy in python#########
from sympy import *
x = Symbol('x')
expression1, expression2 = x**2 + 4*x - 12, x**2 - 5*x + 6
def findGCD(expression1, expression2):
    print("########### Find GCD ############")
    factorsExpr1, factorsExpr2 = factor(expression1), factor(expression2)
    print("factorsExpr1 : ", factorsExpr1)
    print("factorsExpr2 : ", factorsExpr2)
    GCD = gcd(expression1, expression2)
    print("GCD : ", GCD)
    return GCD
def findLCM(expression1, expression2, GCD):
    print("########### Find LCM ############")
    factorsExpr1, factorsExpr2 = factor(expression1), factor(expression2)
    LCM = factor(lcm(expression1, expression2))
    print("LCM of Expr1 and Expr2 : ", LCM)
    print("f(x)*g(x) = ", factor(expression1*expression2))
    print("(f(x)*g(x))/GCD = {0}/{1}".format(factor(expression1*expression2),GCD))
    LCM = simplify((factorsExpr1*factorsExpr2)/GCD)
    print('Finding LCM using (f(x)*g(x))/GCD" : ', LCM)
    return LCM
GCD = findGCD(expression1, expression2)
LCM = findLCM(expression1, expression2, GCD))
######## OUTPUT #############
########### Find GCD ############
factorsExpr1 :  (x - 2)*(x + 6)
factorsExpr2 :  (x - 3)*(x - 2)
GCD :  x - 2
########### Find LCM ############
LCM of Expr1 and Expr2 :  (x - 3)*(x - 2)*(x + 6)
f(x)*g(x) =  (x - 3)*(x - 2)**2*(x + 6)
(f(x)*g(x))/GCD = (x - 3)*(x - 2)**2*(x + 6)/x - 2
Finding LCM using (f(x)*g(x))/GCD" :  (x - 3)*(x - 2)*(x + 6)

Inspiration

At Isaiambalan school a project on value with Swammy Krishnan Maharaj was started last week(20190615) and children along with teachers were split into six groups each with a specific title . Our group was given the topic “True Education” whose avatar was “Narasimha”. Each group had a set of values and their corresponding meaning in terms of the groups name.

The following was ours:

1. Respect: Respect your parents, teachers, and elders
2. Love: Love your Country, your culture and your ancestors
3. Self Discipline: Discipline your body, your senses and our mind.
4. Self Control: Control your words, your thoughts and your actions.
5. Faith:Have faith in yourself, in others an in god.
6. Discrimination: Discrimination between good and bad, real and unreal, vice and virtue.
7. Concentration: Concentrate whole heartedly while studying or playing.
8. Truthfulness: Be truthful in words and actions.
9. Hard work : Work hard to acquire knowledge, skills, and wisdom.
10. Strength : Be strong physically, mentally, intellectually, morally, and spiritually.
11. Conviction: Have conviction in the power of goodness, purity, and honesty
12. Devotion: Have devotion for duty, scriptures, holy people and God.
13. Habits : Cultivate regular habits of prayer, meditation, and reading inspiring and strengthening literature.
14. Same Sightedness: Feel the presence of the divine in all beings and treat them with the same standard as you treat yourself.
15. Firm Determination: Have firm determination strong will power to cultivate good habits in order to achieve permanent happiness, peace, success and fulfillment in life.

Children were asked to write what they understood of these and we shared in group what it meant for each person and translated it to Tamil.

Today(20190622) we read the story of Prahlada and the children were asked to reflect on it by next Saturday.

Link to story : Prahlada

During sleep over (26/06/2019) our team drawn the story. In that story we captured the main thing and drew it. Whatever question we had regarding the story we asked and it got clarified by Anita. On saturday (29/06/2019) we discussed the question we came up and it got clarified. We started preparing the script for drama. We wrote a script with help of our children and teachers.

to be cont..

Group members : Saranya, Kishore, Pravin Kumar, Vasiga, Monkia, AasisKumar, Jagathambal, Sanjith, Prajan, Vimal and Sundar

Session On New School Software and 7th Grade scratch Course

~Saranya

In STEMland we give freedom to children to choose their plan on their own.  Using the software children choose their plan for a week and they will work according to their plan. We build a software for children to track their progress. The software which we built was having small issues on uploading data also we did it manually, so we wanted to do it automatically.  We got suggestion from our team and children. It took 4 months to complete the new school software.

Home Page

We had a session with 9th Grade on New school software. Children said it was more comfortable than the old software.

Make Plan Page

7th Grade children are new to STEM land, so we wanted them to start from Scratch. We explained what is STEM land and ground rules of STEMland. Sundar and Logeshwari started the Scratch course and I supported them to organize the laptops in STEMland. There were five groups. In each group they gave one task. 6 Children from 7th Grade choose to come at during their activity period also. During the activity period they were doing their scratch project eagerly and I supported them to complete their task.

GCD Scratch program

GCD program:

Counting number iteration( in step variable) taken to calculate GCD using Euclid’s Division Algorithm.

Draw rectangle for given two numbers and then draw squares using GCD value to show “Two given and their product” are divisible by GCD.

Link to scratch code : link to program

 

An alternate scratch program, user name : udavi

Ranjith / Sundar

MEDAIYIL THISAIMAANI 2019

~saranya

Logeshwari, Vasantharaj, Alex and I went to present our paper in the ‘Medaiyil Thisaimaani’ program. There were full of govt.school teachers from various school. We (we refers to logeshwari, vasantharaj, alex and saranya) got an opportunity to talk about our school (Isai Ambalam) on first day first program. We shared what we do and what method we follow at our Isai Ambalam school.

We were able to deliver everything also we were able to complete it on time. We had a panel discussion in the afternoon. Govt.school teachers presented their paper to everyone. They also shared what they do and what method they follow in their school.

Reflections:

Saranya

(i) I was able to be on time for the Seminar. I was able to deliver what I want and I was able to complete it on time. I was able to interact with people from different social profile.

(ii) Our presentation went well and it was well received. We had questions from different people also one teacher inspired by our project (world map). They wanted to have same world  map in their school. Interacting with many people and I met my school headmaster.

(iii) I would like to practise before hand for presentation.

Logeshwari

This is the first time I am presenting about Isai Ambalam School outside. I learnt what it would take to give out a presentation to people. It was a good learning experience to become aware of the teaching methods in many of the government schools.

What I did well.

I presented my part of slides in the presentation well other than I expected.

What went well.

The day was started with our presentation and it went well and was received well by the audience.

What I will do differently.

Put time for preparation

Vasantharaj

I didn’t even think about teaching and teaching methods in Government school. In ‘Madaiyil thisaimani’ most of the teachers are from the government school. They have been following different methods, this surprised me a lot. I learnt that Education is practical and the students enjoy the Joy of learning. One science teacher presented a paper “Innovative participatory assessment techniques for science learning” that inspire me a lot. They created their own website and students published their projects. He also explained how to generate QR code for the website. This makes students more curious towards the science. This program makes me perspective of thinking towards how to take classes more interactively.

Alex

I learnt many teaching methods from experienced teacher’s. It’s very useful for me. This program is out of my expectations because is that my first presentation and best experience for
me.
I learned a study on soil,Soil profile, Moisture contents, Pond eco system, etc and then I learned
natural and healthy foods.
in the three days very useful for me. Every day I learnt new things from this workshop.

Programming4matheducator Day 8

Day 8:

The day started with reflections from the previous day and then Integrity lens was introduced, Poovizhi handled the session.

Then the teachers presented their projects.

The closing for the workshop began with creating my new narrative with drawing our hands and coloring in values which we stood for. Then it was passed on to all the participants and they each wrote what they saw in us. Once everyone got their sheet back it was amazing to read all the values.

Then we broke for lunch and the session came to a closure, but the participants had requested to conduct a session on Arduino with snap.

Then the Arduino was introduced (Digital and analog pins) the task was to make an LED blink for one second. Then to blink 3 LEDs consecutively. Once that was too achieved fading the LED was done. The participants had a sense of accomplishment with wires and bread boards and LEDs. Then Ram stood up and gave a spiel of thanks for the organization team and invited us to Sitiling.

Support A Child – Reflections

The Support A Child program for Isai Ambalam School started in August 2018 which is supported by Asha for Education, Bangalore. We started the program for support for 68 children of phase one (children from 3rd grade to 8th grade). Once all the students got supported we started the second phase of children 60 (children from creche to 2nd grade). With the kind support of 69 donors we got support for all the children in Isai Ambalam School.

We attended a course on WordPress and learnt how to build websites and pages. We built the SAC page in Asha for Education, Bangalore. Saranya, Sanjeev and I worked on it. From the learning of the course some of them was easier to do but some of the other things like automating the donation and tracking the supported/Not supported child was difficult for us. We learnt many features in website building like FAQs, Menu, Header images, Body texts, Buttons, Form Submit, Auto response when the form is submitted and so on. We got the website ready and launched the program in Isai Ambalam School.

After launching the program we created accountabilities. There were many tasks involved in this whole process. We had to communicate with the donors, check/track the donations, collect receipts, communicating with teachers in Isai Ambalam, send student information,etc. Saranya and I have accounatbilities  separately and work on it together.

-Reflections from Logeshwari

What I did well?

I made the SignUp form in WordPress and learnt how to send auto response when the form is submitted. Collaborated with Saranya and making the whole web pages in WordPress and running the program along with her. Sharing what I learnt when doing the website pages to her. Created the Google Sheets in which the colour changes of students not supported to red and supported children to green when we no and yes respectively.

What went well?

The kind support of all the donors. Some donors picking more than one child. This is the first time I’m running a SAC program and handling financial details.

What will I do differently?

To communicate with the respective people who all are involved and reduce the gap in between. To set up deadlines for the tasks and work on them.

-Reflection from Saranya

What did I do well?

This is the first time I am running Support a child programme. I learnt how to use contact form, change font size and header images along with Logeshwari. I worked on the web page (uploading google xlsx into the page, . We planned and worked together. We learnt to know each other skills and we splitted up the  task. I learnt to use filter in google sheet. During this period I learnt a lot. It help me to reflect myself.

What went well?

-Sign up page, Aautomation (filtering the child ) and we expected one donor choose one child but some donor picked more that 4.

-Responding to the donor.

-Sending update to the donor.

Where to improve?

Send newsletter on time.

Visit to Vedandhangal

-Arun

Children of Isaiambalam school have been studying about birds for some days. The 4th grade children were learning about local birds and their habitats. They were also interested in learning about beaks and legs of different birds and why they are different. We gave them access to computers, books and bird cards to learn and research. We also showed them documentary on Humming birds. They were fascinated to see humming birds being so swift in flight. Since they have learnt about flowers in the past children also picked up the fact that humming birds and flowers are interdependent on each other. Children cut out shapes of birds and hung them in strings to make them fly. Some of them were very happy to draw birds and colour them.

We also decided to take the children to Vedanthangal to visit some of the migrating birds.