SlideShare ist ein Scribd-Unternehmen logo
1 von 36
PRESENTED BY
NITHYA A.P
OVERVIEW













INTRODUCTION
FEATURES
DATA TYPES
MATHEMATICAL OPERATORS
COMPLEX AND RATIONAL NUMBERS’
STRINGS
FUNCTIONS
CONTROL FLOW
JULIA STANDARD Library
SIMPLE PLOTING
ADVANTAGES
CONCLUSION
INTRODUCTION


Julia is a high-level, highperformance dynamic programming
language for technical computing,
with syntax that is familiar to users
of other technical computing
environments. It provides a
sophisticated compiler, distributed
parallel execution, numerical
accuracy, and an extensive
mathematical function library.
Appeared in 2012
Designed by Jeff Bezanson, Stefan Karpinski, Viral B.
Shah, Alan Edelman (MIT Group Leader)
OS

Linux, FreeBSD, Windows

Stable
release
Typing
discipline
Influenced
by

0.1.2 (March 7, 2013))

License
Usual
filename
extensions

MIT License
.jl

Dynamic with optional type annotations
and type inference
MATLAB, Scheme, Lisp, C Python Perl
Ruby
FEATURES





High-Performance JIT Compiler
Designed for Parallelism & Cloud
Computing
Free, Open Source & Library-Friendly
DATATYPES
Integers and Floating-Point
Numbers
Integer Types
Int8— signed 8-bit integers ranging
from -2^7 to 2^7 - 1.
Uint8 — unsigned 8-bit integers
ranging from 0 to 2^8 - 1.
Int16 — signed 16-bit integers ranging
from -2^15 to 2^15 - 1.
Uint16 — unsigned 16-bit integers
ranging from 0 to 2^16 - 1
Int32 — signed 32-bit integers ranging
from -2^31 to 2^31 - 1.
Uint32 — unsigned 32-bit integers
ranging from 0 to 2^32 - 1.
Int64 — signed 64-bit integers ranging
from -2^63 to 2^63 - 1.
Uint64 — unsigned 64-bit integers
ranging from 0 to 2^64 - 1.
Int128 - signed 128-bit integers ranging
from -2^127 to 2^127 - 1.
Uint128 - unsigned 128-bit integers
ranging from 0 to 2^128 - 1.
Bool- either true or false, which
correspond numerically to 1 and 0.
Char- a 32-bit numeric type
representing a Unicode character.
Floating-point types:
Float32- IEEE 754 32-bit floating-point
numbers.
 Float64-IEEE 754 64-bit floating-point
numbers.

Arbitrary Precision
Arithmetic




allow computations with
arbitrary precision integers and
floating point numbers
The BigInt and BigFloat types
are available in Julia for
arbitrary precision integer and
floating point numbers
respectively.
Numeric Literal Coefficients






make common numeric formulas and
expressions clearer
writing polynomial expressions much
cleaner.
makes writing exponential functions
more elegant.
Syntax Conflicts




The hexadecimal integer literal
expression 0xff could be
interpreted as the numeric literal
0 multiplied by the variable xff.
The floating-point literal
expression 1e10 could be
interpreted as the numeric literal
1 multiplied by the variable e10,
and similarly with the equivalent
E form.
MATHEMATICAL
OPERATORS



Arithmetic Operators
Bitwise Operators
 Arithmetic

operators

• +x-unary plus is the identity operation.
• x-unary minus maps values to their
additive inverses.
• x + y-binary plus performs addition.
• x – y-binary minus performs subtraction.
• x * y- times performs multiplication.
• x / y-divide performs division.
Bitwise Operators
• ~x
•x&y
•x|y
• x $ y• x >> y
• x >> y• x << y

bitwise not.
bitwise and.
bitwise or.
bitwise xor.
logical shift right.
arithmetic shift right.
logical/arithmetic shift
left.
NUMERIC COMPARISON
 Comparison

Operators

• ==equality.
• != inequality.
• <less than.
• <=less than or equal to.
• >greater than.
• >=greater than or equal to.
MATHEMATICALFUNCTIONS
o

o

Julia provides a comprehensive
collection of mathematical
functions and operators
All the standard trignometric
functions are inluded
Some examples
• sqrt(x)— the square root of x.
• cbrt(x)— the cube root of x.
• pow(x,y)—x raised to the
exponent y.
• exp(x)— the natural exponential
function at x.
• log(x)— the natural logarithm of
x.
Complex Numbers


We can perform all the standard
arithmetic operations with complex
numbers:
julia> (1 + 2im)*(2 - 3im)
8 + 1im



Standard functions to manipulate
complex values are provided:
julia> real(1 + 2im)
1
Julia> imag(1 + 2im)
2

julia> conj(1 + 2im)
1 - 2im
Rational Numbers




Julia has a rational number type to
represent exact ratios of integers.
Rationals are constructed using
the // operator:
If the numerator and denominator of
a rational have common factors,
they are reduced to lowest terms
such that the denominator is nonnegative:
Julia> 6//9
2//3
julia> 5//-15
-1//3
STRINGS

•

Strings are finite sequences of
characters. Julia supports the full
range of unicode characters:
Characters
A Char value represents a single
character: it is just a 32-bit integer
with a special literal representation
and appropriate arithmetic
behaviors, whose numeric value is
interpreted as a Unicode code point
Interpolation





To reduce the need for these
verbose calls to strcat, Julia
allows interpolation into string
literals using $, as in Perl:
julia> "$greet, $whom.n"
"Hello, world.n"
STRING FUNCTIONS
 strchr

function:
Julia> strchr("xylophone", ’x’)
1
 repeat:
julia> repeat(".:Z:.", 10)
".:Z:..:Z:..:Z:..:Z:..:Z:..:Z:..:Z:..:Z:..
:Z:..:Z:.“
 •endof(str) gives the maximal
(byte) index that can be used to
index into str.
• i = start(str) gives the first valid index at
which a character can be found in str
(typically 1).
• c, j = next(str,i) returns next character at or
after the index i and the next valid character
index
following that. With start and endof, can be
used to iterate through the characters in str.
• ind2chr(str,i) gives the number of
characters in str up to and including any at
index i
• chr2ind(str,j) gives the index at which the
jth character in str occurs.
FUNCTIONS




In Julia, a function is an object
that maps a tuple of argument
values to a return value
syntax for defining functions in
Julia is:
function f(x,y)
x+y
end
CONTROL FLOW
• Compound Expressions: begin
and (;).
• Conditional Evaluation: if-elseifelse and ?: (ternary operator).
• Short-Circuit Evaluation: &&, ||
and chained comparisons.
• Repeated Evaluation: Loops:
while and for.
Julia Standard Library
There are 65 pacages in Julia
some of them are:
1. ArgPars-Package for parsing
command-line arguments to
Julia programs.
2. Calculus-Calculus functions
in Julia
3.Calendar-Calendar time
package for Julia
4. Color-Basic color
manipulation utilities
5.Graph-Working with graphs in
Julia
6. HTTP-HTTP library (server,
client, parser) for the Julia
language
7. Languages-A package for
working with human language
8.Sound-Reading and writing from
WAV files (should probably be
named WAV)
9. Winston-2D plotting for Julia
Simple Ploting
To plot sin(x) between 0 and 2π,
you can go like this
julia> xVector=[0:0.01:2*pi];
julia> yVector=0.0*xVector;
julia> for n=1:length(xVector):
yVector[n] = sin(xVector[n]);
end
julia> plot(xVector, yVector)
Advantages of JULIA

• Free and open source (MIT
licensed)
• User-defined types are as fast
and compact as built-ins
• Designed for parallelism and
distributed computation
• Elegant and extensible
conversions and promotions for
numeric and other types
• Call C functions directly
CONCLUSION
Julia is a is a flexible dynamic
language, appropriate for scientific and
numerical computing
Julia features optional typing, multiple
dispatch, and good performance,
achieved using type inference and justintime (JIT) compilation.
Julia combines the features of many
other Programing languages like
C,Matlab,java etc.
Which is useful for scientific
computing.It is a User friendly and easly
Understandable Programming Language
REFERENCES
"The Julia Language" (official website).
O'Reilly Strata. Retrieved 7 February
2013.
 Krill, Paul. "New Julia language seeks to
be the C for scientists " InfoWorld.
Retrieved 7 February 2013.
 "Julia: A Fast Dynamic Language for
Technical Computing" (PDF). 2012.
 "Why We Created Julia"(World Wide Web
log). Feb 2012. Retrieved 7 February
2013.
 "The Julia Studio" (official website).
 Julia Language Documentation Release
development

Any
questions????
??????
julia-Latest Programming  language

Weitere ähnliche Inhalte

Was ist angesagt?

Pragmatic Real-World Scala (short version)
Pragmatic Real-World Scala (short version)Pragmatic Real-World Scala (short version)
Pragmatic Real-World Scala (short version)Jonas Bonér
 
02. Data Types and variables
02. Data Types and variables02. Data Types and variables
02. Data Types and variablesIntro C# Book
 
19. Java data structures algorithms and complexity
19. Java data structures algorithms and complexity19. Java data structures algorithms and complexity
19. Java data structures algorithms and complexityIntro C# Book
 
Java Foundations: Basic Syntax, Conditions, Loops
Java Foundations: Basic Syntax, Conditions, LoopsJava Foundations: Basic Syntax, Conditions, Loops
Java Foundations: Basic Syntax, Conditions, LoopsSvetlin Nakov
 
Java programming lab manual
Java programming lab manualJava programming lab manual
Java programming lab manualsameer farooq
 
19. Data Structures and Algorithm Complexity
19. Data Structures and Algorithm Complexity19. Data Structures and Algorithm Complexity
19. Data Structures and Algorithm ComplexityIntro C# Book
 
Python for data science by www.dmdiploma.com
Python for data science by www.dmdiploma.comPython for data science by www.dmdiploma.com
Python for data science by www.dmdiploma.comShwetaAggarwal56
 
07. Java Array, Set and Maps
07.  Java Array, Set and Maps07.  Java Array, Set and Maps
07. Java Array, Set and MapsIntro C# Book
 
13. Java text processing
13.  Java text processing13.  Java text processing
13. Java text processingIntro C# Book
 
DIWE - Working with MySQL Databases
DIWE - Working with MySQL DatabasesDIWE - Working with MySQL Databases
DIWE - Working with MySQL DatabasesRasan Samarasinghe
 
Lecture02 class -_templatev2
Lecture02 class -_templatev2Lecture02 class -_templatev2
Lecture02 class -_templatev2Hariz Mustafa
 
Introduction to objective c
Introduction to objective cIntroduction to objective c
Introduction to objective cMayank Jalotra
 
11. Java Objects and classes
11. Java  Objects and classes11. Java  Objects and classes
11. Java Objects and classesIntro C# Book
 
Why we cannot ignore Functional Programming
Why we cannot ignore Functional ProgrammingWhy we cannot ignore Functional Programming
Why we cannot ignore Functional ProgrammingMario Fusco
 
Java Simple Programs
Java Simple ProgramsJava Simple Programs
Java Simple ProgramsUpender Upr
 

Was ist angesagt? (20)

Pragmatic Real-World Scala (short version)
Pragmatic Real-World Scala (short version)Pragmatic Real-World Scala (short version)
Pragmatic Real-World Scala (short version)
 
02. Data Types and variables
02. Data Types and variables02. Data Types and variables
02. Data Types and variables
 
19. Java data structures algorithms and complexity
19. Java data structures algorithms and complexity19. Java data structures algorithms and complexity
19. Java data structures algorithms and complexity
 
Java Foundations: Basic Syntax, Conditions, Loops
Java Foundations: Basic Syntax, Conditions, LoopsJava Foundations: Basic Syntax, Conditions, Loops
Java Foundations: Basic Syntax, Conditions, Loops
 
Spsl vi unit final
Spsl vi unit finalSpsl vi unit final
Spsl vi unit final
 
CS2309 JAVA LAB MANUAL
CS2309 JAVA LAB MANUALCS2309 JAVA LAB MANUAL
CS2309 JAVA LAB MANUAL
 
Java programming lab manual
Java programming lab manualJava programming lab manual
Java programming lab manual
 
19. Data Structures and Algorithm Complexity
19. Data Structures and Algorithm Complexity19. Data Structures and Algorithm Complexity
19. Data Structures and Algorithm Complexity
 
Python for data science by www.dmdiploma.com
Python for data science by www.dmdiploma.comPython for data science by www.dmdiploma.com
Python for data science by www.dmdiploma.com
 
Javantura v6 - Kotlin-Java Interop - Matej Vidaković
Javantura v6 - Kotlin-Java Interop - Matej VidakovićJavantura v6 - Kotlin-Java Interop - Matej Vidaković
Javantura v6 - Kotlin-Java Interop - Matej Vidaković
 
07. Java Array, Set and Maps
07.  Java Array, Set and Maps07.  Java Array, Set and Maps
07. Java Array, Set and Maps
 
13. Java text processing
13.  Java text processing13.  Java text processing
13. Java text processing
 
DIWE - Working with MySQL Databases
DIWE - Working with MySQL DatabasesDIWE - Working with MySQL Databases
DIWE - Working with MySQL Databases
 
Lecture02 class -_templatev2
Lecture02 class -_templatev2Lecture02 class -_templatev2
Lecture02 class -_templatev2
 
Introduction to objective c
Introduction to objective cIntroduction to objective c
Introduction to objective c
 
11. Java Objects and classes
11. Java  Objects and classes11. Java  Objects and classes
11. Java Objects and classes
 
Why we cannot ignore Functional Programming
Why we cannot ignore Functional ProgrammingWhy we cannot ignore Functional Programming
Why we cannot ignore Functional Programming
 
Java Simple Programs
Java Simple ProgramsJava Simple Programs
Java Simple Programs
 
Kotlin
KotlinKotlin
Kotlin
 
All experiment of java
All experiment of javaAll experiment of java
All experiment of java
 

Ähnlich wie julia-Latest Programming language

Chapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingChapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingEric Chou
 
Using Language Oriented Programming to Execute Computations on the GPU
Using Language Oriented Programming to Execute Computations on the GPUUsing Language Oriented Programming to Execute Computations on the GPU
Using Language Oriented Programming to Execute Computations on the GPUSkills Matter
 
Advance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learningAdvance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learningsherinjoyson
 
Python programming
Python programmingPython programming
Python programmingsaroja20
 
Compiler Design lab manual for Computer Engineering .pdf
Compiler Design lab manual for Computer Engineering .pdfCompiler Design lab manual for Computer Engineering .pdf
Compiler Design lab manual for Computer Engineering .pdfkalpana Manudhane
 
R basics for MBA Students[1].pptx
R basics for MBA Students[1].pptxR basics for MBA Students[1].pptx
R basics for MBA Students[1].pptxrajalakshmi5921
 
Introduction to scala for a c programmer
Introduction to scala for a c programmerIntroduction to scala for a c programmer
Introduction to scala for a c programmerGirish Kumar A L
 
R Programming Language
R Programming LanguageR Programming Language
R Programming LanguageNareshKarela1
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python ProgrammingVijaySharma802
 
Developer’s viewpoint on swift programming language
Developer’s viewpoint on swift programming languageDeveloper’s viewpoint on swift programming language
Developer’s viewpoint on swift programming languageAzilen Technologies Pvt. Ltd.
 
Learn C LANGUAGE at ASIT
Learn C LANGUAGE at ASITLearn C LANGUAGE at ASIT
Learn C LANGUAGE at ASITASIT
 
B.sc CSIT 2nd semester C++ Unit2
B.sc CSIT  2nd semester C++ Unit2B.sc CSIT  2nd semester C++ Unit2
B.sc CSIT 2nd semester C++ Unit2Tekendra Nath Yogi
 
1_Introduction.pptx
1_Introduction.pptx1_Introduction.pptx
1_Introduction.pptxranapoonam1
 
Introduction to Python Basics
Introduction to Python BasicsIntroduction to Python Basics
Introduction to Python BasicsRaghunath A
 
Unit I - 1R introduction to R program.pptx
Unit I - 1R introduction to R program.pptxUnit I - 1R introduction to R program.pptx
Unit I - 1R introduction to R program.pptxSreeLaya9
 
Intellectual technologies
Intellectual technologiesIntellectual technologies
Intellectual technologiesPolad Saruxanov
 

Ähnlich wie julia-Latest Programming language (20)

Chapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingChapter 2: Elementary Programming
Chapter 2: Elementary Programming
 
Using Language Oriented Programming to Execute Computations on the GPU
Using Language Oriented Programming to Execute Computations on the GPUUsing Language Oriented Programming to Execute Computations on the GPU
Using Language Oriented Programming to Execute Computations on the GPU
 
Advance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learningAdvance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learning
 
Python programming
Python programmingPython programming
Python programming
 
Compiler Design lab manual for Computer Engineering .pdf
Compiler Design lab manual for Computer Engineering .pdfCompiler Design lab manual for Computer Engineering .pdf
Compiler Design lab manual for Computer Engineering .pdf
 
R basics for MBA Students[1].pptx
R basics for MBA Students[1].pptxR basics for MBA Students[1].pptx
R basics for MBA Students[1].pptx
 
CPPDS Slide.pdf
CPPDS Slide.pdfCPPDS Slide.pdf
CPPDS Slide.pdf
 
Introduction to scala for a c programmer
Introduction to scala for a c programmerIntroduction to scala for a c programmer
Introduction to scala for a c programmer
 
R Programming Language
R Programming LanguageR Programming Language
R Programming Language
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python Programming
 
Developer’s viewpoint on swift programming language
Developer’s viewpoint on swift programming languageDeveloper’s viewpoint on swift programming language
Developer’s viewpoint on swift programming language
 
C intro
C introC intro
C intro
 
Unit1.ppt
Unit1.pptUnit1.ppt
Unit1.ppt
 
Learn C LANGUAGE at ASIT
Learn C LANGUAGE at ASITLearn C LANGUAGE at ASIT
Learn C LANGUAGE at ASIT
 
B.sc CSIT 2nd semester C++ Unit2
B.sc CSIT  2nd semester C++ Unit2B.sc CSIT  2nd semester C++ Unit2
B.sc CSIT 2nd semester C++ Unit2
 
1_Introduction.pptx
1_Introduction.pptx1_Introduction.pptx
1_Introduction.pptx
 
Introduction to Python Basics
Introduction to Python BasicsIntroduction to Python Basics
Introduction to Python Basics
 
Unit I - 1R introduction to R program.pptx
Unit I - 1R introduction to R program.pptxUnit I - 1R introduction to R program.pptx
Unit I - 1R introduction to R program.pptx
 
fundamentals of c
fundamentals of cfundamentals of c
fundamentals of c
 
Intellectual technologies
Intellectual technologiesIntellectual technologies
Intellectual technologies
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Kürzlich hochgeladen (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

julia-Latest Programming language

  • 1.
  • 3. OVERVIEW             INTRODUCTION FEATURES DATA TYPES MATHEMATICAL OPERATORS COMPLEX AND RATIONAL NUMBERS’ STRINGS FUNCTIONS CONTROL FLOW JULIA STANDARD Library SIMPLE PLOTING ADVANTAGES CONCLUSION
  • 4. INTRODUCTION  Julia is a high-level, highperformance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. It provides a sophisticated compiler, distributed parallel execution, numerical accuracy, and an extensive mathematical function library.
  • 5. Appeared in 2012 Designed by Jeff Bezanson, Stefan Karpinski, Viral B. Shah, Alan Edelman (MIT Group Leader) OS Linux, FreeBSD, Windows Stable release Typing discipline Influenced by 0.1.2 (March 7, 2013)) License Usual filename extensions MIT License .jl Dynamic with optional type annotations and type inference MATLAB, Scheme, Lisp, C Python Perl Ruby
  • 6. FEATURES    High-Performance JIT Compiler Designed for Parallelism & Cloud Computing Free, Open Source & Library-Friendly
  • 7.
  • 8. DATATYPES Integers and Floating-Point Numbers Integer Types Int8— signed 8-bit integers ranging from -2^7 to 2^7 - 1. Uint8 — unsigned 8-bit integers ranging from 0 to 2^8 - 1. Int16 — signed 16-bit integers ranging from -2^15 to 2^15 - 1. Uint16 — unsigned 16-bit integers ranging from 0 to 2^16 - 1
  • 9. Int32 — signed 32-bit integers ranging from -2^31 to 2^31 - 1. Uint32 — unsigned 32-bit integers ranging from 0 to 2^32 - 1. Int64 — signed 64-bit integers ranging from -2^63 to 2^63 - 1.
  • 10. Uint64 — unsigned 64-bit integers ranging from 0 to 2^64 - 1. Int128 - signed 128-bit integers ranging from -2^127 to 2^127 - 1. Uint128 - unsigned 128-bit integers ranging from 0 to 2^128 - 1.
  • 11. Bool- either true or false, which correspond numerically to 1 and 0. Char- a 32-bit numeric type representing a Unicode character. Floating-point types: Float32- IEEE 754 32-bit floating-point numbers.  Float64-IEEE 754 64-bit floating-point numbers. 
  • 12. Arbitrary Precision Arithmetic   allow computations with arbitrary precision integers and floating point numbers The BigInt and BigFloat types are available in Julia for arbitrary precision integer and floating point numbers respectively.
  • 13. Numeric Literal Coefficients    make common numeric formulas and expressions clearer writing polynomial expressions much cleaner. makes writing exponential functions more elegant.
  • 14. Syntax Conflicts   The hexadecimal integer literal expression 0xff could be interpreted as the numeric literal 0 multiplied by the variable xff. The floating-point literal expression 1e10 could be interpreted as the numeric literal 1 multiplied by the variable e10, and similarly with the equivalent E form.
  • 15. MATHEMATICAL OPERATORS   Arithmetic Operators Bitwise Operators  Arithmetic operators • +x-unary plus is the identity operation. • x-unary minus maps values to their additive inverses. • x + y-binary plus performs addition. • x – y-binary minus performs subtraction. • x * y- times performs multiplication. • x / y-divide performs division.
  • 16. Bitwise Operators • ~x •x&y •x|y • x $ y• x >> y • x >> y• x << y bitwise not. bitwise and. bitwise or. bitwise xor. logical shift right. arithmetic shift right. logical/arithmetic shift left.
  • 17. NUMERIC COMPARISON  Comparison Operators • ==equality. • != inequality. • <less than. • <=less than or equal to. • >greater than. • >=greater than or equal to.
  • 18. MATHEMATICALFUNCTIONS o o Julia provides a comprehensive collection of mathematical functions and operators All the standard trignometric functions are inluded
  • 19. Some examples • sqrt(x)— the square root of x. • cbrt(x)— the cube root of x. • pow(x,y)—x raised to the exponent y. • exp(x)— the natural exponential function at x. • log(x)— the natural logarithm of x.
  • 20. Complex Numbers  We can perform all the standard arithmetic operations with complex numbers: julia> (1 + 2im)*(2 - 3im) 8 + 1im  Standard functions to manipulate complex values are provided: julia> real(1 + 2im) 1 Julia> imag(1 + 2im) 2 julia> conj(1 + 2im) 1 - 2im
  • 21. Rational Numbers   Julia has a rational number type to represent exact ratios of integers. Rationals are constructed using the // operator: If the numerator and denominator of a rational have common factors, they are reduced to lowest terms such that the denominator is nonnegative: Julia> 6//9 2//3 julia> 5//-15 -1//3
  • 22. STRINGS • Strings are finite sequences of characters. Julia supports the full range of unicode characters: Characters A Char value represents a single character: it is just a 32-bit integer with a special literal representation and appropriate arithmetic behaviors, whose numeric value is interpreted as a Unicode code point
  • 23. Interpolation    To reduce the need for these verbose calls to strcat, Julia allows interpolation into string literals using $, as in Perl: julia> "$greet, $whom.n" "Hello, world.n"
  • 24. STRING FUNCTIONS  strchr function: Julia> strchr("xylophone", ’x’) 1  repeat: julia> repeat(".:Z:.", 10) ".:Z:..:Z:..:Z:..:Z:..:Z:..:Z:..:Z:..:Z:.. :Z:..:Z:.“  •endof(str) gives the maximal (byte) index that can be used to index into str.
  • 25. • i = start(str) gives the first valid index at which a character can be found in str (typically 1). • c, j = next(str,i) returns next character at or after the index i and the next valid character index following that. With start and endof, can be used to iterate through the characters in str. • ind2chr(str,i) gives the number of characters in str up to and including any at index i • chr2ind(str,j) gives the index at which the jth character in str occurs.
  • 26. FUNCTIONS   In Julia, a function is an object that maps a tuple of argument values to a return value syntax for defining functions in Julia is: function f(x,y) x+y end
  • 27. CONTROL FLOW • Compound Expressions: begin and (;). • Conditional Evaluation: if-elseifelse and ?: (ternary operator). • Short-Circuit Evaluation: &&, || and chained comparisons. • Repeated Evaluation: Loops: while and for.
  • 28. Julia Standard Library There are 65 pacages in Julia some of them are: 1. ArgPars-Package for parsing command-line arguments to Julia programs. 2. Calculus-Calculus functions in Julia 3.Calendar-Calendar time package for Julia 4. Color-Basic color manipulation utilities
  • 29. 5.Graph-Working with graphs in Julia 6. HTTP-HTTP library (server, client, parser) for the Julia language 7. Languages-A package for working with human language 8.Sound-Reading and writing from WAV files (should probably be named WAV) 9. Winston-2D plotting for Julia
  • 30. Simple Ploting To plot sin(x) between 0 and 2π, you can go like this julia> xVector=[0:0.01:2*pi]; julia> yVector=0.0*xVector; julia> for n=1:length(xVector): yVector[n] = sin(xVector[n]); end julia> plot(xVector, yVector)
  • 31.
  • 32. Advantages of JULIA • Free and open source (MIT licensed) • User-defined types are as fast and compact as built-ins • Designed for parallelism and distributed computation • Elegant and extensible conversions and promotions for numeric and other types • Call C functions directly
  • 33. CONCLUSION Julia is a is a flexible dynamic language, appropriate for scientific and numerical computing Julia features optional typing, multiple dispatch, and good performance, achieved using type inference and justintime (JIT) compilation. Julia combines the features of many other Programing languages like C,Matlab,java etc. Which is useful for scientific computing.It is a User friendly and easly Understandable Programming Language
  • 34. REFERENCES "The Julia Language" (official website). O'Reilly Strata. Retrieved 7 February 2013.  Krill, Paul. "New Julia language seeks to be the C for scientists " InfoWorld. Retrieved 7 February 2013.  "Julia: A Fast Dynamic Language for Technical Computing" (PDF). 2012.  "Why We Created Julia"(World Wide Web log). Feb 2012. Retrieved 7 February 2013.  "The Julia Studio" (official website).  Julia Language Documentation Release development 