Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Exponentiation | Section
Practice
Projects
Quizzes & Challenges
Frågesporter
Challenges
/
Essential R Programming for Absolute Beginners - 1768563985826

bookExponentiation

Note
Definition

Exponentiation is the operation of raising a number (the base) to a given power (the exponent).

In R, this operation is available in the base language and is widely used in areas such as finance, probability, and combinatorics.

Syntax

To calculate a raised to the power of n, use one of the following forms:

  • a ^ n;
  • a ** n.

Example

The number of possible outcomes when rolling three dice is calculated as 6 ^ 3, since each die has 6 outcomes.

12
# Number of possible outcomes 6 ^ 3
copy

The result is 216 possible outcomes.

Uppgift

Swipe to start coding

You invested $1,000 at an annual interest rate of 13%. Calculate the total amount after 4 years using compound interest by multiplying 1000 by 1.13 raised to the power of 4.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 6
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookExponentiation

Svep för att visa menyn

Note
Definition

Exponentiation is the operation of raising a number (the base) to a given power (the exponent).

In R, this operation is available in the base language and is widely used in areas such as finance, probability, and combinatorics.

Syntax

To calculate a raised to the power of n, use one of the following forms:

  • a ^ n;
  • a ** n.

Example

The number of possible outcomes when rolling three dice is calculated as 6 ^ 3, since each die has 6 outcomes.

12
# Number of possible outcomes 6 ^ 3
copy

The result is 216 possible outcomes.

Uppgift

Swipe to start coding

You invested $1,000 at an annual interest rate of 13%. Calculate the total amount after 4 years using compound interest by multiplying 1000 by 1.13 raised to the power of 4.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 6
single

single

some-alt