This document discusses convergence of sequences and series. It defines a sequence as an ordered list of objects and describes how to write the first few terms. A sequence converges if its terms get closer to a single value, while a divergent sequence does not. Infinite series represent the sum of the terms in a sequence. A series converges if the partial sums converge to a finite limit. Geometric series have a common ratio between terms and their sums can be determined based on this ratio. The integral test can be used to determine if a series converges by comparing it to a corresponding integral.
This document discusses the concepts of capacitance and capacitors. It defines capacitance as the ability of a conductor to store charges, with the capacitance of a conductor being equal to the amount of charge needed to change its potential by 1 volt. A capacitor is formed when two conductors are separated by an insulator. When charged, one plate gains electrons and becomes negatively charged while the other loses electrons and becomes positively charged. The capacitance of a capacitor depends on the size, shape, and distance between its conducting plates as well as the dielectric material between them. Common units of capacitance include the farad and its submultiples like microfarads and picofarads.
This document provides a summary of Lecture 2 on electrostatics. It introduces fundamental concepts such as electric charge, Coulomb's law, electric field, electric potential, and the relationship between electric field and electric potential. Continuous distributions of charge such as volume, surface, and line charges are also discussed. Key equations for calculating electric fields and potentials from these various charge distributions are presented.
Vector calculus is a branch of mathematics that deals with differentiation and integration of vector fields, especially in 3D Euclidean space. It studies scalar and vector fields, where a scalar field assigns a numerical value to each point in space and a vector field assigns a magnitude and direction. Vector calculus also examines vector operations like scalar and vector multiplication, addition, dot and cross products, and their applications.
This chapter discusses sinusoidal waveforms which are fundamental to alternating current (AC) circuits. Sine waves are characterized by their amplitude and period. The chapter covers definitions of peak, RMS, average values and how to relate period and frequency. It also discusses how sinusoidal voltages are generated and defines concepts like phase shift and phasors which allow analysis of AC circuits using trigonometry. The chapter concludes with an overview of pulse waveforms.
This document discusses using the Lissajous method to measure frequency and phase using an oscilloscope. The Lissajous method plots two input signals on the vertical and horizontal axes of the oscilloscope, resulting in a pattern. If the frequencies are in an integer ratio, the pattern will be stationary. By keeping one frequency constant and varying the other, the ratio can be determined when the pattern stands still. The phase relationship between the signals can also be determined from the shape and orientation of the Lissajous pattern.
Stereochemistry in drug design discusses the importance of stereochemistry in drug development. It covers different types of stereoisomers like enantiomers and diastereoisomers and geometric isomers. It also discusses the thalidomide disaster and Easson-Stedman hypothesis that differences in biological activity between enantiomers result from selective reactivity of one enantiomer with receptors requiring a three-point fit. Finally, it provides examples of drugs with multiple chiral centers, geometric isomerism, conformational isomers, and acetylcholine.
This chapter discusses stereochemistry and chirality. It defines stereoisomers such as enantiomers, which are nonsuperimposable mirror images, and diastereomers, which are not mirror images. Chiral carbons have four different groups and exist as enantiomers. Enantiomers have identical properties except for how they interact with other chiral molecules and rotate plane-polarized light in opposite directions. Methods to determine chirality such as assigning R/S configurations and using Fischer projections are covered. The chapter also discusses resolving enantiomers through formation of diastereomers.
Wolff kishner reduction, Organic and heterocyclic chemistry, As per PCI sylll...Akhil Nagar
The Wolff-Kishner reduction is a chemical reaction that reduces ketones or aldehydes to hydrocarbons. It involves refluxing the carbonyl compound with hydrazine and a strong base like sodium hydroxide or potassium hydroxide. This causes the carbonyl group to be reduced to a methylene group, forming the corresponding hydrocarbon. The reaction proceeds through formation of a hydrazone intermediate that is deprotonated and collapsed to lose dinitrogen and form an alkylanion, which is then protonated to yield the reduced product. This reduction method is advantageous over other methods as it avoids the use of strongly acidic conditions that could cause side reactions.
Medindo a robustez de uma rede com o fator de resiliência presentation ciaw...dmarinojr
O documento discute a resiliência em redes de computadores e propõe uma métrica chamada Fator de Resiliência para medir a robustez de uma rede. O objetivo é obter uma métrica para avaliar quão resiliente é uma rede e validá-la comparando-a com métricas publicadas. A métrica proposta, o Fator de Resiliência, utiliza a k-conectividade parcial para medir a robustez ao remover combinações de vértices e calcular a porcentagem de testes que mantiveram a topologia conexa.
1) Fresnel's theory of diffraction explains that diffraction occurs due to the interference of secondary wavelets produced by unobstructed portions of the wavefront.
2) When considering the diffraction pattern at a point P, Fresnel divided the wavefront into concentric half-period zones centered on the point's pole O. The contribution of each zone to the intensity at P depends on the zone's area and distance from P.
3) For a large number of zones, the total intensity at P is approximately one fourth of that due to the first zone alone, explaining the dimming of light in diffraction patterns.
BT631-14-X-Ray_Crystallography_Crystal_SymmetryRajesh G
The document discusses crystal systems and symmetry in crystallography. It begins by defining an asymmetric unit and how symmetry operations are used to reconstruct the full unit cell from the asymmetric unit. It then discusses the seven crystal systems, 14 Bravais lattices, 32 point groups, and 230 space groups that describe all possible symmetries of crystal structures. It also notes that the chirality of amino acids limits protein crystals to one of 65 chiral space groups. In addition, it provides an overview of X-ray crystallography instrumentation, including X-ray sources, optics, detectors, and how a rotation instrument is used to collect diffraction data.
The format of this document is essentially "two papers in one," with the first chapter focusing on mostly theoretical considerations (although illustrated with an example), while the second chapter provides a practical, real-world example presented in the form of a tutorial.
Methods of Causal Inference: We will first introduce the reader to the idea of formal causal inference using the well-known example of Simpson\’s Paradox. Secondly, we will provide a brief summary of the Neyman-Rubin model, which represents a traditional statistical approach in this context. Once this method is established as a reference point, we will introduce two methods within the Bayesian network paradigm, Pearl\’s Do-Operator, which is based on "Graph Surgery", and a method based on "Likelihood Matching" algorithm (LM). LM allows fixing probability distributions and can be considered as a probabilistic extension of statistical matching.
Practical Applications of Direct Effects and Causal Inference: While our treatment of Neyman-Rubin is limited to the first chapter, the two Bayesian network-based methods will be further illustrated as practical applications in the second chapter. Special weight will be given to Likelihood Matching (LM), as it has not yet been documented in literature. We will explain the practical benefits of LM with a real-world business application and discuss observational and causal inference in the context of a marketing mix model. Using the marketing mix model as the principal example, we will go into greater detail regarding the analysis workflow, so the reader can use this example as a step-by-step guide to implementing such a model with BayesiaLab.
A relation is a set of ordered pairs that shows a relationship between elements of two sets. An ordered pair connects an element from one set to an element of another set. The domain of a relation is the set of first elements of each ordered pair, while the range is the set of second elements. Relations can be represented visually using arrow diagrams or directed graphs to show the connections between elements of different sets defined by the relation.
The document discusses how parabolic shapes help carry forces in suspension bridges by distributing them to the towers. It also explains how parabolic motion occurs due to gravity, with Galileo discovering that all thrown objects follow a parabolic path. Finally, it notes that parabolic reflectors can concentrate heat or sound by reflecting parallel rays to a focus.
The document discusses different conic sections including circles, parabolas, and their standard forms. A circle is defined as all points equidistant from a fixed center point. The standard form of a circle is (x-h)2 + (y-k)2 = r2, where (h,k) is the center and r is the radius. A parabola is defined as all points equidistant from a fixed focus point and directrix line. The standard forms of parabolas that open up, down, left or right are presented based on the location of the vertex, focus and directrix.
Cylindrical and spherical coordinates shalinishalini singh
In this Presentation, I have explained the co-ordinate system in three plain. ie Cylindrical, Spherical, Cartesian(Rectangular) along with its Differential formulas for length, area &volume.
This document discusses the four basic conic sections - circles, parabolas, ellipses, and hyperbolas. It provides the standard form equations and key characteristics for each conic section with varying positions of the vertex. Circles are defined by a center point and radius. Parabolas are defined by a focus, directrix, and vertex. Ellipses are defined by two foci and the sum of distances to these points. Hyperbolas are defined by two foci and the difference of distances to these points. Examples of each conic section in architecture and acoustics are also given.
This document discusses properties of ellipses. It defines an ellipse as the set of all points where the sum of the distances from two fixed points (foci) is a constant. Examples are provided to demonstrate how to find the standard equation of an ellipse given its foci or other properties, as well as how to determine points like the center, vertices, and covertices. Applications involving tunnel and bridge dimensions are also presented.
This summary combines slides from Melanie Tomlinson and Morrobea on the topic of parabolas. The key points covered include:
- The geometric definition of a parabola as the set of all points equidistant from a fixed point (the focus) and fixed line (the directrix).
- Parabolas can be represented using various equation forms including vertex form, standard form, and general form.
- Methods for graphing parabolas by identifying features like the vertex, axis of symmetry, x-intercepts, focus, and directrix.
- Applications of parabolas to model real-world situations like searchlights and radio telescopes.
This document provides instructions for an experiment using Atwood's machine to measure the acceleration due to gravity (g). Students will collect drop time data for different mass combinations and plot 1/t2 vs the mass difference (Δm). From the slope and intercept of the best-fit line, g and the frictional torque (Γ) can be determined. Constant parameters like pulley radius and the sum of masses will be measured. Students are reminded to record all raw measurements, show sample calculations, and compare their experimental value of g to the accepted value.
The document summarizes the key laws of black-body radiation:
1) Planck's law describes the spectrum of electromagnetic radiation emitted by a black body, relating the intensity of the emitted radiation to the frequency or wavelength and the temperature of the black body.
2) The Wien displacement law states that the peak wavelength of the black-body radiation spectrum shifts to shorter wavelengths as the temperature increases.
3) The Stefan–Boltzmann law describes the dependence of the total energy radiated per unit surface area of a black body on the temperature of the black body.
1) Diazines are six-membered heterocyclic compounds derived from benzene where two CH groups are replaced by nitrogen atoms. This can occur at the 1,2; 1,3; or 1,4 positions.
2) Pyrimidine is a diazine where the nitrogen atoms are at the 1,3 positions. It is aromatic in nature and plays an important role in nucleic acids and vitamin B1.
3) Pyrimidines undergo electrophilic and nucleophilic substitution reactions. Electrophilic substitution preferentially occurs at the 5th position while nucleophilic substitution occurs at the 2, 4, and 6th positions.
The document discusses parabolas and their key properties:
- A parabola is the set of all points equidistant from a fixed line called the directrix and a fixed point called the focus.
- The standard equation of a parabola depends on the orientation of its axis and vertex.
- Key properties include the axis of symmetry, direction of opening, and the length of the latus rectum.
Steroids, testosterone and progesteroneRudresh H M
1) Steroids are organic compounds that contain a cyclopentanoperhydrophenanthrene nucleus. They include hormones like vitamin D, bile acids, and sex hormones.
2) The document discusses the structural elucidation of the steroid hormones testosterone and progesterone. Testosterone is the main male sex hormone, while progesterone is a female sex hormone involved in the menstrual cycle and pregnancy.
3) Through analysis and reactions, the key features of each steroid's structure were determined, including functional groups, double bonds, and the characteristic tetracyclic steroid nucleus.
The document discusses C functions, including their definition, types, uses, and implementation. It notes that C functions allow large programs to be broken down into smaller, reusable blocks of code. There are two types of functions - library functions and user-defined functions. Functions are declared with a return type, name, and parameters. They are defined with a body of code between curly braces. Functions can be called within a program and allow code to be executed modularly and reused. Parameters can be passed by value or by reference. Functions can return values or not, and may or may not accept parameters. Overall, functions are a fundamental building block of C that improve code organization, reusability, and maintenance.
A function is a block of code that performs a specific task. It takes input, processes it, and returns output. There are two types of functions: library functions provided by the C language, and user-defined functions created by the programmer. Functions allow programmers to divide a large program into smaller, separate, and reusable parts of code. Functions make code more organized and modular.
This chapter discusses stereochemistry and chirality. It defines stereoisomers such as enantiomers, which are nonsuperimposable mirror images, and diastereomers, which are not mirror images. Chiral carbons have four different groups and exist as enantiomers. Enantiomers have identical properties except for how they interact with other chiral molecules and rotate plane-polarized light in opposite directions. Methods to determine chirality such as assigning R/S configurations and using Fischer projections are covered. The chapter also discusses resolving enantiomers through formation of diastereomers.
Wolff kishner reduction, Organic and heterocyclic chemistry, As per PCI sylll...Akhil Nagar
The Wolff-Kishner reduction is a chemical reaction that reduces ketones or aldehydes to hydrocarbons. It involves refluxing the carbonyl compound with hydrazine and a strong base like sodium hydroxide or potassium hydroxide. This causes the carbonyl group to be reduced to a methylene group, forming the corresponding hydrocarbon. The reaction proceeds through formation of a hydrazone intermediate that is deprotonated and collapsed to lose dinitrogen and form an alkylanion, which is then protonated to yield the reduced product. This reduction method is advantageous over other methods as it avoids the use of strongly acidic conditions that could cause side reactions.
Medindo a robustez de uma rede com o fator de resiliência presentation ciaw...dmarinojr
O documento discute a resiliência em redes de computadores e propõe uma métrica chamada Fator de Resiliência para medir a robustez de uma rede. O objetivo é obter uma métrica para avaliar quão resiliente é uma rede e validá-la comparando-a com métricas publicadas. A métrica proposta, o Fator de Resiliência, utiliza a k-conectividade parcial para medir a robustez ao remover combinações de vértices e calcular a porcentagem de testes que mantiveram a topologia conexa.
1) Fresnel's theory of diffraction explains that diffraction occurs due to the interference of secondary wavelets produced by unobstructed portions of the wavefront.
2) When considering the diffraction pattern at a point P, Fresnel divided the wavefront into concentric half-period zones centered on the point's pole O. The contribution of each zone to the intensity at P depends on the zone's area and distance from P.
3) For a large number of zones, the total intensity at P is approximately one fourth of that due to the first zone alone, explaining the dimming of light in diffraction patterns.
BT631-14-X-Ray_Crystallography_Crystal_SymmetryRajesh G
The document discusses crystal systems and symmetry in crystallography. It begins by defining an asymmetric unit and how symmetry operations are used to reconstruct the full unit cell from the asymmetric unit. It then discusses the seven crystal systems, 14 Bravais lattices, 32 point groups, and 230 space groups that describe all possible symmetries of crystal structures. It also notes that the chirality of amino acids limits protein crystals to one of 65 chiral space groups. In addition, it provides an overview of X-ray crystallography instrumentation, including X-ray sources, optics, detectors, and how a rotation instrument is used to collect diffraction data.
The format of this document is essentially "two papers in one," with the first chapter focusing on mostly theoretical considerations (although illustrated with an example), while the second chapter provides a practical, real-world example presented in the form of a tutorial.
Methods of Causal Inference: We will first introduce the reader to the idea of formal causal inference using the well-known example of Simpson\’s Paradox. Secondly, we will provide a brief summary of the Neyman-Rubin model, which represents a traditional statistical approach in this context. Once this method is established as a reference point, we will introduce two methods within the Bayesian network paradigm, Pearl\’s Do-Operator, which is based on "Graph Surgery", and a method based on "Likelihood Matching" algorithm (LM). LM allows fixing probability distributions and can be considered as a probabilistic extension of statistical matching.
Practical Applications of Direct Effects and Causal Inference: While our treatment of Neyman-Rubin is limited to the first chapter, the two Bayesian network-based methods will be further illustrated as practical applications in the second chapter. Special weight will be given to Likelihood Matching (LM), as it has not yet been documented in literature. We will explain the practical benefits of LM with a real-world business application and discuss observational and causal inference in the context of a marketing mix model. Using the marketing mix model as the principal example, we will go into greater detail regarding the analysis workflow, so the reader can use this example as a step-by-step guide to implementing such a model with BayesiaLab.
A relation is a set of ordered pairs that shows a relationship between elements of two sets. An ordered pair connects an element from one set to an element of another set. The domain of a relation is the set of first elements of each ordered pair, while the range is the set of second elements. Relations can be represented visually using arrow diagrams or directed graphs to show the connections between elements of different sets defined by the relation.
The document discusses how parabolic shapes help carry forces in suspension bridges by distributing them to the towers. It also explains how parabolic motion occurs due to gravity, with Galileo discovering that all thrown objects follow a parabolic path. Finally, it notes that parabolic reflectors can concentrate heat or sound by reflecting parallel rays to a focus.
The document discusses different conic sections including circles, parabolas, and their standard forms. A circle is defined as all points equidistant from a fixed center point. The standard form of a circle is (x-h)2 + (y-k)2 = r2, where (h,k) is the center and r is the radius. A parabola is defined as all points equidistant from a fixed focus point and directrix line. The standard forms of parabolas that open up, down, left or right are presented based on the location of the vertex, focus and directrix.
Cylindrical and spherical coordinates shalinishalini singh
In this Presentation, I have explained the co-ordinate system in three plain. ie Cylindrical, Spherical, Cartesian(Rectangular) along with its Differential formulas for length, area &volume.
This document discusses the four basic conic sections - circles, parabolas, ellipses, and hyperbolas. It provides the standard form equations and key characteristics for each conic section with varying positions of the vertex. Circles are defined by a center point and radius. Parabolas are defined by a focus, directrix, and vertex. Ellipses are defined by two foci and the sum of distances to these points. Hyperbolas are defined by two foci and the difference of distances to these points. Examples of each conic section in architecture and acoustics are also given.
This document discusses properties of ellipses. It defines an ellipse as the set of all points where the sum of the distances from two fixed points (foci) is a constant. Examples are provided to demonstrate how to find the standard equation of an ellipse given its foci or other properties, as well as how to determine points like the center, vertices, and covertices. Applications involving tunnel and bridge dimensions are also presented.
This summary combines slides from Melanie Tomlinson and Morrobea on the topic of parabolas. The key points covered include:
- The geometric definition of a parabola as the set of all points equidistant from a fixed point (the focus) and fixed line (the directrix).
- Parabolas can be represented using various equation forms including vertex form, standard form, and general form.
- Methods for graphing parabolas by identifying features like the vertex, axis of symmetry, x-intercepts, focus, and directrix.
- Applications of parabolas to model real-world situations like searchlights and radio telescopes.
This document provides instructions for an experiment using Atwood's machine to measure the acceleration due to gravity (g). Students will collect drop time data for different mass combinations and plot 1/t2 vs the mass difference (Δm). From the slope and intercept of the best-fit line, g and the frictional torque (Γ) can be determined. Constant parameters like pulley radius and the sum of masses will be measured. Students are reminded to record all raw measurements, show sample calculations, and compare their experimental value of g to the accepted value.
The document summarizes the key laws of black-body radiation:
1) Planck's law describes the spectrum of electromagnetic radiation emitted by a black body, relating the intensity of the emitted radiation to the frequency or wavelength and the temperature of the black body.
2) The Wien displacement law states that the peak wavelength of the black-body radiation spectrum shifts to shorter wavelengths as the temperature increases.
3) The Stefan–Boltzmann law describes the dependence of the total energy radiated per unit surface area of a black body on the temperature of the black body.
1) Diazines are six-membered heterocyclic compounds derived from benzene where two CH groups are replaced by nitrogen atoms. This can occur at the 1,2; 1,3; or 1,4 positions.
2) Pyrimidine is a diazine where the nitrogen atoms are at the 1,3 positions. It is aromatic in nature and plays an important role in nucleic acids and vitamin B1.
3) Pyrimidines undergo electrophilic and nucleophilic substitution reactions. Electrophilic substitution preferentially occurs at the 5th position while nucleophilic substitution occurs at the 2, 4, and 6th positions.
The document discusses parabolas and their key properties:
- A parabola is the set of all points equidistant from a fixed line called the directrix and a fixed point called the focus.
- The standard equation of a parabola depends on the orientation of its axis and vertex.
- Key properties include the axis of symmetry, direction of opening, and the length of the latus rectum.
Steroids, testosterone and progesteroneRudresh H M
1) Steroids are organic compounds that contain a cyclopentanoperhydrophenanthrene nucleus. They include hormones like vitamin D, bile acids, and sex hormones.
2) The document discusses the structural elucidation of the steroid hormones testosterone and progesterone. Testosterone is the main male sex hormone, while progesterone is a female sex hormone involved in the menstrual cycle and pregnancy.
3) Through analysis and reactions, the key features of each steroid's structure were determined, including functional groups, double bonds, and the characteristic tetracyclic steroid nucleus.
The document discusses C functions, including their definition, types, uses, and implementation. It notes that C functions allow large programs to be broken down into smaller, reusable blocks of code. There are two types of functions - library functions and user-defined functions. Functions are declared with a return type, name, and parameters. They are defined with a body of code between curly braces. Functions can be called within a program and allow code to be executed modularly and reused. Parameters can be passed by value or by reference. Functions can return values or not, and may or may not accept parameters. Overall, functions are a fundamental building block of C that improve code organization, reusability, and maintenance.
A function is a block of code that performs a specific task. It takes input, processes it, and returns output. There are two types of functions: library functions provided by the C language, and user-defined functions created by the programmer. Functions allow programmers to divide a large program into smaller, separate, and reusable parts of code. Functions make code more organized and modular.
The document discusses functions in C programming. It defines a function as a block of code that performs a specific task. There are two types of functions: predefined standard library functions and user-defined functions. The key aspects of a function are its declaration, definition, and call. Functions can be used to break a large program into smaller, reusable components. Parameters can be passed to functions by value or by reference. Recursion is when a function calls itself, and is used in algorithms like calculating factorials. Dynamic memory allocation allows programs to request memory at runtime using functions like malloc(), calloc(), realloc(), and free().
The document discusses functions in C programming. It defines what a function is and explains that functions can be used to break a large program into smaller modular pieces of code that can be reused. The key points covered include: defining functions with return types, parameters, and bodies; declaring functions; calling functions by passing arguments; and passing arguments by value vs reference. Examples are provided to demonstrate creating, calling, and passing arguments to functions. Recursion is also discussed as a special case where a function calls itself.
The document discusses C programming functions. It provides examples of defining, calling, and using functions to calculate factorials, Fibonacci sequences, HCF and LCM recursively and iteratively. Functions allow breaking programs into smaller, reusable blocks of code. They take in parameters, can return values, and have local scope. Function prototypes declare their interface so they can be called from other code locations.
The document discusses functions in C programming. It defines what a function is, how functions are declared and defined, how to pass arguments to functions, and different ways to call functions. It provides examples of using functions to calculate factorials, Fibonacci series, find the highest common factor and lowest common multiple of two numbers, and sum the digits of a number recursively. Various ways of implementing functions using loops, recursion, and by passing arguments are demonstrated through code examples.
The document discusses functions in C programming. It defines what a function is and describes the key parts of a function like the return type, function name, parameters, and function body. It provides examples of different types of functions like functions with and without arguments and return values. It also explains how parameters can be passed by value or by reference in functions and gives examples. Finally, it briefly mentions function scopes in C.
1. A function is a block of code that performs a specific task. Functions allow programmers to split a large program into smaller sub-tasks and call them multiple times.
2. There are two main types of functions - library functions provided by the standard library, and user-defined functions created by the programmer.
3. Functions make programs easier to write, read, update and debug by splitting them into smaller, well-defined tasks.
This document discusses different types of functions in C programming. It explains that functions can be predefined standard library functions or user-defined functions. It provides examples of functions with no return type and no arguments, functions with no return type but arguments, and functions with a return type but no arguments. The syntax for defining, declaring, and calling functions is also demonstrated.
The document discusses functions in C programming. It defines what a function is and explains the advantages of using functions, such as avoiding duplicate code and improving reusability. It describes the different parts of a function - declaration, definition, and call. It explains user-defined and standard library functions. It also covers parameter passing techniques (call by value and call by reference), recursion, and dynamic memory allocation using functions like malloc(), calloc(), realloc(), and free().
User Defined Function in C
- Functions modularize programs and allow for code reusability. Parameters allow communication between functions.
- A function definition includes a return type, name, parameters, and block of statements. Functions are called within other functions.
- Functions provide benefits like divide and conquer programming, manageable development, and abstraction that hides internal details.
The document discusses functions in C programming. It defines functions as blocks of code that perform a specific task and can be called multiple times. There are two types of functions: user-defined functions created by the programmer, and pre-defined functions that are part of standard libraries. Functions have three aspects - declaration, definition, and call. They can return a value or not, and take arguments or not. Examples are given of different function types. Recursion and string handling functions are also explained.
function in in thi pdf you will learn what is fu...kushwahashivam413
Functions in C can be divided into library functions and user-defined functions. Library functions are predefined in header files while user-defined functions are created by the programmer. There are three aspects of a function - declaration, definition, and call. The function declaration specifies the return type and parameters. The function definition contains the actual body of statements. The function call executes the function. Functions can be passed arguments and return values. Arguments can be passed by value or by reference, affecting whether changes inside the function affect the original variables.
The document discusses user-defined functions in C. It defines a user-defined function as a programmed routine with parameters set by the user. It covers the parts of a function including prototypes, calls, and definitions. It discusses passing parameters by value and reference. It also discusses local and global variables, recursion, and the advantages of user-defined functions in C.
A large program can be divided into smaller subprograms or functions. Functions make a program easier to write, read, update and debug by dividing it into self-contained tasks. Functions allow code to be reused and are called by the main program. Functions may accept arguments from the main program and return values to the main program. This allows two-way communication between functions and the main program.
This document discusses modular programming in C, specifically functions and parameters. It defines functions as blocks of code that perform specific tasks. Functions have components like declarations, definitions, parameters, return values, and scope. Parameters can be passed into functions and different storage classes like auto, static, and extern determine variable lifetime and scope. Functions are useful for code reusability and modularity.
The document discusses C functions. Some key points:
1. Functions allow breaking code into reusable chunks that perform specific tasks. The main() function is required in every C program.
2. Functions are declared with a return type, name, and parameters. Definitions include the function body.
3. Standard library functions like strcat() and memcpy() are pre-defined for common tasks.
4. Functions are called by name and pass arguments by value or reference. Parameters allow customizing a function's behavior.
5. Recursion allows a function to call itself, enabling solutions to problems like factorials and Fibonacci sequences.
Slides to support presentations and the publication of my book Well-Being and Creative Careers: What Makes You Happy Can Also Make You Sick, out in September 2025 with Intellect Books in the UK and worldwide, distributed in the US by The University of Chicago Press.
In this book and presentation, I investigate the systemic issues that make creative work both exhilarating and unsustainable. Drawing on extensive research and in-depth interviews with media professionals, the hidden downsides of doing what you love get documented, analyzing how workplace structures, high workloads, and perceived injustices contribute to mental and physical distress.
All of this is not just about what’s broken; it’s about what can be done. The talk concludes with providing a roadmap for rethinking the culture of creative industries and offers strategies for balancing passion with sustainability.
With this book and presentation I hope to challenge us to imagine a healthier future for the labor of love that a creative career is.
How to Configure Public Holidays & Mandatory Days in Odoo 18Celine George
In this slide, we’ll explore the steps to set up and manage Public Holidays and Mandatory Days in Odoo 18 effectively. Managing Public Holidays and Mandatory Days is essential for maintaining an organized and compliant work schedule in any organization.
How to Configure Scheduled Actions in odoo 18Celine George
Scheduled actions in Odoo 18 automate tasks by running specific operations at set intervals. These background processes help streamline workflows, such as updating data, sending reminders, or performing routine tasks, ensuring smooth and efficient system operations.
The role of wall art in interior designingmeghaark2110
Wall patterns are designs or motifs applied directly to the wall using paint, wallpaper, or decals. These patterns can be geometric, floral, abstract, or textured, and they add depth, rhythm, and visual interest to a space.
Wall art and wall patterns are not merely decorative elements, but powerful tools in shaping the identity, mood, and functionality of interior spaces. They serve as visual expressions of personality, culture, and creativity, transforming blank and lifeless walls into vibrant storytelling surfaces. Wall art, whether abstract, realistic, or symbolic, adds emotional depth and aesthetic richness to a room, while wall patterns contribute to structure, rhythm, and continuity in design. Together, they enhance the visual experience, making spaces feel more complete, welcoming, and engaging. In modern interior design, the thoughtful integration of wall art and patterns plays a crucial role in creating environments that are not only beautiful but also meaningful and memorable. As lifestyles evolve, so too does the art of wall decor—encouraging innovation, sustainability, and personalized expression within our living and working spaces.
*"The Segmented Blueprint: Unlocking Insect Body Architecture"*.pptxArshad Shaikh
Insects have a segmented body plan, typically divided into three main parts: the head, thorax, and abdomen. The head contains sensory organs and mouthparts, the thorax bears wings and legs, and the abdomen houses digestive and reproductive organs. This segmentation allows for specialized functions and efficient body organization.
Ajanta Paintings: Study as a Source of HistoryVirag Sontakke
This Presentation is prepared for Graduate Students. A presentation that provides basic information about the topic. Students should seek further information from the recommended books and articles. This presentation is only for students and purely for academic purposes. I took/copied the pictures/maps included in the presentation are from the internet. The presenter is thankful to them and herewith courtesy is given to all. This presentation is only for academic purposes.
This slide is an exercise for the inquisitive students preparing for the competitive examinations of the undergraduate and postgraduate students. An attempt is being made to present the slide keeping in mind the New Education Policy (NEP). An attempt has been made to give the references of the facts at the end of the slide. If new facts are discovered in the near future, this slide will be revised.
This presentation is related to the brief History of Kashmir (Part-I) with special reference to Karkota Dynasty. In the seventh century a person named Durlabhvardhan founded the Karkot dynasty in Kashmir. He was a functionary of Baladitya, the last king of the Gonanda dynasty. This dynasty ruled Kashmir before the Karkot dynasty. He was a powerful king. Huansang tells us that in his time Taxila, Singhpur, Ursha, Punch and Rajputana were parts of the Kashmir state.
2. WHAT IS C FUNCTION?
A large C program is divided into basic building blocks called C
function.
C function contains set of instructions enclosed by “{ }” which
performs specific operation in a C program.
Every C program has at least one function, which is main().
3. WHAT IS C FUNCTION?
A function declaration tells the compiler about a function's
name, return type, and parameters. A function definition provides
the actual body of the function.
The C standard library provides numerous built-in functions that
your program can call. For example, strcat() to concatenate two
strings,
A function can also be referred as a method or a sub-routine or a
procedure, etc.
4. USES OF C FUNCTIONS
C functions are used to avoid rewriting same logic/code again
and again in a program.
There is no limit in calling C functions to make use of same
functionality wherever required.
A large C program can easily be tracked when it is divided into
functions.
The core concept of C functions are, re-usability, dividing a big
task into small pieces to achieve the functionality and to
improve understandability of very large C programs.
5. Function declaration:
In a function declaration, we must provide the function name, its return type,
and the number and type of its parameters. A function declaration tells the
compiler that there is a function with the given name defined somewhere
else in the program.
Syntax
Example
return_type function_name (argument list);
7. Function definition:
The function definition consists of actual statements which are executed when
the function is called (i.e. when the program control comes to the function).
A C function is generally defined and declared in a single step because the
function definition always starts with the function declaration so we do not
need to declare it explicitly. The below example serves as both a function
definition and a declaration.
return_type function_name (arguments/parameter list)
{
Body of function;
}
9. Function call:
• A function call is a statement that instructs the compiler to execute the
function. We use the function name and parameters in the function call.
• The parameter list must not differ in function calling and function
declaration. We must pass the same number of functions as it is declared
in the function declaration.
Syntax
function_name (arguments/parameter list);
11. Function definition:
return_type function_name (arguments list)
{
Body of function;
}
Function call: function_name (arguments list);
Function declaration:
return_type function_name (argument list);
12. FUNCTION DECLARATION, FUNCTION CALL AND FUNCTION DEFINITION
There are 3 aspects in each C function. They are:
Function declaration or prototype – This informs compiler about the
function name, function parameters and return value’s data type.
Function call – This calls the actual function
Function definition – This contains all the statements to be executed.
15. #include <stdio.h>
// Function declaration (prototype)
int add(int a, int b);
int main()
{
int num1 = 5;
int num2 = 7;
int result;
// Function call
result = add(num1, num2);
printf("The sum is: %dn", result);
return 0;
}
// Function definition
int add(int a, int b)
{
return a + b;
}
16. #include<stdio.h>
int square ( int ); // function prototype, also called function declaration
int main( )
{
int m, n ;
printf ( "nEnter some number for finding square n");
scanf ( "%d", &m ) ;
n = square (m) ; // function call
printf ("nSquare of the given number %d is %d",m,n );
}
int square ( int x ) // function definition
{
int p ;
p = x * x ;
return p;
}
17. TYPES OF FUNCTIONS
There are two types of functions in C programming:
Library Functions: are the functions which are declared in the C
header files such as scanf(), printf(), gets(), puts(), pow() etc.
User-defined functions: are the functions which are created by the
C programmer, so that he/she can use it many times. It reduces
the complexity of a big program and optimizes the code.
18. HOW TO CALL C FUNCTIONS IN A PROGRAM?
There are two ways that a C function can be called from a program.
They are:
Call by value
Call by reference
Types of function parameters:
Actual parameter – This is the argument which is used in function
call.
Formal parameter – This is the argument which is used in function
definition
19. CALL BY VALUE
In call by value method, the copy of the variable is passed to the
function as parameter.
The value of the actual parameter can not be modified by formal
parameter.
Different Memory is allocated for both actual and formal
parameters. Because, value of actual parameter is copied to formal
parameter.
Note:
20. #include<stdio.h>
void swap(int a, int b); // function prototype, also called function declaration
void main()
{
int m = 22, n = 44;
printf(" values before swap m = %d n and n = %d", m, n);
swap(m, n); //call by value
printf(" nvalues after swap m = %dn and n = %d", m, n);
getch();
}
void swap(int m, int n)
{
int tmp;
tmp = m;
m = n;
n = tmp;
printf(" nvalues after swap m = %dn and n = %d", m, n);
}
21. CALL BY REFERENCE
In call by reference method, the address of the variable is
passed to the function as parameter.
The value of the actual parameter can be modified by formal
parameter.
Same memory is used for both actual and formal parameters
since only address is used by both parameters.
22. #include<stdio.h>
void swap(int *, int *); // function prototype, also called function declaration
void main()
{
int m = 22, n = 44;
printf("values before swap m = %d n and n = %d",m,n);
swap(&m, &n); // calling swap function by reference
printf("n values after swap m = %d n and n = %d", m, n);
getch();
}
void swap(int *a, int *b)
{
int tmp;
tmp = *a;
*a = *b;
*b = tmp;
printf("n Swap function values after swap a = %d nand b = %d", *a, *b);
}
23. C - SCOPE RULES
A scope in any programming is a region of the program where
a defined variable can have its existence and beyond that
variable it cannot be accessed.
There are three places where variables can be declared in C
programming language −
Inside a function or a block which is called local variables.
Outside of all functions which is called global variables.
In the definition of function parameters which are called formal
parameters.
24. LOCAL VARIABLES
Variables that are declared inside a function or block are called
local variables.
They can be used only by statements that are inside that
function or block of code.
Local variables are not known to functions outside their own.
25. We can define the User defined functions in multiple ways
Function with no argument and no Return value
Function with no argument and with Return value
Function with argument and No Return value
Function with argument and Return value
26. Function with No argument and No Return value
In this method, We won’t pass any arguments to the function while
defining, declaring or calling the function. This type of functions will not
return any value when we call the function from main() or any sub
function. When we are not expecting any return value but, we need
some statements to be printed as output then, this type of functions are
very useful.
#include<stdio.h>
void Addition(); // Function Declaration
int main()
{
printf("n ............. n");
Addition(); // Function call
}
void Addition()
{
int Sum, a = 10, b = 20;
Sum = a + b;
printf("n Sum of a = %d and b = %d is = %d", a, b, Sum);
}
27. Function with no argument and with Return value
n this method, We won’t pass any arguments to the function while defining, declaring or calling the function.
This type of functions will return some value when we call the function from main() or any sub function.
Data Type of the return value will depend upon the return type of function declaration.
For instance, if the return type is int then return value will be int.
#include<stdio.h>
int Multiplication();
int main()
{
int Multi;
Multi = Multiplication();
printf("n Multiplication of a and b is = %d n", Multi );
return 0;
}
int Multiplication()
{
int Multi, a = 20, b = 40;
Multi = a * b;
return Multi;
}
28. Function with argument and No Return value
This method allows us to pass the arguments to the function while calling the function. But, This type of functions will not
return any value when we call the function from main () or any sub function.
#include<stdio.h>
int Addition(int, int);
Int main()
{
int a, b;
printf("n Please Enter two integer values n");
scanf("%d %d",&a, &b);
Addition(a, b);
}
int Addition(int a, int b)
{
int Sum;
Sum = a + b;
printf("n Additiontion of %d and %d is = %d n", a, b, Sum);
}
29. Function with argument and Return value
This method allows us to pass the arguments to the function while calling the function. This type of functions will return
some value when we call the function from main () or any sub function. Data Type of the return value will depend upon the
return type of function declaration. For instance, if the return type is int then return value will be int.
#include<stdio.h>
int Multiplication(int, int);
int main()
{
int a, b, Multi;
printf("n Please Enter two integer values n");
scanf("%d %d",&a, &b);
Multi = Multiplication(a, b);
printf("n Multiplication of %d and %d is = %d n", a, b,
Multi);
return 0;
}
int Multiplication(int a, int b)
{
int Multi;
Multi = a * b;
return Multi;
}
30. Recursion
A function that calls itself is known as a recursive function.And, this technique is known as recursion.
In programming languages, if a program allows you to call a function inside the same function, then it
is called a recursive call of the function.
Syntax:
void recursion()
{
recursion(); /* function calls itself */
}
int main()
{
recursion();
}
31. Factorial using Recursion
#include <stdio.h>
int fact (int);
int main()
{
int n,f;
printf("Enter the number whose f
actorial you want to calculate?");
scanf("%d",&n);
f = fact(n);
printf("factorial = %d",f);
}
int fact(int n)
{
if (n==0)
{
return 0;
}
else if ( n == 1)
{
return 1;
}
else
{
return n*fact(n-1);
}
}
33. Advantages & Disadvantages of Recursion
Advantage
Recursion makes program elegant and cleaner.All algorithms can be defined recursively which makes it easier to visualize and prove.
Reduce unnecessary calling of function.
Disadvantage
If the speed of the program is vital then, you should avoid using recursion. Recursions use more memory and are generally slow.
Instead, you can use loop.
programmers need to be careful to define an exit condition from the function, otherwise it will go into an infinite loop.
Recursive solution is always logical and it is very difficult to trace.(debug and understand).
In recursive we must have an if statement somewhere to force the function to return without the recursive call being executed,
otherwise the function will never return.
Recursion takes a lot of stack space, usually not considerable when the program is small and running on a PC.
Recursion uses more processor time
34. • C Standard library functions or simply C Library functions are inbuilt functions in C programming.
• The prototype and data definitions of the functions are present in their respective header files, and must be
included in your program to access them.
Advantages of using standard library functions:
1. They work
These functions have gone through multiple rigorous testing and are easy to use.
2. The functions are optimized for performance
In the process, they are able to create the most efficient code optimized for maximum performance.
3. It saves considerable development time
Since the general functions like printing to a screen, calculating the square root, and many more are already written.
You shouldn't worry about creating them once again.
It saves valuable time and your code may not always be the most efficient.
3. The functions are portable
With ever changing real world needs, your application is expected to work every time, everywhere.
And, these library functions help you in that they do the same thing on every computer.
This saves time, effort and makes your program portable.
Library functions
35. #include <stdio.h>
#include <math.h>
int main()
{
float num, root;
printf("Enter a number: ");
scanf("%f", &num); // Computes the square root of num and stores in root.
root = sqrt(num);
printf("Square root of %.2f = %.2f", num, root);
return 0;
}
37. #include <stdio.h>
#include <math.h>
#define PI 3.141592654
int main()
{
double num = 3.0;
double result;
result = atan(num);
printf("Inverse of tan(%.2f) = %.2f in radians",
num, result);
return 0;
}
38. #include <stdio.h>
#include <math.h>
#define PI 3.141592654
int main()
{
double num = 0.0;
double result;
result = acos(num);
printf("Inverse of tan(%.2f) = %.2f in
radians", num, result);
39. #include <stdio.h>
#include <math.h>
#define PI 3.141592654
int main()
{
double num = 2.0;
double result;
result = cos(num);
printf("Inverse of tan(%.2f) = %.2f in radians",
num, result);
return 0;
}