SlideShare a Scribd company logo
1 of 4
Function CP
#include <stdio.h>
#include <stdlib.h>
voidfonction_cp(void){
printf("tt<<<<<< Calcul de 'Cp' enfonctionde 'T' et'f' >>>>>>:n");
printf("n");
int t[16]={300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800};
floatf[6]={0.000,0.010,0.015,0.020,0.025,0.030};
floatcp[16][6]=
{{1.009,1.018,1.023,1.027,1.031,1.036},
{1.020,1.031,1.037,1.043,1.048,1.054},
{1.038,1.052,1.058,1.064,1.071,1.077},
{1.060,1.075,1.082,1.089,1.096,1.104},
{1.084,1.100,1.108,1.115,1.123,1.131},
{1.107,1.124,1.133,1.141,1.149,1.157},
{1.129,1.148,1.156,1.165,1.174,1.183},
{1.150,1.169,1.178,1.188,1.197,1.206},
{1.168,1.188,1.198,1.208,1.218,1.227},
{1.184,1.205,1.216,1.226,1.236,1.246},
{1.199,1.221,1.231,1.242,1.253,1.263},
{1.211,1.234,1.245,1.256,1.267,1.278},
{1.222,1.246,1.257,1.269,1.280,1.292},
{1.232,1.256,1.268,1.280,1.292,1.303},
{1.240,1.265,1.278,1.290,1.302,1.314},
{1.248,1.274,1.286,1.299,1.311,1.323}
};
intl=15,c=5;
floatT,F,T1,T2,F1,F2,CP,cp1,cp2;
intx=-1,y=-1,k=1;
int kh=1;
do{
do{
printf("--->Entrerune temperature 'T'comprise entre 300--1800 Kelvin:t");
scanf("%f",&T);
printf("n");
printf("--->Entrerunfuel airration 'f' comprisentre 0--0.030 :t");
scanf("%f",&F);
printf("n");
if(T<300 || T>1800 || F<0 || F > 0.030)
{kh=1;
printf("ERREUR:n");
printf("latemperature doitetre compriseentre 300--1800nle fuel airrationdoitetre comprisentre
0--0.030n");printf("n");}
else {kh=0;}
}
while(kh==1);
int i=l,j=c;
while (T<t[i]&&i>=0)
i=i-1;
if (T==t[i])
x=i;
if (T>t[i]){
T2=t[i+1];
T1=t[i];
}
while (F<f[j]&&j>=0)
j=j-1;
if (F==f[j])
y=j;
if (F>f[j]){
F1=f[j];
F2=f[j+1];
}
if ((x!=-1)&&(y!=-1))
CP=cp[x][y];
if( x==-1 && y==-1){
cp1=(((cp[i+1][j]-cp[i][j])/(T2-T1))*(T-T1))+cp[i][j];
cp2=(((cp[i+1][j+1]-cp[i][j+1])/(T2-T1))*(T-T1))+cp[i][j+1];
CP=((cp2-cp1)/(F2-F1))*(F-F1)+cp1;
}
if (x==-1)
CP=(((cp[i+1][j]-cp[i][j])/(T2-T1))*(T-T1))+cp[i][j];
if (y==-1)
CP=(((cp[i][j+1]-cp[i][j])/(F2-F1))*(F-F1))+cp[i][j];
printf("--->lavaleurde 'Cp'demandee est:t%1.3f",CP);
printf("n");
printf("n");
printf("si vousvoulezchercherune autre valeurde 'CP' tapez1 :t");
printf("n");
printf("n");
printf("si vousvoulezquitter tapez0:t");
printf("n");
scanf("%d",&k);
printf("n");
if(k==1){x=-1;y=-1;}
if(k!=1) k=0;
}
while(k==1);
}
intmain()
{
fonction_cp();
}
Fonction gamma
#include <stdio.h>
#include <stdlib.h>
voidfonction_gamma(void){
printf("tt<<<<<< 'GAMMA' en fonctionde 'T' et 'f' >>>>>>:n");
printf("n");
int t[16]={300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800};
floatf[6]={0.000,0.010,0.015,0.020,0.025,0.030};
floatgamma[16][6]=
{{1.400,1.395,1.393,1.391,1.388,1.386},
{1.394,1.388,1.385,1.382,1.380,1.377},
{1.384,1.378,1.375,1.372,1.369,1.366},
{1.373,1.367,1.363,1.360,1.357,1.354},
{1.362,1.355,1.352,1.349,1.346,1.343},
{1.352,1.345,1.342,1.338,1.335,1.332},
{1.343,1.336,1.332,1.329,1.326,1.323},
{1.335,1.327,1.324,1.321,1.318,1.314},
{1.328,1.320,1.317,1.314,1.310,1.307},
{1.322,1.314,1.311,1.308,1.304,1.301},
{1.317,1.309,1.306,1.302,1.299,1.296},
{1.312,1.305,1.301,1.298,1.295,1.291},
{1.309,1.301,1.298,1.294,1.291,1.288},
{1.306,1.290,1.294,1.291,1.288,1.284},
{1.303,1.295,1.292,1.288,1.285,1.281},
{1.300,1.293,1.289,1.286,1.282,1.279},
};
intl=15,c=5;
floatT,F,T1,T2,F1,F2,GAMMA,gamma1,gamma2;
intx=-1,y=-1,k=1;
intkh=1;
do{
do{
printf("--->Entrerune temperature 'T'comprise entre 300--1800 Kelvin:t");
scanf("%f",&T);
printf("n");
printf("--->Entrerunfuel airration 'f' compris entre 0--0.030 :t");
scanf("%f",&F);
printf("n");
if(T<300 || T>1800 || F<0 || F > 0.030)
{kh=1;
printf("ERREUR:n");
printf("latemperature doitetre compriseentre 300--1800nle fuel airrationdoitetre comprisentre
0--0.030n");printf("n");}
else {kh=0;}
}
while(kh==1);
int i=l,j=c;
while (T<t[i]&&i>=0)
i=i-1;
if (T==t[i])
x=i;
if (T>t[i]){
T2=t[i+1];
T1=t[i];
}
while (F<f[j]&&j>=0)
j=j-1;
if (F==f[j])
y=j;
if (F>f[j]){
F1=f[j];
F2=f[j+1];
}
if ((x!=-1)&&(y!=-1))
GAMMA=gamma[x][y];
if( x==-1 && y==-1){
gamma1=(((gamma[i+1][j]-gamma[i][j])/(T2-T1))*(T-T1))+gamma[i][j];
gamma2=(((gamma[i+1][j+1]-gamma[i][j+1])/(T2-T1))*(T-T1))+gamma[i][j+1];
GAMMA=((gamma2-gamma1)/(F2-F1))*(F-F1)+gamma1;
}
if (x==-1)
GAMMA=(((gamma[i+1][j]-gamma[i][j])/(T2-T1))*(T-T1))+gamma[i][j];
if (y==-1)
GAMMA=(((gamma[i][j+1]-gamma[i][j])/(F2-F1))*(F-F1))+gamma[i][j];
printf("--->lavaleurde 'GAMMA' demandee est:t%1.3f",GAMMA);
printf("n");
printf("n");
printf("si vousvoulezcalculerune autre valeurde 'GAMMA', tapez1 :t");
printf("n");
printf("n");
printf("si vousvoulezquittertapez0:t");
printf("n");
scanf("%d",&k);
printf("n");
if(k==1){x=-1;y=-1;}
if(k!=1) k=0;
}
while(k==1);
}
intmain()
{
fonction_gamma();
}

More Related Content

What's hot (20)

2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.js2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.js
 
ECMAScript 5: Новое в JavaScript
ECMAScript 5: Новое в JavaScriptECMAScript 5: Новое в JavaScript
ECMAScript 5: Новое в JavaScript
 
20151224-games
20151224-games20151224-games
20151224-games
 
JavaScript - Agora nervoso
JavaScript - Agora nervosoJavaScript - Agora nervoso
JavaScript - Agora nervoso
 
怖くない!Implicit!
怖くない!Implicit!怖くない!Implicit!
怖くない!Implicit!
 
5 1. character processing
5 1. character processing5 1. character processing
5 1. character processing
 
Tools.cpp
Tools.cppTools.cpp
Tools.cpp
 
Vcs23
Vcs23Vcs23
Vcs23
 
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollider
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollideropenFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollider
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollider
 
New text document
New text documentNew text document
New text document
 
Oops in c++
Oops in c++Oops in c++
Oops in c++
 
Es84
Es84Es84
Es84
 
11 1 포인터
11 1 포인터11 1 포인터
11 1 포인터
 
Artdm170 Week10 Arrays Math
Artdm170 Week10 Arrays MathArtdm170 Week10 Arrays Math
Artdm170 Week10 Arrays Math
 
Sbaw090519
Sbaw090519Sbaw090519
Sbaw090519
 
C++ Programming - 14th Study
C++ Programming - 14th StudyC++ Programming - 14th Study
C++ Programming - 14th Study
 
Stack array
Stack arrayStack array
Stack array
 
Data Structure - 2nd Study
Data Structure - 2nd StudyData Structure - 2nd Study
Data Structure - 2nd Study
 
Pratik Bakane C++
Pratik Bakane C++Pratik Bakane C++
Pratik Bakane C++
 
dplyr
dplyrdplyr
dplyr
 

Viewers also liked

Presentación orvelio vinasco
Presentación orvelio vinascoPresentación orvelio vinasco
Presentación orvelio vinascoOrvelio VS
 
JohnA.Roderesume
JohnA.RoderesumeJohnA.Roderesume
JohnA.RoderesumeJohn Rode
 
Brand style guide
Brand style guideBrand style guide
Brand style guideJim Venable
 
Ejemplo de Tabla hecha en Word
Ejemplo de Tabla hecha en WordEjemplo de Tabla hecha en Word
Ejemplo de Tabla hecha en WordDaniela Guerrero
 
¿Para que nos alimentamos
¿Para que nos alimentamos ¿Para que nos alimentamos
¿Para que nos alimentamos imaigonzalez
 
Tugas multivibrator
Tugas multivibratorTugas multivibrator
Tugas multivibratordamarsyehh68
 
Planificador AAMTIC - Aprendiendo con Tito y Tita
Planificador AAMTIC - Aprendiendo con Tito y TitaPlanificador AAMTIC - Aprendiendo con Tito y Tita
Planificador AAMTIC - Aprendiendo con Tito y TitaAngelaPatyMunoz
 
Coloured images of mum comparisions slideshare
Coloured images of mum comparisions   slideshareColoured images of mum comparisions   slideshare
Coloured images of mum comparisions slideshareHeather Underwood
 
Preguntas de ciencias
Preguntas de cienciasPreguntas de ciencias
Preguntas de cienciasinslebin_06
 
Interpretation Cases (redacted 20151123)
Interpretation Cases (redacted 20151123)Interpretation Cases (redacted 20151123)
Interpretation Cases (redacted 20151123)Wei Huang
 
FRANKLIN PIERCE SOFTBALL
FRANKLIN PIERCE SOFTBALLFRANKLIN PIERCE SOFTBALL
FRANKLIN PIERCE SOFTBALLwheelerz14
 
Modelling and remote sensing of land surface
Modelling and remote sensing of land surfaceModelling and remote sensing of land surface
Modelling and remote sensing of land surfacemehmet şahin
 

Viewers also liked (20)

Tcc manoel
Tcc manoel Tcc manoel
Tcc manoel
 
Presentación orvelio vinasco
Presentación orvelio vinascoPresentación orvelio vinasco
Presentación orvelio vinasco
 
JohnA.Roderesume
JohnA.RoderesumeJohnA.Roderesume
JohnA.Roderesume
 
Brand style guide
Brand style guideBrand style guide
Brand style guide
 
Ejemplo de Tabla hecha en Word
Ejemplo de Tabla hecha en WordEjemplo de Tabla hecha en Word
Ejemplo de Tabla hecha en Word
 
¿Para que nos alimentamos
¿Para que nos alimentamos ¿Para que nos alimentamos
¿Para que nos alimentamos
 
Tugas multivibrator
Tugas multivibratorTugas multivibrator
Tugas multivibrator
 
Planificador AAMTIC - Aprendiendo con Tito y Tita
Planificador AAMTIC - Aprendiendo con Tito y TitaPlanificador AAMTIC - Aprendiendo con Tito y Tita
Planificador AAMTIC - Aprendiendo con Tito y Tita
 
Edited photo banners
Edited photo bannersEdited photo banners
Edited photo banners
 
Coloured images of mum comparisions slideshare
Coloured images of mum comparisions   slideshareColoured images of mum comparisions   slideshare
Coloured images of mum comparisions slideshare
 
Preguntas de ciencias
Preguntas de cienciasPreguntas de ciencias
Preguntas de ciencias
 
Temario 8 a
Temario 8 a Temario 8 a
Temario 8 a
 
Activity 2.
Activity 2.Activity 2.
Activity 2.
 
Interpretation Cases (redacted 20151123)
Interpretation Cases (redacted 20151123)Interpretation Cases (redacted 20151123)
Interpretation Cases (redacted 20151123)
 
FRANKLIN PIERCE SOFTBALL
FRANKLIN PIERCE SOFTBALLFRANKLIN PIERCE SOFTBALL
FRANKLIN PIERCE SOFTBALL
 
final capstone
final capstonefinal capstone
final capstone
 
Sai Kumar P
Sai Kumar PSai Kumar P
Sai Kumar P
 
Taller 3 11 5
Taller 3  11 5Taller 3  11 5
Taller 3 11 5
 
Torrid Tropics Article
Torrid Tropics ArticleTorrid Tropics Article
Torrid Tropics Article
 
Modelling and remote sensing of land surface
Modelling and remote sensing of land surfaceModelling and remote sensing of land surface
Modelling and remote sensing of land surface
 

Similar to Code sources des fonctions table cp

Reverse Engineering: C++ for operator
Reverse Engineering: C++ for operatorReverse Engineering: C++ for operator
Reverse Engineering: C++ for operatorApriorit Inc.
 
Reverse Engineering: C++ "for" operator
Reverse Engineering: C++ "for" operatorReverse Engineering: C++ "for" operator
Reverse Engineering: C++ "for" operatorerithion
 
Os lab file c programs
Os lab file c programsOs lab file c programs
Os lab file c programsKandarp Tiwari
 
#include stdio.h#include stdlib.h#include string.h#inclu.pdf
#include stdio.h#include stdlib.h#include string.h#inclu.pdf#include stdio.h#include stdlib.h#include string.h#inclu.pdf
#include stdio.h#include stdlib.h#include string.h#inclu.pdfapleather
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical FileAshwin Francis
 
convert the following C code to Mips assembly with steps and comment.pdf
convert the following C code to Mips assembly with steps and comment.pdfconvert the following C code to Mips assembly with steps and comment.pdf
convert the following C code to Mips assembly with steps and comment.pdfmurtuzadahadwala3
 
5 c control statements looping
5  c control statements looping5  c control statements looping
5 c control statements loopingMomenMostafa
 
Network lap pgms 7th semester
Network lap pgms 7th semesterNetwork lap pgms 7th semester
Network lap pgms 7th semesterDOSONKA Group
 
Write a program to convert a given INFIX into POSTFIX. Make sure .pdf
Write a program to convert a given INFIX into POSTFIX. Make sure .pdfWrite a program to convert a given INFIX into POSTFIX. Make sure .pdf
Write a program to convert a given INFIX into POSTFIX. Make sure .pdfFOREVERPRODUCTCHD
 
data structure and algorithm.pdf
data structure and algorithm.pdfdata structure and algorithm.pdf
data structure and algorithm.pdfAsrinath1
 
COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops Hemantha Kulathilake
 

Similar to Code sources des fonctions table cp (20)

Reverse Engineering: C++ for operator
Reverse Engineering: C++ for operatorReverse Engineering: C++ for operator
Reverse Engineering: C++ for operator
 
Reverse Engineering: C++ "for" operator
Reverse Engineering: C++ "for" operatorReverse Engineering: C++ "for" operator
Reverse Engineering: C++ "for" operator
 
Os lab 1st mid
Os lab 1st midOs lab 1st mid
Os lab 1st mid
 
Os lab upto_1st_mid
Os lab upto_1st_midOs lab upto_1st_mid
Os lab upto_1st_mid
 
Os lab upto 1st mid
Os lab upto 1st midOs lab upto 1st mid
Os lab upto 1st mid
 
VTU Data Structures Lab Manual
VTU Data Structures Lab ManualVTU Data Structures Lab Manual
VTU Data Structures Lab Manual
 
Os lab file c programs
Os lab file c programsOs lab file c programs
Os lab file c programs
 
#include stdio.h#include stdlib.h#include string.h#inclu.pdf
#include stdio.h#include stdlib.h#include string.h#inclu.pdf#include stdio.h#include stdlib.h#include string.h#inclu.pdf
#include stdio.h#include stdlib.h#include string.h#inclu.pdf
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical File
 
convert the following C code to Mips assembly with steps and comment.pdf
convert the following C code to Mips assembly with steps and comment.pdfconvert the following C code to Mips assembly with steps and comment.pdf
convert the following C code to Mips assembly with steps and comment.pdf
 
5 c control statements looping
5  c control statements looping5  c control statements looping
5 c control statements looping
 
Network lap pgms 7th semester
Network lap pgms 7th semesterNetwork lap pgms 7th semester
Network lap pgms 7th semester
 
Sbaw090623
Sbaw090623Sbaw090623
Sbaw090623
 
Write a program to convert a given INFIX into POSTFIX. Make sure .pdf
Write a program to convert a given INFIX into POSTFIX. Make sure .pdfWrite a program to convert a given INFIX into POSTFIX. Make sure .pdf
Write a program to convert a given INFIX into POSTFIX. Make sure .pdf
 
data structure and algorithm.pdf
data structure and algorithm.pdfdata structure and algorithm.pdf
data structure and algorithm.pdf
 
C programming
C programmingC programming
C programming
 
Struct examples
Struct examplesStruct examples
Struct examples
 
Circular queue
Circular queueCircular queue
Circular queue
 
Vcs5
Vcs5Vcs5
Vcs5
 
COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops
 

Recently uploaded

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 

Recently uploaded (20)

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 

Code sources des fonctions table cp

  • 1. Function CP #include <stdio.h> #include <stdlib.h> voidfonction_cp(void){ printf("tt<<<<<< Calcul de 'Cp' enfonctionde 'T' et'f' >>>>>>:n"); printf("n"); int t[16]={300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800}; floatf[6]={0.000,0.010,0.015,0.020,0.025,0.030}; floatcp[16][6]= {{1.009,1.018,1.023,1.027,1.031,1.036}, {1.020,1.031,1.037,1.043,1.048,1.054}, {1.038,1.052,1.058,1.064,1.071,1.077}, {1.060,1.075,1.082,1.089,1.096,1.104}, {1.084,1.100,1.108,1.115,1.123,1.131}, {1.107,1.124,1.133,1.141,1.149,1.157}, {1.129,1.148,1.156,1.165,1.174,1.183}, {1.150,1.169,1.178,1.188,1.197,1.206}, {1.168,1.188,1.198,1.208,1.218,1.227}, {1.184,1.205,1.216,1.226,1.236,1.246}, {1.199,1.221,1.231,1.242,1.253,1.263}, {1.211,1.234,1.245,1.256,1.267,1.278}, {1.222,1.246,1.257,1.269,1.280,1.292}, {1.232,1.256,1.268,1.280,1.292,1.303}, {1.240,1.265,1.278,1.290,1.302,1.314}, {1.248,1.274,1.286,1.299,1.311,1.323} }; intl=15,c=5; floatT,F,T1,T2,F1,F2,CP,cp1,cp2; intx=-1,y=-1,k=1; int kh=1; do{ do{ printf("--->Entrerune temperature 'T'comprise entre 300--1800 Kelvin:t"); scanf("%f",&T); printf("n"); printf("--->Entrerunfuel airration 'f' comprisentre 0--0.030 :t"); scanf("%f",&F); printf("n"); if(T<300 || T>1800 || F<0 || F > 0.030) {kh=1; printf("ERREUR:n"); printf("latemperature doitetre compriseentre 300--1800nle fuel airrationdoitetre comprisentre 0--0.030n");printf("n");} else {kh=0;} } while(kh==1); int i=l,j=c; while (T<t[i]&&i>=0) i=i-1; if (T==t[i]) x=i;
  • 2. if (T>t[i]){ T2=t[i+1]; T1=t[i]; } while (F<f[j]&&j>=0) j=j-1; if (F==f[j]) y=j; if (F>f[j]){ F1=f[j]; F2=f[j+1]; } if ((x!=-1)&&(y!=-1)) CP=cp[x][y]; if( x==-1 && y==-1){ cp1=(((cp[i+1][j]-cp[i][j])/(T2-T1))*(T-T1))+cp[i][j]; cp2=(((cp[i+1][j+1]-cp[i][j+1])/(T2-T1))*(T-T1))+cp[i][j+1]; CP=((cp2-cp1)/(F2-F1))*(F-F1)+cp1; } if (x==-1) CP=(((cp[i+1][j]-cp[i][j])/(T2-T1))*(T-T1))+cp[i][j]; if (y==-1) CP=(((cp[i][j+1]-cp[i][j])/(F2-F1))*(F-F1))+cp[i][j]; printf("--->lavaleurde 'Cp'demandee est:t%1.3f",CP); printf("n"); printf("n"); printf("si vousvoulezchercherune autre valeurde 'CP' tapez1 :t"); printf("n"); printf("n"); printf("si vousvoulezquitter tapez0:t"); printf("n"); scanf("%d",&k); printf("n"); if(k==1){x=-1;y=-1;} if(k!=1) k=0; } while(k==1); } intmain() { fonction_cp(); }
  • 3. Fonction gamma #include <stdio.h> #include <stdlib.h> voidfonction_gamma(void){ printf("tt<<<<<< 'GAMMA' en fonctionde 'T' et 'f' >>>>>>:n"); printf("n"); int t[16]={300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800}; floatf[6]={0.000,0.010,0.015,0.020,0.025,0.030}; floatgamma[16][6]= {{1.400,1.395,1.393,1.391,1.388,1.386}, {1.394,1.388,1.385,1.382,1.380,1.377}, {1.384,1.378,1.375,1.372,1.369,1.366}, {1.373,1.367,1.363,1.360,1.357,1.354}, {1.362,1.355,1.352,1.349,1.346,1.343}, {1.352,1.345,1.342,1.338,1.335,1.332}, {1.343,1.336,1.332,1.329,1.326,1.323}, {1.335,1.327,1.324,1.321,1.318,1.314}, {1.328,1.320,1.317,1.314,1.310,1.307}, {1.322,1.314,1.311,1.308,1.304,1.301}, {1.317,1.309,1.306,1.302,1.299,1.296}, {1.312,1.305,1.301,1.298,1.295,1.291}, {1.309,1.301,1.298,1.294,1.291,1.288}, {1.306,1.290,1.294,1.291,1.288,1.284}, {1.303,1.295,1.292,1.288,1.285,1.281}, {1.300,1.293,1.289,1.286,1.282,1.279}, }; intl=15,c=5; floatT,F,T1,T2,F1,F2,GAMMA,gamma1,gamma2; intx=-1,y=-1,k=1; intkh=1; do{ do{ printf("--->Entrerune temperature 'T'comprise entre 300--1800 Kelvin:t"); scanf("%f",&T); printf("n"); printf("--->Entrerunfuel airration 'f' compris entre 0--0.030 :t"); scanf("%f",&F); printf("n"); if(T<300 || T>1800 || F<0 || F > 0.030) {kh=1; printf("ERREUR:n"); printf("latemperature doitetre compriseentre 300--1800nle fuel airrationdoitetre comprisentre 0--0.030n");printf("n");} else {kh=0;} } while(kh==1);
  • 4. int i=l,j=c; while (T<t[i]&&i>=0) i=i-1; if (T==t[i]) x=i; if (T>t[i]){ T2=t[i+1]; T1=t[i]; } while (F<f[j]&&j>=0) j=j-1; if (F==f[j]) y=j; if (F>f[j]){ F1=f[j]; F2=f[j+1]; } if ((x!=-1)&&(y!=-1)) GAMMA=gamma[x][y]; if( x==-1 && y==-1){ gamma1=(((gamma[i+1][j]-gamma[i][j])/(T2-T1))*(T-T1))+gamma[i][j]; gamma2=(((gamma[i+1][j+1]-gamma[i][j+1])/(T2-T1))*(T-T1))+gamma[i][j+1]; GAMMA=((gamma2-gamma1)/(F2-F1))*(F-F1)+gamma1; } if (x==-1) GAMMA=(((gamma[i+1][j]-gamma[i][j])/(T2-T1))*(T-T1))+gamma[i][j]; if (y==-1) GAMMA=(((gamma[i][j+1]-gamma[i][j])/(F2-F1))*(F-F1))+gamma[i][j]; printf("--->lavaleurde 'GAMMA' demandee est:t%1.3f",GAMMA); printf("n"); printf("n"); printf("si vousvoulezcalculerune autre valeurde 'GAMMA', tapez1 :t"); printf("n"); printf("n"); printf("si vousvoulezquittertapez0:t"); printf("n"); scanf("%d",&k); printf("n"); if(k==1){x=-1;y=-1;} if(k!=1) k=0; } while(k==1); } intmain() { fonction_gamma(); }