Skip to main content
Filter by
Sorted by
Tagged with
3 votes
2 answers
253 views

I’m building a simulation in BPTK-Py and need a power with a variable exponent inside a node equation: Resale_Value_DM1.equation = 1 - Depreciation_DM Resale_Value_DM2.equation = Resale_Value_DM1 ** ...
Teguh Juang Sinaga's user avatar
0 votes
1 answer
41 views

I am using pow package for auth. I am trying to logged in user after confirms email instead of redirecting login page. This is controller callback method def before_respond(PowEmailConfirmation....
Aashish Chakravarty's user avatar
1 vote
0 answers
66 views

Java 8 floating-point calculations for the Math.pow method show inconsistent results between x86 and ARM platforms. Due to historical reasons, calculations were previously done on x86 architecture, ...
halibobo1205's user avatar
1 vote
1 answer
117 views

As a beginner in C, I made my own pow function. The type of arguments in the function and the return value are all long long int. Here is the code: typedef long long int lli; lli p0wer(lli base, lli ...
anonymouscake20000000's user avatar
0 votes
1 answer
127 views

I want my pow2($a,$n) function to call [math]::pow($a,$n) so I wrote this : function pow2($a,$n) { return [math]::pow($a,$n) } But when I call it I get this error : PS C:\> pow2(2,10) Cannot ...
SebMa's user avatar
  • 5,013
1 vote
1 answer
147 views

I have tried writing a java program to find a number is power of two the one which i mentioned below. I am passing number as 2147483647 and the output of my program is returning true instead of false....
Pazhani_Kumar's user avatar
0 votes
1 answer
68 views

The following C program unexpectedly shows different results when pow() is used in main() and when it is used within a user-defined function: /***************************************************** * ...
Rather Vi's user avatar
0 votes
0 answers
153 views

I have been trying to solve a basic Armstrong problem in C++ using the pow() function. I'm encountering unexpected behavior while implementing a solution to compute Armstrong numbers in C++ using the ...
Adityan Verma's user avatar
1 vote
0 answers
65 views

I have this solution, in nineteen languages. I needs a pow() function (or operator) to calc from increase to interest rate and from interest rate to increase. The only language I can't calc it is in ...
Ricardo Erick Rebêlo's user avatar
1 vote
2 answers
173 views

I'm trying to create a mortgage calculator in Java, but I'm having trouble with a math problem. In essence, I need to raise to power a double but can't. I also tried (Math. pow) but it returns ...
Bell O.T.'s user avatar
0 votes
1 answer
122 views

I'm trying to use values generated by an RSA algorithm in python by using python's pow function with 3 arguments but it doesn't seem to be returning correct values for large numbers. For example if I ...
Quibbs's user avatar
  • 13
-1 votes
1 answer
241 views

Here is my exmaple: pow(100, -1 , 321) # output 61 pow(100, -1) % 321 # output 0.01 100 ** -1 % 321 # output 0.01 I know that pow(x, y, z) should be equal to pow(x, y) % z or x ** y % z, but in my ...
L-ING's user avatar
  • 13
0 votes
1 answer
82 views

class Solution { int mod = (int) (1e9) + 7; int modPow(long base, long exponent) { if (exponent == 0) return 1; long result = 1; while (exponent > 0) { ...
Hemanthkumar Pujari's user avatar
0 votes
0 answers
192 views

I'm getting ValueError: math domain error while running code like the one below (I simplified it): import math def f(x): return math.pow(x, -4) for i in range(10): print(f(i)) Also, I ...
Rumata_VII's user avatar
-1 votes
2 answers
198 views

Power function always giving a zero(0) as result no matter the input. I am learning the power function, but it doesn't work.please help. #include <stdio.h> #include <math.h> int main() {  ...
N-CODER's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
47