Jump to content

Help

Featured Replies

Hi , I am working on some math stuff and I need to check some points ,

so are theses formulas correct ?

 

ISZ(x) : is it 0 ?

 

isz (x) = cos ( pi * ( (2*ceil( abs(x) ) + 1)) / 2 ) / cos(1)

 

Ins : Real number x

 

Out : 1 if x=0 , 0 if x <> 0

 

---------------------------------------------------------------

 

SGN(x) : Sign

 

sgn(x) = abs(x) / ( x + isz(x) )

 

Ins : Real number x

 

Out : 1 if x>0 , 0 if x = 0 , -1 if x < 0

more here

Dirbax

 

thanks

But things like the sign function and the dirac delta function... already exist.

  • Author

Yes but I still should mention them since I am making the basis of DIMD, an other point is trying to avoid semantic presentation of functions such as

this and go for smooth calculations

For one abs() isn't smooth, at all, neither is ceiling().

 

And why don't you want the way a function is presented to be semantic? It's not like you're saving on computability, trig functions are clearly more expensive than a check for properties that are written into the way a number is stored.

  • Author
For one abs() isn't smooth, at all, neither is ceiling().

True , I am still working on it in order to minimise the number of functions such as ceil and abs which use semantic definition .

Again, what's wrong with a semantic definition? If makes things possible to read, as well as computationally cheaper, what could possibly be wrong with it?


Merged post follows:

Consecutive posts merged

And it just occurred to me, if you're trying to define discontinuous functions as compositions of continuous ones, it can't be done.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.