1 / 16

Math Operators in PERL

Math Operators in PERL. Math Operators in PERL: Addition +. Code. Output. Math Operators in PERL: Subtraction -. Code. Output. Math Operators in PERL: Multiplication *. Code. Output. Math Operators in PERL: Division /. Code. Output.

teagan
Download Presentation

Math Operators in PERL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Math Operators in PERL

  2. Math Operators in PERL:Addition + Code Output

  3. Math Operators in PERL:Subtraction - Code Output

  4. Math Operators in PERL:Multiplication * Code Output

  5. Math Operators in PERL:Division / Code Output

  6. Math Operators in PERL:Modulus % (remainder after division) Code Output

  7. Math Operators in PERL:Exponentiation ** Code Output

  8. Math Operators in PERL:Square Root sqrt(x) Code Output

  9. Math Operators in PERL:Square Root sqrt(x) Code Output

  10. Math Operators in PERL:Square Root: another way Code Output

  11. Math Operators in PERL:Natural Log (ln) log(x) Code Output

  12. Math Operators in PERL:Logarithms using bases other than e • The only built in function for log’s in Perl is for natural log’s (base e) often written as ln • Many other applications prefer to use base 10 • Microarray data are often in base 2 • Conversion: log(x) base y = ln(x) / ln(y)

  13. Math Operators in PERL:Log base 10 Code Output

  14. Math Operators in PERL:Scientific Notation Code Output

  15. Math Operators in PERL:Complex Equations • PERL recognizes the use of parentheses for complex equations • For example: the quadratic equation to solve ax2 + bx + c = 0

  16. Math Operators in PERL:Complex Equations Code Output

More Related