Questions tagged [exponent]

Exponentiation is a mathematical operation, written as b raised to the power of n, involving two numbers, the base b and the exponent (or power) n.

Exponentiation refers to the mathematical operation involving two numbers, one is a base and another is an exponent. It is repeated multiplication. To calculate 53 you have to multiply the number 5 (base) by itself 3 times (exponent).

588 questions
0
votes
1 answer

Java program to sum base^exponent of n numbers while next base and exponent is (n-1)

I'm trying to write a program in java that displays the result of the sum of n numbers and its exponents, while the next number and exponent in the sample is (n-1) until it gets to 0. I hope I'm explaining myself. An example: If I ask the user for…
sodah
  • 3
  • 1
  • 2
0
votes
1 answer

First k digits of exponent in java

Following is the code that I wrote for finding the first k digits of n^n in Java private static int firstK(int n,int k) { double x, y; x = n * Math.log10(n); y = Math.floor(Math.pow(10, x - Math.floor(x) + k - 1)); …
user2627317
  • 89
  • 1
  • 2
  • 9
0
votes
2 answers

How to Avoid Exponent Value in jtable

I am getting stucked with Exponential Values in jTable in java. Actually I am retrieving values from database and in amount column value is in double. When the jTable is filled with values, amount column values are self converted to Exponential…
user2849528
0
votes
1 answer

Exponent not working normally

I am working in python 2.6. Can anyone figure out why my variable squared does not calculate properly when it is inside a min() function? To illustrate, I show the variable**2 performed by itself, works fine. Here is the code, followed by some…
teachamantofish
  • 75
  • 1
  • 1
  • 7
0
votes
2 answers

Calculating non-integer exponents in iOS

I've been working on my math parser a bit, and I have come to realize that a bit of code I'm using is unable to handle an exponent that is non-interger. The bit of code I'm using seems to work just fine with an int, but not with a double. else if…
Joe Million
  • 147
  • 9
0
votes
1 answer

Error in SQL-Oracle Code when raising value to the nth power - Need assistance

I'm running SQL code within Oracle and need help revising the below "Update" script. The below script gives me the error “missing equal sign” due to the " ^ " in the last line of the code that is meant to take the Table-B.ValueY value to the…
0
votes
2 answers

24-bit Floating Point Exponent

So in the context of 24-bit floating points, I have a the following question: If I want to modify a floating point by using more or less bits for the exponent. For example, I might want to use 9 bits for the exponent, and 15 for the mantissa. How…
user77708
  • 49
  • 8
0
votes
2 answers

Convert powers of 2 into linear sequence without Logarithms

Without using logarithms, how can I convert a sequence of powers of 2 into linear integers in BASIC? Input: 0, 1, 2, 4, 8, 16, 32, 64, 128 Output: 0, 1, 2, 3, 4, 5, 6, 7, 8
4444
  • 3,541
  • 10
  • 32
  • 43
0
votes
2 answers

How to output exponent value

Using scientific format in output file, I get: 0.245E+02 instead of 2.45E+01. How to output in the later format in Fortran? x = 2.45 write(*,130) 'x=', x 130 format (A,E8.2) Update: According to @Bálint Aradi's answer, I should have set x = 24.5…
Roy Lee
  • 10,572
  • 13
  • 60
  • 84
0
votes
2 answers

Converting numbers by Euclidean algorithm and the Horner's method

I have some trouble with my code in C. It doesn't convert the number as it should be. This is the euclidean algorithm to transform a given number to another number with a different base. "precision" is the amount of digits after comma. static char*…
Hagi
  • 87
  • 1
  • 1
  • 5
0
votes
1 answer

Getting public key using modulus and exponent

hi to all another problem another question.. I am on a C# project that decrypts encrypted messages. for decrypting i am using openssl. I am able to encrypt a message with private key and decrypt it public key with given below code CryptoKey key =…
tlgtkn
  • 13
  • 1
  • 8
0
votes
2 answers

Batch pairs of numbers or exponents

I'm making a batch program to solve some equations, I'm hoping that my end result can give me the binary for a QR code. Anyway, I just started with the calculations with exponents. My problem is that I don't know how to do that in batch since I need…
VVW
  • 13
  • 5
0
votes
1 answer

PHP Division with exponents

After some searching on the internet I'm yet to find the resource I need...I have, what I think, is a very simple question regarding math functions within PHP. I'm computating an ELO function (for team rankings) and am unsure of what PHP math…
stoopkid1
  • 114
  • 1
  • 1
  • 9
0
votes
0 answers

ActionScript 3 parseFloat returns an exponent decimals less than 1

I have a calculator app written in Flex/ActionScript 3 and I am struggling to understand some of parseFloat's behaviors. Any string containing a decimal value less than 0 with at least 4 places is returns as an exponent. Why does parseFloat behave…
0
votes
1 answer

Pascal ** definition (exponent)

I was looking for the definition in Extended Pascal for the ** exponentiation operation. I've been looking for awhile now and can't seem to find it. i.e 2**3 = 8
thesentyclimate413
  • 89
  • 3
  • 4
  • 11