Language Selection

English French German Italian Portuguese Spanish

Command line calculator for Linux, calculate big with bc

Filed under
Software

If you’re a command line freak, you’ve probably use expr for common math calculations but did you know that the bc command allows you to do similar math calculations and is more powerful when it comes to bigger calculations?

The nice thing about bc is that it accepts inputs from files, from standard output and this allows the command line user to pipe data out for quick calculations. The syntax for basic calculation is very similar to Google’s calculator.

Here are some basic examples:




More in Tux Machines

FreeBSD 10.1 Has The New VT Driver, Hardware Improvements

Released this past week was the first beta of FreeBSD 10.1. If you haven't yet had time to explore this development release, there's a lot of improvements over FreeBSD 10.0. Here's some of the features that interest us the most about this forthcoming FreeBSD 10 update: - The driver for FreeBSD's new VT console has been added. The new VT hasn't been enabled by default but for now still requires setting a special parameter. - The ported-from-Linux Radeon DRM/KMS driver now has support for 32-bit ioctls so 32-bit OpenGL applications are able to run on a 64-bit FreeBSD system. - Various hardware-related improvements from Turbo Boost enabled Intel CPUs to PowerPC 970 CPUs to Atom Silvermont to Apple books saw different changes. - Bhyve virtualization improvements. Find out more about the recent FreeBSD 10 changes via the stable release notes. FreeBSD 10.1 is expected for an official unveiling on 29 October. Read more

Android tablet records and recreates 3D scenes

Mantis Vision and Flextronics unveiled an Android-based “Aquila” tablet based on Mantis’ MV4D 3D engine that uses a 3D sensing system to recreate 3D scenes. So-called 3D tablets, which display 3D video and other content with or without special glasses, never hit it big among consumers. Now Israeli 3D vision technology firm Mantis Vision and manufacturer Flextronics have built a different kind of tablet called the Aquila. It not only displays 3D content, but records, recreates it, and lets you manipulate the image in 3D or integrate it into applications. Read more

REVIEW: How to turn a Raspberry Pi in to an NSA-proof computer

One of the Pi's key attributes is its price of around £30. It is the nearest thing we have to a disposable computer and several can be used cost-effectively in a single project. A recently publicised use is the creation of a string of Raspberry Pi honeypots for detecting hacker activity on a corporate network. Given CW's enduring preoccupation with the surveillance programs of our Establishment masters, would it be, could it be possible to create a disposable, network-invisible computer? Read more

Android L