Question: Created on Tue Apr 3 0 2 1 : 3 2 : 0 5 2 0 2 4 @author: bia
Created on Tue Apr ::
@author: bia
from scipy import optimize
import numpy as np
import matplotlib.pyplot as plt
import math
Qa
V
D
I
massarea
sigma e
emiss
k
Tair
x
def fTb:
global Qout, C E M
M math.exp Tb massarea
if Tb :
E
if Tb and Tb :
E math.exp Tb
if Tb :
E math.exp Tb
E E massarea
Qout emiss sigma Tb I ME
hc k math. sqrtV math.sqrtD
C hc Tb Tair I ME
return M E Qa Qout C
global Qout, C E M
M math.expTb massarea
if Tb :
E
if Tb and Tb :
E math.exp Tb
if Tb :
E math.exp Tb
E E massarea
Qout emiss sigma Tb I ME
hc k math.sqrtV math.sqrt D
C hc Tb Tair I ME
return M E Qa Qout C
points
root npzeros points
wind npzeros points
for i in range points:
V i
windi V
rooti optimize.newtonf x
# plot first graph
pltplotwind root
linex
liney
pltplot linex liney, linesyles 'dashed'
pltxlabel wind speed ms
pltylabel 'Body temp degC
pltsavefig Lizard"
pltshow
I keep getting this error, please help me correct this so my program can run runfileUsersbiaDownloadsuntitledpy wdirUsersbiaDownloads
File ~Downloadsuntitledpy:
global Qout, C E M
SyntaxError: name 'Qout' is used prior to global declaration
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
