Posts

Showing posts from September, 2022

Simulating a spider web

Image
  A friend shared a video of a spider making web. Found the equations for drawing different components of the web. The figure above was drawn by the following code in R. -------- # Code based on material provided by Andrew Chambers # https://ibmathsresources.com/2021/09/10/weaving-a-spider-web/ # 30 Sep 2022 graphics.off() # First make a graph paper where the web shall be drawn plot(1,1, type="n", pch=".", xlim=c(-15,15), ylim=c(-15, 15),       xlab="", ylab="", axes=F) for(i in (-15):15) {   if(i%%5==0) {     mycol = "gray80"   } else {     mycol="gray90"   }   abline(h=i, v=i, col=mycol) } # Straight lines passing through sharp points # formula for getting the lines # Note: In the tutorial, this was drawn at the end # However it is drawn first here to make it consistent # with the video of actual spider's work today get_slope = function(p) {   numr = sin(9*pi*p/5)-9*sin(pi*p/5)   denr = cos(9*pi*p/5)+9*cos(pi*p...

View of opposites

Image
What is light becomes obvious, when one knows the darkness. A child learning to recognize mango, is also shown fruits that are not mango. The logic of opposites is given to us since childhood. In the form of Do's and Dont's. One prescription: Eat only when hungry. What happens when I am not hungry,  but others beside me are having popcorn and soda, sitting inside a theater watching action-packed sequence? In a binary setting,  one is either right or wrong. Speak the truth. What is falsehood? I say something to brighten a friend who is feeling low. Did I tell a lie? Once someone did something so extraordinary that I did not have appropriate words of appreciation. I said, "Well done, proud of you."  Wanted to say much more, but words eluded me. At times the truth cannot be spoken, but clearly felt. Someone had said, Literature is that falsehood through which one reaches the Truth . Literature is a mirror of life. Life is so mixed with true and false, and a lot of thing...

The difficulty of being simple

Image
It is said that there is a great beauty in simplicity. Also, the advice: simple living, high thinking. It is not easy to be simple in life. Whenever a decision must be made, there are choices to be considered. In this digital age, there are usually many choices available. If I want to buy something, I go online, and find so many options. I choose a product that looks okay. Then I read the review. If the review is bad, go back to the search. Life is an MCQ examination, each question with dozens of choices, and there is no answer key.   Or there is a person whom I trust. Then it is simple. Let this person be called S. For any question, ask S. S can answer all my questions, including those where S has no expertise. Simplicity can be counterproductive.   Or, I study and think, what life is about. What is my task at hand, and the reason of existence. Work for a living. Enjoy with friends and family. Live a bit for myself, a bit for others. ...

On death and existence

Image
Everything that is born, exists, grows, slows, and dies. Between birth and death, lies what we call life. I, like many other people, believe in rebirth. Then it can be said: everything that is dead, shall be born again. So, then there is a period between death and the next birth. We do not know much about that period. If one believes in rebirth, one believes in cycles of life and death. Is this a random process, or there are laws of these cycles?   In my country, there are seasonal worships. A statue is made of clay and brought to life. The statue becomes a deity, full of divine energy. People stand in awe, emote, and rejoice. They share food and dance together in happiness. People recognize the presence of an energy higher than oneself that has descended among them. And they become part of that energy. Then the time comes for the energy to leave. The statue becomes life-less. It is usually immersed in water. The clay goes back to earth. It i...