• TestingDocs
TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Octave

Octave Logarithm Functions

Overview

In this tutorial, we will learn Octave Logarithm Functions.
Octave supports many logarithmic functions in-built.

Octave Logarithm Functions

Some of the functions are as follows:

  • log
  • log10
  • log2
  • log1p

 

Logarithm Function Description
log(X) To compute the natural logarithm ln(X)
log2(X) To compute the base-2 logarithm
log10(X) To compute the base-2 logarithm
log1p(X) To compute the value of log (1 + X) accurately in the neighborhood of zero.

 

 Examples

>> % Example of natural logarithm
>>
>> log(e)
ans = 1
>> log(10)
ans = 2.3026
>> % Note that log is nautral logarithm of base e
>>
>> % Calling two functions
>> log(exp(4))
ans = 4
>>

Octave logarithm Functions

—

Octave Tutorials

GNU Octave Tutorials on this website can be found at:

https://www.testingdocs.com/octave-tutorial/

For more information on Octave, visit the official website:

https://www.gnu.org/software/octave/index

Related Posts

Octave Package List

Octave /

Install Octave Packages on Linux

Octave /

Octave User defined Function Example

octave command line linux

Octave /

Octave Command line on Ubuntu

Hello World in Octave

Octave /

Hello World in Octave

Octave /

Octave plot example of function y=x^2

‹ Octave range command› Octave inline command

Recent Posts

  • How to secure your SQL Database: Tips and Tricks
  • Shaping the Future of Development: Exploring Key Trends in Software Engineering
  • Improving Java Performance with Multithreading
  • Difference between PHP and JavaScript?
  • Bing Conversation Styles
  • ChatGPT Introduction
  • Open Source AI Frameworks
  • Artificial Intelligence Tools
  • Top AI Music Applications
  • Top AI Website Design Tools

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com