About 12,900 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 …

  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: #include<stdio.h> /...

  4. Negative exponent with NumPy array operand - Stack Overflow

    Mar 28, 2012 · 11 standard power operation (**) in Python does not work for negative power! Sure I could write the formula otherwise, with divide and positive power. However, I am checking …

  5. math - negative pow in python - Stack Overflow

    Noninteger powers of complex (and negative) numbers involve an important subtlety. The exponential function is injective on the real line; i.e. exp (a) = exp (b) implies a = b.

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

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

  7. Java how to compute BigDecimal to the power of BigDecimal …

    Aug 15, 2018 · BigDecimal base; BigDecimal exponent; Considering that they can have both positive and negative signums, how can I calculate the power base^exponent ? I found the …

  8. 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.

  9. Negative powers of 2 in C - Stack Overflow

    Jan 8, 2013 · A negative power denotes raising a number to a power, then inverting. The problem you run into is fairly simple: if you start with integers, this is all going to be done with integer …

  10. Creating a function to print the exponents without using

    Jul 11, 2020 · If instead you want a function that will give you the power (at least for non-negative integral exponents), you can just use recursion, knowing that the expression n p is: n * n p-1 …