Lasso Soft Inc. > Home

[lp_math_antilog]

Linklp_math_antilog
AuthorBil Corry
CategoryMath
Version8.x
LicensePublic Domain
Posted23 Dec 2005
Updated23 Dec 2005
More by this author...

Description

Returns the natural antilog of a number.  Optionally can choose any base.

Requires [lp_math_e], [lp_decimal_precisionset]

Sample Usage

lp_decimal_precisionset: (lp_math_log: 5), 64;
'
'; lp_decimal_precisionset: (lp_math_antilog: 1.6094379124341004), 64; '
'; lp_decimal_precisionset: (lp_math_log: 9, 3), 64; '
'; lp_decimal_precisionset: (lp_math_antilog: 2.0, 3), 64;

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

[

define_tag:'lp_math_antilog',
		-description='Returns the natural antilog of a number.  Optionally can choose any base.',
		-priority='replace',
		-required='decimal',
		-optional='base';

	// http://mathforum.org/library/drmath/view/52632.html
	
	if: !(local_defined:'base');
		local:'base' = lp_math_e;
	/if;

	return: lp_decimal_precisionset:(math_pow: (decimal:#base), (decimal: #decimal));

/define_tag;

]

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft