FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaProjects/src/fteste2.java at master · AndreUTF/JavaProjects · GitHub
AndreUTF
/
JavaProjects
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaProjects
/
src
/
fteste2.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (21 loc) · 1.15 KB
Breadcrumbs
JavaProjects
/
src
/
fteste2.java
Copy path
File metadata and controls
21 lines (21 loc) · 1.15 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public
class
fteste2
{
public
static
void
main
(
String
[]
args
) {
Circuito1_rserie
c1
=
new
Circuito1_rserie
(
100.0
,
100.0
,
10.0
);
Circuito2_rparalelo
c2
=
new
Circuito2_rparalelo
(
100.0
,
100.0
,
10.0
,
10
);
System
.
out
.
printf
(
"Req = %.5f.
\n
"
,
c1
.
Resistenciaequivalente
());
System
.
out
.
printf
(
"Ip = %.5f.
\n
"
,
c1
.
Calculocorrenteprincipal
());
System
.
out
.
printf
(
"V1 = %.5f.
\n
"
,
c1
.
Calculotensaoresistor1
());
System
.
out
.
printf
(
"V2 = %.5f.
\n
"
,
c1
.
Calculotensaoresistor2
());
System
.
out
.
printf
(
"Pt = %.5f.
\n
"
,
c1
.
Calculopotenciatotal
());
System
.
out
.
printf
(
"P1 = %.5f.
\n
"
,
c1
.
Calculopotenciaresistor1
());
System
.
out
.
printf
(
"P1 = %.5f.
\n
"
,
c1
.
Calculopotenciaresistor2
());
System
.
out
.
println
();
System
.
out
.
printf
(
"Req = %.5f.
\n
"
,
c2
.
Resistenciaequivalente
());
System
.
out
.
printf
(
"Ip = %.5f.
\n
"
,
c2
.
Calculocorrenteprincipal
());
System
.
out
.
printf
(
"I1 = %.5f.
\n
"
,
c2
.
Calculocorrenteresistor1
());
System
.
out
.
printf
(
"I2 = %.5f.
\n
"
,
c2
.
Calculocorrenteresistor2
());
System
.
out
.
printf
(
"Pt = %.5f.
\n
"
,
c2
.
Calculopotenciatotal
());
System
.
out
.
printf
(
"P1 = %.5f.
\n
"
,
c2
.
Calculopotenciaresistor1
());
System
.
out
.
printf
(
"P2 = %.5f.
\n
"
,
c2
.
Calculopotenciaresistor2
());
}
}
Back
|
FazBrowse Home
|
New Git URL