About 50 results
Open links in new tab
  1. Calculate the power of any exponent (negative or positive)

    Apr 19, 2015 · 1 I want to calculate the result, given any exponent (negative or positive) and a base of type integer. I am using recursion:

  2. Dealing with negative exponents without using POW in C++

    Jan 17, 2020 · You need to do 1/(6^2) in two steps: First you calculate 6^2, that is 6 to the power of 2, the way you normally calculate with positive exponents. Then you take the result and use as divisor.

  3. C Power function negative exponent without pow() - Stack Overflow

    I'm trying to make a little power calculator for learning purposes in C without using pow, but it always returns 0.00 when exponent is negative, please help. full code:

  4. Calculating exponents in C without pow () - Stack Overflow

    Sep 23, 2013 · Calculating exponents in C without pow () Asked 12 years, 4 months ago Modified 12 years, 4 months ago Viewed 7k times

  5. Negative exponent with NumPy array operand - Stack Overflow

    Mar 28, 2012 · Negative exponent with NumPy array operand Asked 13 years, 10 months ago Modified 7 years, 9 months ago Viewed 38k times

  6. c# - Calculate power of a negative number - Stack Overflow

    when the base b is a positive real number, b to the n can be defined for all real and even complex exponents n via the exponential function Now, exponentiation of negative numbers to get a real …

  7. Is there a way to write summation using Scratch? - Stack Overflow

    Mar 10, 2023 · Works with both positive and negative exponents. I'm rusty with Scratch so there might be a better way to return from the function, but it seems like it works great.

  8. C++ program for power but without using pow function

    I'm not going to give you any code, because that won't allow you to truly explore this concept. Rather, you should use this pseudo code to implement something on your own. Create a function which …

  9. c++ - How can I write a power function myself? - Stack Overflow

    May 21, 2010 · Calculate the integer power with a loop (you can optimise it decomposing in factors and reusing partial calculations). Calculate the root with any algorithm you like (any iterative …

  10. Power function handling negative base with non integer exponents

    Aug 26, 2017 · Math.pow(), pow(), whatever it's called, a lot of languages (and calculators) have some built in function to calculate x=a^b for floats (or doubles). There's the special case of a being negative …