👉 Watch the video: https://www.youtube.com/watch?v=WiQqqB9MlkA 👈
Elegant Solutions for Everyday Python Problems - Pycon 2018
Are you an intermediate python developer looking to level up? Luckily, python provides us with a unique set of tools to make our code more elegant and readable by providing language features that make your code more intuitive and cut down on repetition. In this talk, I’ll share practical pythonic solutions for supercharging your code.
Specifically, I'll cover:
What magic methods are, and show you how to use them in your own code.
When and how to use partial methods.
An explanation of ContextManagers and Decorators, as well as multiple techniques for implementing them.
How to effectively use NamedTuples, and even subclass and extend them!
Lastly, I'll go over some example code that ties many of these techniques together in a cohesive way. You'll leave this talk feeling confident about using these tools and techniques in your next python project!
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
👉 Watch the video: https://www.youtube.com/watch?v=WiQqqB9MlkA 👈
Elegant Solutions for Everyday Python Problems - Pycon 2018
Are you an intermediate python developer looking to level up? Luckily, python provides us with a unique set of tools to make our code more elegant and readable by providing language features that make your code more intuitive and cut down on repetition. In this talk, I’ll share practical pythonic solutions for supercharging your code.
Specifically, I'll cover:
What magic methods are, and show you how to use them in your own code.
When and how to use partial methods.
An explanation of ContextManagers and Decorators, as well as multiple techniques for implementing them.
How to effectively use NamedTuples, and even subclass and extend them!
Lastly, I'll go over some example code that ties many of these techniques together in a cohesive way. You'll leave this talk feeling confident about using these tools and techniques in your next python project!
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSveerababupersonal22
It consists of cw radar and fmcw radar ,range measurement,if amplifier and fmcw altimeterThe CW radar operates using continuous wave transmission, while the FMCW radar employs frequency-modulated continuous wave technology. Range measurement is a crucial aspect of radar systems, providing information about the distance to a target. The IF amplifier plays a key role in signal processing, amplifying intermediate frequency signals for further analysis. The FMCW altimeter utilizes frequency-modulated continuous wave technology to accurately measure altitude above a reference point.
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...ssuser7dcef0
Power plants release a large amount of water vapor into the
atmosphere through the stack. The flue gas can be a potential
source for obtaining much needed cooling water for a power
plant. If a power plant could recover and reuse a portion of this
moisture, it could reduce its total cooling water intake
requirement. One of the most practical way to recover water
from flue gas is to use a condensing heat exchanger. The power
plant could also recover latent heat due to condensation as well
as sensible heat due to lowering the flue gas exit temperature.
Additionally, harmful acids released from the stack can be
reduced in a condensing heat exchanger by acid condensation. reduced in a condensing heat exchanger by acid condensation.
Condensation of vapors in flue gas is a complicated
phenomenon since heat and mass transfer of water vapor and
various acids simultaneously occur in the presence of noncondensable
gases such as nitrogen and oxygen. Design of a
condenser depends on the knowledge and understanding of the
heat and mass transfer processes. A computer program for
numerical simulations of water (H2O) and sulfuric acid (H2SO4)
condensation in a flue gas condensing heat exchanger was
developed using MATLAB. Governing equations based on
mass and energy balances for the system were derived to
predict variables such as flue gas exit temperature, cooling
water outlet temperature, mole fraction and condensation rates
of water and sulfuric acid vapors. The equations were solved
using an iterative solution technique with calculations of heat
and mass transfer coefficients and physical properties.
Using recycled concrete aggregates (RCA) for pavements is crucial to achieving sustainability. Implementing RCA for new pavement can minimize carbon footprint, conserve natural resources, reduce harmful emissions, and lower life cycle costs. Compared to natural aggregate (NA), RCA pavement has fewer comprehensive studies and sustainability assessments.
Hierarchical Digital Twin of a Naval Power SystemKerry Sado
A hierarchical digital twin of a Naval DC power system has been developed and experimentally verified. Similar to other state-of-the-art digital twins, this technology creates a digital replica of the physical system executed in real-time or faster, which can modify hardware controls. However, its advantage stems from distributing computational efforts by utilizing a hierarchical structure composed of lower-level digital twin blocks and a higher-level system digital twin. Each digital twin block is associated with a physical subsystem of the hardware and communicates with a singular system digital twin, which creates a system-level response. By extracting information from each level of the hierarchy, power system controls of the hardware were reconfigured autonomously. This hierarchical digital twin development offers several advantages over other digital twins, particularly in the field of naval power systems. The hierarchical structure allows for greater computational efficiency and scalability while the ability to autonomously reconfigure hardware controls offers increased flexibility and responsiveness. The hierarchical decomposition and models utilized were well aligned with the physical twin, as indicated by the maximum deviations between the developed digital twin hierarchy and the hardware.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
1. DEPARTMENT OF INFORMATION SCIENCE
Fibonacci series using pthreads
Presented By-
ROHAN H RAJ 1BI20IS071
RAKSHITHA S 1BI20IS070
RUDRA MRIGNAK 1BI20IS072
SAGAR GHOSH 1BI20IS073
Faculty In charge:
Dr. Hema Jagadish
Associate Professor
Dept of ISE, BIT, Bangalore
BANGALORE INSTITUTE OF TECHNOLOGY
2. Fibonacci program in c pthread
In a Fibonacci series, every number (except the first two numbers) is the sum of
the previous two numbers.The mathematical formula for a Fibonacci series is:
F(n) = F(n - 1) + F(n - 2)F(n)=F(n−1)+F(n−2)
Here, F(n) represents the n^{th}nth Fibonacci number.
3. In Java, we can use different techniques like recursion and memoization to
create a Fibonacci series. Let us take a look at a few examples to understand
how can we create the Fibonacci series.
4. Example 1
Fibonacci series using recursion in Java To calculate the Fibonacci series using
we need to create a function so that we can perform recursion. This function
input. The function checks whether the input number is 0, 1, or 2, and it
respectively, if the input is any one of the three numbers. If the input is greater
function calls itself recursively for the previous values until the value of the input
becomes less than or equal to 2. So if the function receives an integer n as input,
the n^th^ Fibonacci number. To print the Fibonacci series we will call this
each Fibonacci number.
5. public class FibonacciCalc
{
public static int fibRecursion(int count)
{
if (count == 0)
{
return 0;
}
if (count == 1 || count == 2)
{
return 1;
}return fibRecursion(count - 1) + fibRecursion(count - 2);
}
public static void main(String args[])
{
int fib_len = 9;
System.out.print("Fibonacci Series of " + fib_len + " numbers is:
n");
for (int i = 0; i < fib_len; i++)
{
System.out.print(fibRecursion(i) + " ");
}
}
}
6. Output of the program:
Fibonacci Series of 9 numbers is: 0 1 1 2 3 5 8 13 21
7. In the above example, we defined a recursive function fib Recursion to get nth Fibonacci
number and call it repeatedly (for i=0 to i=8) in order to create a Fibonacci series of length
9.
8. Implementation in C
#include <pthread.h>
#include <stdio.h>
int fib;/* this data is shared by the thread(s) */
void *runner(void *param); /* the thread */
int main(int argc, char *argv[])
{ pthread_t tid; /* the thread identifier */
pthread_attr_t attr; /* set of attributes for the thread */
if (argc != 2)
{
fprintf(stderr,"usage: a.out <integer value>n");
return -1;
}
if (atoi(argv[1]) < 0)
{
fprintf(stderr,"Argument %d must be non-negativen",atoi(argv[1]));
return -1;
}
/* get the default attributes */
pthread_attr_init(&attr);
/* create the thread */
pthread_create(&tid,&attr,runner,argv[1]);
/* now wait for the thread to exit */
pthread_join(tid,NULL);
printf("Fibonacci = %dn",fib);
}
9. if (atoi(argv[1]) < 0)
{
fprintf(stderr,"Argument %d must be non-negativen",atoi(argv[1]));
return -1;
}
/* get the default attributes */
pthread_attr_init(&attr);
/* create the thread */
pthread_create(&tid,&attr,runner,argv[1]);
/* now wait for the thread to exit */
pthread_join(tid,NULL);
printf("Fibonacci = %dn",fib);
}
void *runner(void *param)
{
int i, upper = atoi(param);
fib= 1;
if (upper > 0)
{
int pre1 = 0;
int pre2 = 1;
int current ;
if (fib == 1)
10. {
printf("The Fibonacci sequence for the number you entered is n");
printf("%dn",pre1);
exit(0);
}
else if (fib == 2)
{
printf("The Fibonacci sequence for the number you entered is n");
printf("%d , %dn",pre1 ,pre2 );
exit(0);
}
else { int j=3;
printf(" nThe Fibonacci sequence for the number you entered is n %d , %d ,",pre1,pre2 );
for(j = 3; j <= fib; j++)
{
current = pre2 + pre1;
pre1 = pre2;
pre2 = current;
printf(" %d ,",current)
}
}
}
pthread_exit(0);
}
*/ ("Foon");
12. Time And Space Complexity
The time complexity of the recursive approach to solving the
is O(2^n)O(2n) i.e. exponential time. The space complexity of the
method is O(n), if we consider the recursive stack.
Exponential time complexity is extremely inefficient. It would take
calculate the Fibonacci series of a huge length using the recursive
solve this problem, we can use the memorization technique to
Fibonacci series. This technique is much faster than the recursive