Create a process that will calculate the series 1 + x + x2 + x3 + x4 .......... + xn where x is a floating point number and n is a positive number. you process should be designed so exponentiation (or the pow function in c++) is not needed.

Answers

Answer 1
Assumptions
   
1. n is an integer.
   
2. Language is c++
       
double expr(double x, int n)
   
{
   
double sum = 0.0;
   
double power = 1.0; // Will have the value x^y where y ranges from 0 to n
   
int i;
       
for(i=0; i <= n; ++i) {
   
sum += power;
   
power *= x;
   
}
   
return sum;
   
}

Related Questions

Assume f(x)=4x+8 and g(x)=5. What is the value of (g o f)(-1)?

Answers

4(5)+8=28(-1)=-28 the answer is -28
[tex](g\circ f)(-1)[/tex] is equal to [tex]g(f(-1))[/tex],

that is we find "g of the number f(-1)". 


Notice that we do not need to calculate f(-1) because g is the function which makes any entry equal to 5.

For example: g(500)=5, g(-750)=5 etc.; g is called a [tex]\displaystyle{ \textit{constant function}[/tex] because it always produces a certain constant, no matter what the input value is.

Thus, g((f(-1))=5

Answer: 5

The dress store is having a sale where all merchandise is 1/4 off. A woman buys $48 of merchandise at the sale price

Answers

$48 is 3/4 what she would have paid, so $48/(3/4)=$64 ANSWER: She would have paid $64 for the merchandise at regular price.

The woman should have paid \$64 for the regular price of the merchandise.

To find out what the woman should have paid for the regular price, we need to reverse engineer the discount. Here's the step-by-step calculation:

Calculate the Discount Amount: Since the sale is 1/4 off, the discount is 1/4 of the regular price. So, the discount is:

[tex]\[ \frac{1}{4} \times \text{Regular Price} \][/tex]

[tex]\[ \text{Discount} = \frac{1}{4} \times \text{Regular Price} \][/tex]

Subtract the Discount from the Regular Price to Get the Sale Price: The sale price is the regular price minus the discount:

[tex]\[ \text{Sale Price} = \text{Regular Price} - \text{Discount} \][/tex]

Calculate the Sale Price: We know the woman bought $48 worth of merchandise at the sale price, so:

[tex]\[ \text{Sale Price} = \$48 \][/tex]

Find the Regular Price: Now we can set up an equation using the information we have:

[tex]\[ \$48 = \text{Regular Price} - \text{Discount} \][/tex]

Substituting the discount calculated earlier:

[tex]\[ \$48 = \text{Regular Price} - \left(\frac{1}{4} \times \text{Regular Price}\right) \][/tex]

Solve for the Regular Price:

[tex]\[ \$48 = \left(\frac{4}{4}\right) \times \text{Regular Price} - \left(\frac{1}{4}\right) \times \text{Regular Price} \][/tex]

[tex]\[ \$48 = \left(\frac{3}{4}\right) \times \text{Regular Price} \][/tex]

To isolate the regular price, multiply both sides by [tex]\( \frac{4}{3} \)[/tex]:

[tex]\[ \text{Regular Price} = \$48 \times \frac{4}{3} \][/tex]

[tex]\[ \text{Regular Price} = \$64 \][/tex]

So, the woman should have paid $64 for the regular price of the merchandise.

Complete Question:

The dress store is having a sale where all merchandise is 1/4 off a woman buys $48 of merchandise at the sale price what should she have paid for the regular price

Find a + b, 2a + 3b, |a|, and |a − b|. a = 5i + j, b = i − 3j

Answers

a+b = (5i + j) + (i - 3j) = 6i - 2j
2a + 3b = 2(5i + j) + 3(i - 3j) = 10i + 2j + 3i - 9j = 13i - 7j
|a| = sqrt((5^2)+(1^2)) = sqrt(26)
|a-b| = |(5i+j) - (i-3j)| = |4i+4j| = sqrt((4^2)+(4^2)) = sqrt(32)

Jesse was ranked 11th in his graduating class of 180 students. At what percentile is Jesse's ranking? (Round your answer to the nearest whole number.)

Answers

jesse would be in the top 19.8%

Simplify the expression and eliminate any negative exponent(s). Assume that all letters denote positive numbers.


√s√s^9

Answers

I'll give you a head start so the first thing you wanna do is make a number line of positive and negative numbers I know you can do it

If g(t)=4t-t^2, find g(t+h)-g(t)/h.

Answers

Simplify into: gt+gh-gt/h
                   =4t-t^2+gh-(4t-t^2)/h
                   =gh/h
                   =g

the table represents a linear function?

Answers

Hello Fantaysias, 

How are you doing? I know this is kind of late, but here goes nothing! Yes, it is a linear equation, you know this because, the input always will result with the same output. Plus, since it has a slope, which is 10 by the way, it also confirms that this is linear! Linear means, that if you put these plots on a line, it will create a straight line! Hope I helped!

Thank you,
Darian D. 

Answer:  5

Step-by-step explanation:

In the given picture we have a table representing two columns as x and y.

We know that the slope of the function is given by :-

[tex]k=\dfrac{y_2-y_1}{x_2-x_1}[/tex]

Using points (0,4) and (2,14) from the table , we get the slope of the function will be :-

[tex]k=\dfrac{14-4}{2-0}\\\\\\=\dfrac{10}{2}=5[/tex]

Therefore, the slope of the given function in the table = 5

5. Suppose that a and b are both real numbers such that a < b. What can you conclude about the inequality 1/a < 1/b?
a. 1/a < 1/b is always true.
b. 1/a < 1/b is sometimes true.
c. 1/a < 1/b is never true.
d. A valid conclusion cannot be determined from the given information.

Answers

Let's start with the given:
[tex]a<b[/tex] for any a, b such that a and b are real numbers.

Multiplying by [tex]\frac{1}{a}[/tex] on both sides:
[tex](\frac{1}{a})a=1<(\frac{1}{a})b[/tex]

Now multiply by [tex]\frac{1}{b}[/tex] on both sides:
[tex](\frac{1}{b})1=\frac{1}{b}<(\frac{1}{a})b(\frac{1}{b})=\frac{1}{a}[/tex]

Then we have:
[tex]\frac{1}{b}<\frac{1}{a}[/tex]

Then the answer must be c.

What is the greatest whole number that rounds to 54,300

Answers

54,000 , 300 can be rounded down

.002 is 1/10 of what

Answers

Let the unknown number be x.  Then (1/10)x = 0.002.  To solve for x, multiply both sides by 1000 to remove the decimal fraction 0.002.

Then 1000(1/10)x = 1000(0.002), or 100x = 2.  Dividing both sides by x returns 

x=100/2, or x= 50 (answer)
Final answer:

.002 is 1/10 of 0.02. To find this, we multiply .002 by 10. This is seen as moving the decimal point to the right once because we are multiplying by a power of ten.

Explanation:

The student asked: ".002 is 1/10 of what". To find the answer to this question, we can set up a simple equation where we multiply .002 by 10 because we know that if .002 is 1/10 of a number, then multiplying it by 10 will give us that whole number.

So the equation is:

.002 x 10 = 0.02

Therefore, .002 is 1/10 of 0.02.

This can also be understood by recognizing that when dividing by powers of 10, you move the decimal to the left by the number of zeros in the power of ten. So, in the reverse process, when we want to find a number that is ten times larger (i.e., 1/10 of the original), we move the decimal one place to the right.

For a school assembly, students sit in chairs that are arranged in 53 rows. There are 12 chairs in each row. About how many students can be seated?

Answers

To find the total amount of chairs we have to find the area:

Length × width 
53 × 12
636 students

Hope this helped!
53×12=636 About 636 students can be seated.

A soccer ball is kicked from the ground. After traveling a horizontal distance of 35m, it just passes over a 1.5m tall fence before hitting the ground 37m from where it was kicked. How far has the ball travelled horizontally to reach the maximum height?

Answers

1.5 is the correct answer i play soccer to

Answer:

18.5 meters

Step-by-step explanation:

As the maximum height ona projectile motion that starts from the ground and finishes at the ground is simmetric, the maximum height of the projectile will be found exactly at half of the distance tranveled horizontally, so the exact half of the total distance traveled horizontally is 18.5 meters, since distance is 37 meters and divided by 2 is 18.5.

The ball will travel 18.5 meters to reach its maximum height.

Write 3.16 as a mixed number in lowest terms

Answers

[tex] 3.16=3 { \frac {16}{100} }== \gt mixed\ number \\ \ \ \ \ \ \ \ \ =3 { \frac {\ 4\ }{\ 25\ } } == \gt lowest\ term[/tex]
3.16 is already in its simple form, i dont think you can reduce that any further,

3.16 is also equal to division which is 3 divided by 16  and is expressed in decimal form 0.1875. i hope this help :o!

Find two integers whose sum is -7 and whose product is 12. Explain how you found the numbers.

Answers

-3 + (-4)= -7
-3 times -4=12

negative plus a negative is still a negative. negative times a negative is a positive.
hello : let x , y this numbers 
x+y = -7....(1)
xy = 12 ... (2)
by (1) : 
y = - 7 - x
subsct in (2) : 
x(-7 - x) = 12
-7x - x² = 12
x² +7x +12 = 0 
(x+4)(x +3) = 0
x+4 = 0 or x+3 = 0
so : x = -4 or x = -3

The distribution of the amount of money spent by students for textbooks in a semester is approximately normal in shape with a mean of 235andastandarddeviationof235andastandarddeviationof 20. according to the standard deviation rule, how much did almost all (99.7%) of the students spend on textbooks in a semester?

Answers

The answer is between $175 and $295. The standard deviation rule tells us that for distributions that have the normal shape, approximately 99.7% of the observations fall within 3 standard deviations of the mean. Indeed, 175 = 235 − 3 * 20 and 295 = 235 + 3 * 20 are exactly 3 standard deviations below and above the mean, respectively.

Solve for q 8r-5q=3

Answers

8r - 5q = 3....subtract 8r from both sides
-5q = -8r + 3...divide both sides by -5
q = 8/5r - 3/5 or can be written as q = (-8r + 3) / -5 <==
either one will work

94.99 in expanded form

Answers

[tex]90 + 4 + 0.9 + 0.09[/tex]
Your answer is given above.

Which is greater, the greatest whole number with 4 digits or the least whole number with 5 digits?

Answers

The answer would be the least whole number with 5 digits. You have to base it on the place values of each digit of a number. As the number of digits increases, the value also increases. For a number with 4 digits, the greatest value would be a multiple of 1,000. For a number with 5 digits, the greatest value would be a multiple of 10,000. Hence, no matter what is the multiple, 10,000 would always be far greater than 1,000.

Find the area of the region bounded by the parabola y = x2, the tangent line to this parabola at the point (2, 4), and the x-axis.

Answers

The area of the region is [tex]\(\frac{64}{3}\)[/tex] square units.

To find the area of the region bounded by the parabola \(y = x^2\), the tangent line at the point (2, 4), and the x-axis, we'll first determine the points of intersection.

The tangent line at (2, 4) has the same slope as the derivative of the parabola at x = 2. The derivative of [tex]\(y = x^2\)[/tex] is [tex]\(2x\)[/tex], so at x = 2, the slope is [tex]\(2 \times 2 = 4\)[/tex]. Thus, the equation of the tangent line is [tex]\(y - 4 = 4(x - 2)\)[/tex].

Now, let's find the points of intersection between the parabola and the tangent line:

[tex]\[x^2 = 4(x - 2) + 4\][/tex]

Solving for x, we get [tex]\(x^2 - 4x = 0\)[/tex], which factors to [tex]\(x(x - 4) = 0\)[/tex]. So, [tex]\(x = 0\)[/tex] and [tex]\(x = 4\)[/tex].

Now, integrate the absolute difference of the functions from 0 to 4 to find the area:

[tex]\[A = \int_0^4 |x^2 - (4x - 4)| \,dx.\][/tex]

Evaluate the integral:

[tex]\[A = \int_0^4 (x^2 - 4x + 4) \,dx = \frac{1}{3}x^3 - 2x^2 + 4x \Big|_0^4 = \frac{64}{3}.\][/tex]

Therefore, the area of the region is [tex]\(\frac{64}{3}\)[/tex] square units.

The answer is: [tex]\frac{8}{3}[/tex].

The area of the region bounded by the parabola [tex]\( y = x^2 \)[/tex], the tangent line to this parabola at the point (2, 4), and the x-axis is given by the integral of the difference between the parabola and the tangent line from [tex]\( x = 0 \) to \( x = 2 \)[/tex].

First, we need to find the equation of the tangent line to the parabola at the point (2, 4). The slope of the tangent line is the derivative of the parabola's equation at \( x = 2 \). The derivative of [tex]\( y = x^2 \)[/tex] is [tex]\( y' = 2x \).[/tex] At[tex]\( x = 2 \)[/tex], the slope is [tex]\( 2 \cdot 2 = 4 \)[/tex].

Using the point-slope form of a line,[tex]\( y - y_1 = m(x - x_1) \)[/tex], where [tex]\( m \)[/tex] is the slope and [tex]\( (x_1, y_1) \)[/tex] is a point on the line, we get the equation of the tangent line as follows:

[tex]\[ y - 4 = 4(x - 2) \][/tex]

[tex]\[ y = 4x - 8 + 4 \][/tex]

[tex]\[ y = 4x - 4 \][/tex]

Now, we will find the area under the parabola and above the tangent line from [tex]\( x = 0 \) to \( x = 2 \)[/tex]. The integral of [tex]\( x^2 \)[/tex] from 0 to 2 is:

[tex]\[ \int_{0}^{2} x^2 \, dx = \left[ \frac{x^3}{3} \right]_{0}^{2} = \frac{2^3}{3} - \frac{0^3}{3} = \frac{8}{3} \][/tex]

The integral of the tangent line \( y = 4x - 4 \) from 0 to 2 is:

[tex]\[ \int_{0}^{2} (4x - 4) \, dx = \left[ 2x^2 - 4x \right]_{0}^{2} = (2 \cdot 2^2 - 4 \cdot 2) - (2 \cdot 0^2 - 4 \cdot 0) = (8 - 8) - (0 - 0) = 0 \][/tex]

The area between the parabola and the tangent line is the difference between these two integrals:

[tex]\[ \text{Area} = \int_{0}^{2} x^2 \, dx - \int_{0}^{2} (4x - 4) \, dx \][/tex]

[tex]\[ \text{Area} = \frac{8}{3} - 0 \][/tex]

[tex]\[ \text{Area} = \frac{8}{3} \][/tex]

Therefore, the area of the region bounded by the parabola [tex]\( y = x^2 \)[/tex], the tangent line at the point (2, 4), and the x-axis is [tex]\( \boxed{\frac{8}{3}} \)[/tex] square units.

Yolanda walks 1.5km every day. How far does she walk in 9 days? Write your answer in meters.

Answers

13500 Meters 
13.5 Kilometers

a tour bus cost $75 plus $6 for each passenger. write and evaluate an expression to find the total cost for 25 passengers. then. make a table showing the cost for 26, 30, 35, 40 passengers

Answers

To make an expression for any amount of passengers, you need to use x for each passenger. Fill in x with the amount of passengers. Your equation is: 
75 + 6x. Now using this expression, we can find the answer to all of the amounts of passengers.

75 + 6(25) = 225; 75 + 6(26) = 231; and so on. Hope that I helped! Good luck!

Using place value to alter the amount of 194753 by two thousand

Answers

194,753 altered by 2000

if you subtract 2000, you will get 192,753
if you add 2000, you will get 196,753

That is two ways to alter the amount by 2000

hope this helps

When determining slope, data points do not usually fall within a straight line, so you need to draw a _____ line, with as many points above and below the line as possible.
accurate
precise
best fit
correct

Answers

you need to draw a best-fit line

Answer:

The correct option is 3.

Step-by-step explanation:

If a straight line passes through some of the points, none of the points, or all of the points of a scatter plot and best represents the data, then it is called a best fit line.

Best fit line minimizes the squared distance of each point. Some points of the scatter plot lie above and below the best fit line.

When determining slope, data points do not usually fall within a straight line, so you need to draw a best fit line, with as many points above and below the line as possible.

Therefore the correct option is 3.

Simplify the expression 16 − x2 as much as possible after substituting 4 sin θ for x. (assume 0° < θ < 90°.)

Answers

The value of the expression [tex]16 - x^{2}[/tex] is 16 cos^2θ

Here,

The expression is [tex]16 - x^{2}[/tex]

We have to find the value of expression after substitute 4 sinθ for x.

What is substitution method?

Substitution method is algebraic method to solve the linear equations.



Now,

The expression is [tex]16 - x^{2}[/tex]

By putting x = 4 sinθ in above equation, we get;

[tex]16 - x^{2}[/tex]  = 16 - ( 4 sinθ)^2

            = 16 - 16 sin^2θ

            = 16 ( 1 - sin^2θ )

            = 16 cos^2θ

Since,  1 - sin^2θ = cos^2θ

Hence, The value of the expression [tex]16 - x^{2}[/tex] is 16 cos^2θ

Learn more about the substitution method visit:

https://brainly.com/question/22340165

#SPJ2

Final answer:

To simplify the expression 16 - x² after substituting 4 sin θ for x, you end up with 16 cos² θ, using the Pythagorean trigonometric identity.

Explanation:

To simplify the expression 16 - x² after substituting 4 sin θ for x, where 0° < θ < 90°, we follow these steps:

Substitute 4 sin θ into the expression for x.Simplify the resulting expression.

The substitution gives us 16 - (4 sin θ)².

To further simplify:

Calculate the square of 4 sin θ, which is 16 sin² θ.Subtract 16 sin² θ from 16, giving us 16 - 16 sin² θ.Factor out the common factor of 16, resulting in 16(1 - sin² θ).Recognize that (1 - sin² θ) is equal to cos² θ due to the Pythagorean identity.Finally, the simplified expression is 16 cos² θ.

solve the equation 0.4+0.5=-4.7-0.6z

Answers

0.9 = -4.7 - 0.6z
0.9 + 4.7 = -0.6z
5.6 = -0.6z
z = 5.6 ÷ -0.6
z = -9.33

The pie below is cut into 6 equal slices. Show shade2/3 of this pie

Answers

2/3 of the pie is 4 pieces. shade 4

In a certain grocery store, strawberries cost $5.92 per pound ( 5.92 dollars/lb ). what is the cost per ounce? express your answer numerically to the hundredths place.

Answers

1 pound is 16 ounces
so $5.92 are 16 ounces
for 1 ounce, divide $5.92 by 16
so $0.37 for each ounce

find two consecutive odd integers such that 54 more than the lesser is five times the greater

Answers

Let x=odd number and x+2=the larger consecutive number

x+54=5 (x+2)
x+54=5x+10
-x+x+54=-x+5x+10
54=4x+10
-10+54=4x+10-10
44=4x
44/4=4x/4
11=x and x+2=11+2=13
11 and 13

(you can check the answer by substituting the numbers to the top equation)

the sum of three consecutive integers is 63 find the three integers

Answers

663/3 = 21

21 is the middle number,

21+1 = 22

21-1 = 20


20 + 21 + 22 = 63

Our three consecutive integers can be represented as

X → first integer

X + 1 → second integer

X + 2 → third integer

If the sum of our three consecutive integers is 63, our equation will read...

X + X + 1 + X + 2 = 63

Now, we can simplify on the left. Once we simplify, our equation will now read

3x + 3 = 63

      -3    -3  ← subtract 3 on both sides

  3x = 60 ← divide both sides by 3

   X = 20

Our three consecutive integers can be represented as

X → first integer = 20

X + 1 → second integer = 21

X + 2 → third integer = 22

Therefore, the three consecutive integers are 20, 21, and 22.

a circus performer walks on a tightrope 25 feet above the ground. the tightrope is supported by two beams and two support cables. if the distance between each beam and the base of its support cable is 15 feet, what is the length of the support cable?

Answers

check the picture below.

and surely you know how much that is.

Answer:29.15475947 (not rounded)

Step-by-step explanation:

Other Questions
Find the square root of 25. The only state that did not send a delegate to the constitutional convention was WHich effect did the Reconquista have? In sexually reproducing animals, once fertilization of the egg takes place, the ___________ exists as a single cell until cell division begins. A)egg B)larva C)sperm D)zygote Which biome is home to more plant and animal species than any other? Eduardo is 16. Eduardos dad takes him and his younger sister to a soccer match. Tickets are $17 for adults and $13 for children (18 and under). Write an expression for the total cost of the tickets. What is the total cost of the tickets? Circle the term that does not belong in each of the following groups: KCl NaCl NaHCO3 MgSO4 What is the simplified expression for Select one:a. 3 over 2b. 3 to the power of 2 over 2 to the power of 2c. 3 to the power of 2 over 2d. 2 to the power of 4 over 3 How to get rid of throw up smell in room after drinking? The chorus in lorfeo functions doubly, as both______ and _____. A cat is moving at 18 m/s when it accelerates at 4 m/s2 for 2 seconds. what is his new velocity? How many degrees are in 1/3 Areas where tectonic plates meet up but do not fit neatly into a category, and are ill-defined, are called _______ .A.Plate transformation boundariesB.Plate boundary zonesC.Multi-boundary zonesD.Transform boundaries The brain releases oxytocin in settings where there are feelings of anger or fear. A proton and an electron are separated by 6.5 1010 m. (a) calculate the magnitude of the electric force that the proton exerts on the electron An alpha particle is also referred to as a nucleus of which isotope? lithium-7 helium-4 hydrogen-2 helium-2 A volleyball player has a assists per game during a 7 game match. The volleyball player has 35 assists during the entire match. Which equation can be used to find a? Name 3 things the press has the to do suppose larry stands with more weight on one scale than the other if one scale reads 400 N. what does the other read? Which country took over the dutch new netherland in the late 1600s? Steam Workshop Downloader