Home
Screenshots
Showcase
Features
Download
Purchase
Online Community
Documentation
Contact Us
Download the free trial version
Features
Tutorials and manuals
Showcase
Screenshots
Android Development Forum - Basic4android
>
Basic4ppc (Windows Mobile)
>
Questions (Windows Mobile)
Exp() function
User Name
Remember Me?
Password
Documentation Wiki
Register
Members List
B4P Search
Today's Posts
Mark Forums Read
Questions (Windows Mobile)
Post any question regarding Basic4ppc.
Exp() function
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
06-05-2008, 05:52 PM
Bruno
Junior Member
Join Date: Apr 2008
Location: FRANCE
Posts: 13
Exp() function
Hi there,
A simple question :-)
How to compute the exp() function in Basic4ppc ?
exp(1) = 2.718281828459045
exp(-1) = 0.36787944117144233
Many thanks,
Bruno.
#
2
(
permalink
)
06-05-2008, 06:02 PM
agraham
Basic4ppc Expert
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Total Awards
: 3
Like this
Quote:
Originally Posted by
Bruno
exp(1) = 2.718281828459045 = cE^1
exp(-1) = 0.36787944117144233 = 1/cE
#
3
(
permalink
)
06-05-2008, 06:10 PM
Bruno
Junior Member
Join Date: Apr 2008
Location: FRANCE
Posts: 13
Thanks Agraham, but ...
I have a formula with something like
result=exp(tmp)
tmp can be positive or negative.
How calculate result?
Bruno.
#
4
(
permalink
)
06-05-2008, 06:18 PM
Bruno
Junior Member
Join Date: Apr 2008
Location: FRANCE
Posts: 13
Is this ok
for:
result = exp(tmp)
in Basic4PPC
result = cE^(tmp)
Bruno.
#
5
(
permalink
)
06-05-2008, 06:21 PM
agraham
Basic4ppc Expert
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Total Awards
: 3
Quote:
Originally Posted by
Bruno
tmp can be positive or negative
Code:
Sub
exp(num)
If
num <
0
Then
Return
1
/(
cE
^
Abs
(num))
Else
Return
cE
^num
End
If
End Sub
#
6
(
permalink
)
06-05-2008, 07:03 PM
Bruno
Junior Member
Join Date: Apr 2008
Location: FRANCE
Posts: 13
Thanks a lot Agraham.
Bruno.
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
On
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Function Key
eillezcas
Questions (Windows Mobile)
0
08-27-2008
08:28 PM
Help with Math function
go4saint
Questions (Windows Mobile)
2
03-31-2008
09:15 AM
Combinations function
derez
Share Your Creations
0
02-04-2008
11:40 AM
Round function
klaus
Questions (Windows Mobile)
3
11-15-2007
11:42 AM
Filter function in sql.
belotrei
Questions (Windows Mobile)
0
06-02-2007
01:17 PM
All times are GMT. The time now is
09:47 AM
.
Contact Us
-
Basic4android - Android programming
-
Top
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by
vBSEO
3.3.0
LinkBack
LinkBack URL
About LinkBacks