Mono and Poly pow(x,n) modules...

Until our dedicated user library is in place you can post examples and modules here

Moderators: electrogear, exonerate

Mono and Poly pow(x,n) modules...

Postby Shifrin on Fri Jul 15, 2005 9:36 am

Hi,

OK, here's a pow(x,n) modules that raises 'x' (|x| > 0.0) to the power of 'n'. Written in the assembler component. Let me know of any problems!

MonoPolyPow.osm

Shif.
User avatar
Shifrin
smaniac
 
Posts: 1498
Joined: Sun Mar 06, 2005 1:54 pm
Location: Newcastle, UK

Postby beno on Fri Jul 15, 2005 9:38 am

Thanks Shif!
User avatar
beno
essemist
 
Posts: 123
Joined: Sun Nov 28, 2004 6:05 pm
Location: Victoria, BC, Canada

Postby Shifrin on Fri Jul 15, 2005 10:25 am

Updated, the mono version is now 4x faster, and considerably faster than the original code component version I posted :wink:

Shif.
User avatar
Shifrin
smaniac
 
Posts: 1498
Joined: Sun Mar 06, 2005 1:54 pm
Location: Newcastle, UK

Re: Mono and Poly pow(x,n) modules...

Postby infuzion on Fri Jul 15, 2005 11:02 am

Shifrin wrote:Written in the assembler component. Let me know of any problems!
Wowzers, great work! Where did you learn assembly (might as well just post the links directly in the WiKi ;)

2 minor notes:
1. IMHO, the n & x connectors should be switched: top-bottom=left-right, but I'm not a programmer, perhaps your order is standard in other interfaces.
2. Great that you included tooltips... even better if you included your name for credits & version number :)

cheers
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Postby Shifrin on Fri Jul 15, 2005 11:26 am

This is a great resource for learning assembly, download one of the versions :-

http://webster.cs.ucr.edu/AoA/Windows/index.html

I put the connectors in the order I did as this is the same order the connectors of the float 'pow' maths function, intuitively I see x raised to the power of n, hence the n being the top input. Very easy to change around though :wink:

Shif.
User avatar
Shifrin
smaniac
 
Posts: 1498
Joined: Sun Mar 06, 2005 1:54 pm
Location: Newcastle, UK

Postby platinumears on Fri Jul 15, 2005 11:35 am

:D :D :D :D
User avatar
platinumears
essemilian
 
Posts: 234
Joined: Thu Apr 21, 2005 12:52 pm

Postby Tom7777 on Fri Jul 15, 2005 1:23 pm

Thanks :)
Tom7777
smychopath
 
Posts: 3936
Joined: Wed Mar 16, 2005 10:46 pm

Postby infuzion on Fri Jul 15, 2005 7:47 pm

Shifrin wrote:I put the connectors in the order I did as this is the same order the connectors of the float 'pow' maths function, intuitively I see x raised to the power of n, hence the n being the top input.
Ok, you win; the Float Power primitives have the same input layout. :) Speaking of which...
Image
Looks much sexier, doesn't it? I did a bit of text editing to have the connectors & tooltip echo the primitives. Does anyone know the font the primitives use? Arial has sharp bottoms, while the primitives have rounded... (use extreame zoom) Hopefully someday, we can move the connectors around.
http://rapidshare.de/files/3085607/Mono ... n.osm.html
(open the link in a new tab/window, scroll to the bottom, then click on {Free}. The link will be on the bottom of the new page. Auto-deleted after 20 days.)

Thanks for that great link Shif! Any more assembly links from others would be useful. TIA
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Postby Shifrin on Fri Jul 15, 2005 11:24 pm

That's cool :D

I'd actually tried something similar with another component I was making but left it due to not being able to make the output connector centralised, if you know what I mean. Still, it looks good!!!

Cheers!

Shif.
User avatar
Shifrin
smaniac
 
Posts: 1498
Joined: Sun Mar 06, 2005 1:54 pm
Location: Newcastle, UK

Postby infuzion on Sat Jul 16, 2005 2:07 am

Thanks for the thanks Shif :) If you make some assembly for me, I'll "skin" for you ;)

Hmmm, my white circle is missing a shadow... I wonder if it is worth it (file-size wize)... any comments?
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Postby Shifrin on Sat Jul 16, 2005 9:22 am

infuzion wrote:Hmmm, my white circle is missing a shadow... I wonder if it is worth it (file-size wize)... any comments?


I wouldn't have thought the shadow would take up that many bytes - it'd just be a few extra modules - try it and see :wink:

Shif.
User avatar
Shifrin
smaniac
 
Posts: 1498
Joined: Sun Mar 06, 2005 1:54 pm
Location: Newcastle, UK

Postby skOre on Sun Jul 24, 2005 7:48 am

Just wanted to add here, that in the module pack version of these, I took out the (V)To Parent, to avoid the pow-sign to be shown on the gui.
Image
Support me and other developers by subscribing to our community at audiooak
User avatar
skOre
smaniac
 
Posts: 1504
Joined: Thu Mar 31, 2005 1:46 pm
Location: Germany

Postby infuzion on Sun Jul 24, 2005 8:23 am

skOre wrote:Just wanted to add here, that in the module pack version of these, I took out the (V)To Parent, to avoid the pow-sign to be shown on the gui.
Ooops, silly me, a copy/paste addickt! :)
Thanks for catching that skOre.
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: Mono and Poly pow(x,n) modules...

Postby RJHollins on Mon Mar 11, 2013 11:22 pm

All Links down ....

Drats :(
RJHollins
essemist
 
Posts: 133
Joined: Thu Mar 08, 2012 6:58 pm

Re: Mono and Poly pow(x,n) modules...

Postby MegaHurtz on Tue Mar 12, 2013 2:48 pm

These are the standard ones found in the toolbox.
Visit my website at: http://www.schlukhash.nl
User avatar
MegaHurtz
smaniac
 
Posts: 1506
Joined: Mon Aug 11, 2008 5:29 pm
Location: Eindhoven/Netherlands

Next

Return to Examples

Who is online

Users browsing this forum: No registered users and 0 guests