Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.234.078 Times

Automatic UNITS conversion 1.0

  Date Added: June 28, 2013  |  Visits: 456

Automatic UNITS conversion

Report Broken Link
Printer Friendly Version


Product Homepage
Download (41 downloads)



Eliminate UNITS related errors in code, through automatic units conversionA UNIT class is defined to automatically perform units conversion into the MKS system (metre,kg,sec).I aim to solve the problem of using, say, mm instead of m, or converting mm to inches.This is also a problem during plotting, because of the need to keep track of the unitsof what is being plotted.For this reason I like to define all variables into the MKS system by writing:diameter = 10.0 * mm;This is an automatic conversion into MKS, while still allowing me to think in mm (or grams, N, inches ...)If the value of mm is 1e-3, then the value of diameter is 1e-2, which, experessed inmetres is = 10 mm. (everything is fine)From this point onward all the calculations that use 'diameter' can be done in the MKS,avoiding any "order of magnitude error". The syntax above is also particularly useful ininput files where a lot of scalar parameters are defined. It provides a lot ofinformation at a glance.When a variable needs to be displayed or plotted the following syntax can be used:disp(diameterVector/mm)orplot(diameterVector/mm,lengthVector/mm)Also it is possible to perform units conversions in functions or on the command line.For example the following statement converts 10 mm into inches>> 10 * mm/inans =0.3937all of this is not a my invention, being in use in at least another software. I adoptedit because for me it works very well.This new submission allows to create composite units, like:typing: kg/mm^3will display: kg/(mm^3) = 1.000000e+009in this case the class returned variable is 'COMPOSITEUNIT'Other examples:typing: kg*m/sec^2 / (kg/mm^3)will display: kg*m/(sec^2)/(kg/(mm^3)) = 1.000000e-009in this case the class returned variable is 'COMPOSITEUNIT' or: kg*m/sec^2 kg*m/(sec^2) = 1.000000INSTALLATIONTo implement the syntax above I created a class called 'unit', which must be saved intoa directory called 'unitClasses'. The directory 'unitClasses' must be added to theclasspath.The function 'unitClasses@unitprivategetStructure.m' contains a comprehensive list ofunits, which can be extended as suitable.Then by calling the method 'update(unit)', a number of classes will be created, one foreach of the units defined in 'getStructure'.You might then have to type:'clear classes''rehash toolbox'the updating can be done at any time a new unit is added to the function 'unitsList'.from now on every time a syntax like 'diameter = 10.0 * mm;' is used a unit conversionis made.More info in the README.txt fileYour feedback is welcome

Requirements: No special requirements
Platforms: Matlab
Keyword: 1000000e009in 1000000e2b009in Composite Compositeunit Create Created Display Examplestyping Implement Installationto Kgmm Kgmsec Kgmsec Kgmm Liketyping Returned Statement Submission
Users rating: 0/10

License: Freeware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


AUTOMATIC UNITS CONVERSION RELATED
Database Tools  -  myDBR for Scripts 1.4
This database reporting tool can automatically create and display reports for both MySQL and MsSQL databases, but can also display them in regular browsers and mobile devices.Here are some key features of "myDBR":dlTE Automated layout creation,...
3.02 MB  
Networking  -  BuddyPress Registration Options 3.0.3
A WordPress BuddyPress plugin that allows for new member moderation, if moderation is turned on from the admin settings page, any new members will be blocked from interacting with any buddypress elements (except editing their own profile and...
10 KB  
Communication Tools  -  Love Display Picture Creator 1.0
Love MSN Display Picture creator allows you to easily and instantly create your very customized, love related MSN Messenger Display Pictures. There are four different types of display pictures to customize such as names and initials in hearts, or...
206 KB  
Modules  -  Views clone display 6.x-1.1
This module provides utility to clone the display of views. It's really simple you just need to click the Clone button in the display and create a display identical. It is very useful when we change displays similar but in some field.
10 KB  
Modules  -  Memetracker 1.0
The module's purpose is to find and display to a community in real time the most interesting conversations and memes within the community as they emerge. Memetrackers seeks to emulate the functionality of successful commercial memetrackers such as...
 
Graphs and Charts  -  Cacti - RRDTool Interface for Scripts 0.8.6j
Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database.The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and...
1.07 MB  
Graphs and Charts  -  Cacti - RRDTool Interface Script 0.8.6j
Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database.The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and...
1.07 MB  
Modules  -  WordPress Thumbnail Slider 1.1
WordPress Featured Tumbnail slider can be used to create thumbnail slider on your wordpress blogs using which you can display featured images or banners on your wordpress blog.DEMO * Demo With Navigation WordPress Thumbnail Slider Install : 1....
133.12 KB  
Email  -  Tellmatic for Scripts 1.0.8.5
All newsletters are created from the browser using a WYSIWYG interface (tinyMCE).Images and attachments can be easily added to the newsletters. Newsletters are stored in groups for e.g. specific topics or recipient groups. Newsletters can be sent...
3.42 MB  
Home & Leisure  -  ediTrail 1.0
Importation/Exportation: Import/export trails to gpx file. Unlimited number of trails, and TrackPoints. Export to gpx, Excel, PDF, XPS and KML/KMZ. Data table: Very flexible data table that allows sorting by columns, with inheritance of data,...
27.05 MB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  PHP Docbook Displayer for Scripts 1.0b
PHP Docbook Displayer provides XSL and CSS stylesheets, and PHP scripts, to generate easily and dynamically websites from Docbook files.It aims at simplifying to the max the web publication process : simply drop the docbook file under the site root !
102.4 KB  
Development Tools  -  WP Translate 1.0
This simple language translation plugin allows your users to quickly translate your webpages, through a widget on your blog.You have the option to select the title of the Widget, which will be displayed above the language translation form. Users...
10 KB