HNHacker News
TopNewBestAskShowJobs

vivekkannan

37 karma · joined November 2, 2014

submissionscomments
vivekkannan··on Show HN: Calc, a simple command-line calulator in C
changed it. thanks.
vivekkannan··on Show HN: Calc, a simple command-line calulator in C
I checked division by zero initially, but then realised that 1/0 causes double to represent inf. Thought that this could be useful(?) in some situations. For example, atan(1/0) --> 1.57... instead of error.
vivekkannan··on Show HN: Calc, a simple command-line calulator in C
fixed both. thanks for pointing it out. I have just been told about wacky header files. will changing calc.h to calc.c make things less wackier?
vivekkannan··on Show HN: Calc, a simple command-line calulator in C
duly noted. will change it ASAP.
vivekkannan··on Show HN: Calc, a simple command-line calulator in C
Obviously, bc is much more capable than calc. However, calc was not created to replace or even compete with bc or any other awesome command-line calculators. calc is my way of learning a bunch of stuffs (shunting yard).