Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1.1. Given data in the Table 5.1. Write a simple program to form EN array for nen = 3 and ne = 5. Note

image text in transcribed

Problem 1.1. Given data in the Table 5.1. Write a simple program to form EN array for nen = 3 and ne = 5. Note that nn = 11. Print out the result of your program in a file called EN data. This file will have three columns in each row. The three columns correspond to three nodes of each element. En data, should have 5 rows since there are 5 elements. Node 2 T o 0.1 8 1111.2 3 0.2 1.4 4 5 6 0.3 0.4 0.5 17 | 18 1.8 7 0.6 17 8 07 1.5 9 08 1.3 10 11 09 10 121 Table 1.1: Data for I and g at each node. Problem 1.2. Modify the g and functions in program "INTELEMENT.' as following: (1.27) g(t) = 1 2 (1) = te Compile the program and execute it with parameters below. A = 0, B = 0.5 nn = 101, nen =2, nquad = 1 Record your result. Execute the program one more time with following parameters. (1.2%) A = 0, B = 0:5 nn = 100,001, nen = 3, nquad = 3 (1.29) Compare your results are write a paragraph explaining the results. Can you find out what the exact integral Problem 1.1. Given data in the Table 5.1. Write a simple program to form EN array for nen = 3 and ne = 5. Note that nn = 11. Print out the result of your program in a file called EN data. This file will have three columns in each row. The three columns correspond to three nodes of each element. En data, should have 5 rows since there are 5 elements. Node 2 T o 0.1 8 1111.2 3 0.2 1.4 4 5 6 0.3 0.4 0.5 17 | 18 1.8 7 0.6 17 8 07 1.5 9 08 1.3 10 11 09 10 121 Table 1.1: Data for I and g at each node. Problem 1.2. Modify the g and functions in program "INTELEMENT.' as following: (1.27) g(t) = 1 2 (1) = te Compile the program and execute it with parameters below. A = 0, B = 0.5 nn = 101, nen =2, nquad = 1 Record your result. Execute the program one more time with following parameters. (1.2%) A = 0, B = 0:5 nn = 100,001, nen = 3, nquad = 3 (1.29) Compare your results are write a paragraph explaining the results. Can you find out what the exact integral

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

what are the best practices followed by organizations to use data?

Answered: 1 week ago

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago