Category Archives: Programming

How to use “simplify” and “expand” commands in Sagemath

Posted in Algebra, Programming | Tagged | Leave a comment

Sagemath for Multivariable Calculus

Posted in Multivariable Calculus, Programming | Tagged | Leave a comment

Using Symbolic Package with Octave

Posted in Programming | Tagged | Leave a comment

Reversing string in C

Posted in Algorithm, Computer Program, Programming | Tagged | Leave a comment

atoi (alphabet to integer in C)

Posted in Algorithm, Programming | Tagged | Leave a comment

Fun NPTEL Problem on Prime Separation

Complete the C program which takes size of the array and array elements as input and puts the prime and composite elements of the array in two separate arrays (according to their occurrence in the input array) .For example:If size … Continue reading

Posted in Programming | Tagged | Leave a comment

Drawing a Star (NPTEL TEST Problem)

Write a C program to print X star (*) pattern series using loop.  Where number of rows (N) upto the mid-point of X pattern is taken from the test cases. Also print the line number at the end of each rows. … Continue reading

Posted in Programming | Tagged , | Leave a comment

All about swapping variables, using temp, without temp, call by value and call by reference.

Posted in Programming | Tagged | Leave a comment

Programming Hack: Finding the first and the last digit of an integer.

Last digit: One can do this by realizing that the % operator in C returns the remainder. So to find the last digit all one has to do is Last_digit = number%10 First digit: It requires a little bit of … Continue reading

Posted in Programming | Leave a comment

Classifying Triangles

This is a simple program to check for given sides if the triangle is possible or not. If possible then it can classify as Right Angled, Equilateral, Isosceles or Scalene.

Posted in Computer Program, Geometry, Programming | Tagged , | Leave a comment