Results 1 to 4 of 4
  1. #1
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    140

    Default Math power method?

    I am currently writing a heuristics method and I am looking for someting similar to the CMath.pow method. I am looking for something I can pass a base value into and the power I want it multiplied to. I noticed there is a PowerOfTwo method but not just a pow method. Is there one that I'm just not having any luck finding?
    Last edited by xtr33me; 03-29-2011 at 10:02 PM.

  2. #2
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,986

    Default

    isn't x**y a standard syntax? this is like the 5th time i've heard this question this week, but i thought it was a universal syntax for power
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  3. #3
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    140

    Default

    Wow really? I have never seen that Thanks as always!

  4. #4
    God King
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    4,133

    Default

    Yeah, came up with that as well lately. I figured it would be the Exp() function, but that one takes e as base. Which was actually what I wanted for a logistic function anyway, although I realized then that I'd be better off with a Sin()-based equation to achieve what I want.

    The ** is harder to get into your mind if you never had to use it before.
    Our Loop, which art in source code, hallowed be thy keyword.
    Thy condition come, thy instruction be done, in RAM as it is in cache.
    Increment us this day our daily counter,
    and forgive us our typos, as we also have forgiven our compilers.
    And lead us not to the nullpointer but deliver us from bugs.
    For thine is the API, the GUI, and the CLI while(true).
    Semicolon;
    Please don't send me questions about how to do something in the UDK via PM. That is better discussed in the forums and we only have limited PM storage.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.