Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

All you have to do is to type one line of code for the Antoine equation in Matlab. the .xlxm files mentioned are not necessary

image text in transcribedimage text in transcribed

All you have to do is to type one line of code for the Antoine equation in Matlab. the .xlxm files mentioned are not necessary however I have attached the screenshot of the code in that file.

(General) antoine Option Explicit 7 m Function antoine (A As Double, B As Double, C As Double, T As Double) As Double antoine 10^ [A - B / (T + C)] only one line is needed if you do it correctly! 'Place your code here End Function Microsoft Visual Basic for Applications X Compile error: Expected: end of statement OK Help The Antoine equation allows one to predict the vapor pressure (Pvap, mm Hg) as a function of temperature (T, in Celsius): B Pvap = 104-T+C In the Antoine equation, A, B, and C are constants that you can look up in various references. For example, for methanol these Antoine coefficients are: A = 8.08097, B = 1582.271, C = 239.726. Download the file "Antoine_starter.xlsm" and fill in the code to successfully create the VBA function named antoine (A,B,C,T) with arguments for the Antoine coefficients and temperature. When you feel that your solution is working correctly (HINT: you only need to add a single line of code!), save your file, download "Antoine_grader.xlsm", click on "GRADE", and if you are correct you will earn the completion code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Chemical Engineering Analysis Using Mathematica

Authors: Henry C. Foley

1st Edition

0122619129, 978-0122619120

More Books

Students also viewed these Chemical Engineering questions