Page 1 of 2 12>
Topic Options
#101256 - 2003-05-06 03:29 PM The Math functions wishlist ... Part II - The Discussion
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Think it was mentioned before, but regarding the 'new' possibilities with kixforms it's about time for some functionality enhancement (supporting floating point numbers was a step in the right direction) .... soooo ... how about intrinsic:

  • sin()
  • cos()
  • tan()
  • as well as their corresponding functions (asin() acos() atan() )
  • π (Pi as ummm ... a constant ?)
  • e (as well)
  • pwr() (supporting floating point operations of course)
  • sqrt() (cdbl-enabled as well)
functions ?
Anyone else to enhance this list ?
{Maybe some statistical functions for MCA ? [Big Grin] }

[ 23. May 2003, 08:59: Message edited by: Jochen ]
_________________________



Top
#101257 - 2003-05-06 04:41 PM Re: The Math functions wishlist ... Part II - The Discussion
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh...
I think I already coded cosin...
but not sure as it was inside some triangle circle calculation routine UDF
_________________________
!

download KiXnet

Top
#101258 - 2003-05-06 05:05 PM Re: The Math functions wishlist ... Part II - The Discussion
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
What about Pi or e? Probably too complex for scripts.. [Big Grin]

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101259 - 2003-05-06 05:55 PM Re: The Math functions wishlist ... Part II - The Discussion
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
nope.
π is indeed a must.
well, it does not need to be too sharp... 10digits or so should already kick some a*s [Wink]

[ 06. May 2003, 18:05: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#101260 - 2003-05-07 07:44 AM Re: The Math functions wishlist ... Part II - The Discussion
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Don't forget -

ASIN()
ACOS()
ATAN()

too..

Now, for the Pythagorean Theorem. [Razz]

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101261 - 2003-05-07 07:52 AM Re: The Math functions wishlist ... Part II - The Discussion
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
That should be easy :

$a² = $b² * $c²

[Razz]

well, I did start once coding sin,cos,tan but with board utilities it will always be too inaccurate

[ 07. May 2003, 07:55: Message edited by: Jochen ]
_________________________



Top
#101262 - 2003-05-07 07:53 AM Re: The Math functions wishlist ... Part II - The Discussion
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Close.. [Big Grin]

$a² + $b² = $c²

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101263 - 2003-05-07 07:56 AM Re: The Math functions wishlist ... Part II - The Discussion
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yah ... I knew that would happen [Embarrassed]

One should not post too early in da morning in lack of caffeine [Roll Eyes]

Ok, replace the above with

$a² = $c² - $b² and we're in line again [Smile]

[ 07. May 2003, 07:58: Message edited by: Jochen ]
_________________________



Top
#101264 - 2003-05-07 08:03 AM Re: The Math functions wishlist ... Part II - The Discussion
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sqrt() and multipliers are nicey...
_________________________
!

download KiXnet

Top
#101265 - 2003-05-07 10:26 AM Re: The Math functions wishlist ... Part II - The Discussion
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
you mean power ?

Yeah .. easy to implement as udf.
Only easy with integer powers though so intrinsic would be nice

Oh well : pwr()

[ 07. May 2003, 10:34: Message edited by: Jochen ]
_________________________



Top
#101266 - 2003-05-07 10:34 AM Re: The Math functions wishlist ... Part II - The Discussion
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and the speed...

square root... or roots in any manner should be like zillion times faster inside the exe itself.
_________________________
!

download KiXnet

Top
#101267 - 2003-05-07 08:53 PM Re: The Math functions wishlist ... Part II - The Discussion
Anonymous
Unregistered


How about abs()

Also, it would be nice to have integers at the 2^32 range -- I have a recursive "Calculate diskspace used per directory" that I had to dial back to KB and MB sizes because some directory space used is greater than 2GB

Top
#101268 - 2003-05-07 09:16 PM Re: The Math functions wishlist ... Part II - The Discussion
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
abs()?
can you explain some more as there is already inbuild:
Abs( ) Returns the absolute value of a number

what comes to the integer, you can always use another valuetypes for larger numbers...
although larger integers would make it easier
_________________________
!

download KiXnet

Top
#101269 - 2003-05-07 09:26 PM Re: The Math functions wishlist ... Part II - The Discussion
Gniky Offline
Lurker

Registered: 2003-05-07
Posts: 1
>abs()?
> can you explain some more as there is already inbuild:
> Abs( ) Returns the absolute value of a number

You know, I searched the documentation up and down looking for that -- tired eyes, I guess.

Top
#101270 - 2003-05-07 09:40 PM Re: The Math functions wishlist ... Part II - The Discussion
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Anytime that ABS() is used.. It throws up a flag with regard to how the calc is done. Yes, it is legitmate, but of potential concern.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101271 - 2003-05-07 10:16 PM Re: The Math functions wishlist ... Part II - The Discussion
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Do you mind to elaborate what could be a possible concern with regards to calculating the ABS of a number? We're not even talking about imaginary numbers and functionality of ABS is very well defined.
_________________________
There are two types of vessels, submarines and targets.

Top
#101272 - 2003-05-07 10:17 PM Re: The Math functions wishlist ... Part II - The Discussion
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Sure.. It is just a concern when the calculation is created that the negative values are done properly.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101273 - 2003-05-14 04:50 PM Re: The Math functions wishlist ... Part II - The Discussion
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Updated above .... anything left ?
_________________________



Top
#101274 - 2003-05-14 10:42 PM Re: The Math functions wishlist ... Part II - The Discussion
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
What about conversions? Or, would this add too much "bloat?"

C to F for example...

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101275 - 2003-05-14 11:50 PM Re: The Math functions wishlist ... Part II - The Discussion
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
didn't get that ... too abstract for me [Frown]

[ 14. May 2003, 23:51: Message edited by: Jochen ]
_________________________



Top
Page 1 of 2 12>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 905 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.078 seconds in which 0.032 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org