Free Essay

Fortran the Lenght of a Parabola Segment

In: Computers and Technology

Submitted By dimeji
Words 376
Pages 2
Programming Example: The Length of a Parabola Segment

http://www.cs.mtu.edu/~shene/COURSES/cs201/NOTES/chap02/p-lengt...

Problem Statement
Given base b and height h, the length of a special segment on a parabola can be computed as follows:

Write a program to read in the values of base and height, and use the above formula to compute the length of the parabola segment. Note that both base and height values must be positive.

Solution
! ----------------------------------------------------------! Calculate the length of a parabola given height and base. ! ----------------------------------------------------------PROGRAM ParabolaLength IMPLICIT NONE REAL REAL :: Height, Base, Length :: temp, t 'Height of a parabola : ' Height 'Base of a parabola Base : ' *

WRITE(*,*) READ(*,*) WRITE(*,*) READ(*,*)

! ... temp and t are two temporary variables t = 2.0 * Height temp = SQRT(t**2 + Base**2) Length = temp + Base**2/t*LOG((t + temp)/Base) WRITE(*,*) WRITE(*,*) WRITE(*,*) WRITE(*,*) END PROGRAM

'Height = ', Height 'Base = ', Base 'Length = ', Length

ParabolaLength

Click here to download this program.

Program Output
Height of a parabola : 100.0 Base of a parabola 78.5 Height = 100. Base = 78.5 Length = 266.149445 :

The input values for Height and Base are 100.0 and 78.5, respectively. The computed length is 266.149445.

Discussion

1 of 2

4/5/2014 9:30 PM

Programming Example: The Length of a Parabola Segment

http://www.cs.mtu.edu/~shene/COURSES/cs201/NOTES/chap02/p-lengt...

The values of base and height will be stored in REAL variables Base and Height, respectively. Length will be used to store the parabola segment length. Since the content in the square root is used twice, it would be more convenient to save the result in a variable. This value will be stored in temp. Since 2h also appears a few times, variable t is used to store this value. After reading in Height and Base, 2.0 * Height is computed and stored in t with the first assignment. Then, the second assignment computes the content in the square root and stores the result into temp. The third assignment compute the segment length and stores the result into Length. Note that intrinsic function LOG() is used. The four WRITE statements display the input and the results.

2 of 2

4/5/2014 9:30 PM…...

Similar Documents

Premium Essay

Target Segments

...Target Segments Demographics Through the technological advancements and the progression of the video game console industry, the demographics of the target segment for this industry has changed in many different factors. First, a frequent misconception of the customer base of this industry is the age group of the video gamers. Many believe that youth dominate the video game console industry but studies have proven otherwise. Researchers surveying the demographics in the 2012 USA market, the average ‘gamer’ is 30 years old down from 37 years old in 2011. As a matter of fact, the results presented only 32% of gamers to be under the age of 18, a declining trend initiating from 2005. This trend further opposes the conception of the core of video gamers are youth. As of January 2012, 56% of all households in the US own a console and 17% owning 2 video game consoles. This implies that the customers in the industry are increasing loyalty on the brand rather than seeking to turnover to another console. These statistics and research illustrate that the age of consumers in this industry varies than the common perception. Changes in these trends must be analyzed carefully and acted upon to increase market share. Women, families, grandparents, have all shown increases in the participation of video games. Another common misconception is the gender base of consumers using video game consoles being dominated by males. 2012 data conveys that the gamer gender demographics are......

Words: 372 - Pages: 2

Free Essay

Liver Segments

...* Because this segment has a separate embriologic origin, it originates from a separate lobe. * It is also called the caudate lobe. Portal supply is generally provided by small branches originating from the left main portal vein, or from segmental branches from adjacent segments. It is drained by small hepatic veins joining directly to the anterior wall of the inferior vena cava Seg 2 displayed in yellow. * This segment is the superior part of the left lateral segment. Segment 2 is usually drained by this superior hepatic vein coursing laterally, and joining the left hepatic vein before the junction to the inferior vena cava. * Its portal supply is provided by a branch originating from the left main portal branch. In most cases, you can easily follow this branch from its origin. Segment 2 is separated from Segment 4A by a vertical scissura containing the left hepatic vein. * Segment 2 is separated from Segment 3 by a trans-axial scissura or transverse scissura containing the left main portal branch and from segment 1 by the ligamentum venosum. From the external surface of the liver, Segment 2 is separated from Segment 4A by the falciform ligament. Segment 3 is displayed in light blue. * This segment is the inferior part of the left lateral segment. * Its portal supply is provided by a branch originating from the left main portal branch. * It is usually drained by the left hepatic vein. Segment 3 is separated from Segment 4B by a......

Words: 780 - Pages: 4

Free Essay

Fortran

... Winter 2004 FORTRAN TUTORIAL (based on the information at: http://macams1.bo.infn.it/tutorial/) 1. What is Fortran? 2. Fortran basics 3. Variables, declarations, and types 4. Expressions and assignment 5. Logical expressions 6. The if statements 7. Loops 8. Arrays 9. Subprograms 10. Random numbers and Monte Carlo simulations 11. Simple input and output 12. Format statements 13. File I/O 14. Common blocks 15. data and block data 16. Debugging 17. Running Fortran on the Physics Department’s VAX (OHSTPY) computer 18. A sample Fortran program for Lab 1 1. WHAT IS FORTRAN? Fortran is a general purpose programming language, mainly intended for mathematical computations in science applications (e.g. physics). Fortran is an acronym for FORmula TRANslation, and was originally capitalized as FORTRAN. However, following the current trend to only capitalize the first letter in acronyms, we will call it Fortran. Fortran was the first high-level programming language. The work on Fortran started in the 1950's at IBM and there have been many versions since. By convention, a Fortran version is denoted by the last two digits of the year the standard was proposed. Thus we have Fortran 66, Fortran 77 and Fortran 90 (95). The most common Fortran version today is still Fortran 77, although Fortran 90 is growing in popularity. Fortran 95 is a revised version of Fortran 90 which is expected to be......

Words: 10641 - Pages: 43

Premium Essay

Bakery Segment

...Bakery segment, led by biscuits, pegged to grow to $7.6 billion by '15 The Indian bakery industry - led by the biscuit segment - is poised to grow to $7.6 billion by 2015. This year, the sector’s growth is estimated to remain between 15 and 17 per cent, which is two points more than last year’s growth. The bakery sector has witnessed growth in both the urban and rural areas. Britannia Industries Ltd, Parle Products Ltd, ITC Foods Ltd, Surya Food and Agro Ltd (Priyagold) and Modern Food Industries India Ltd are the key players. However, medium-sized players are trying to capture a market share as well. J N Kushwaha, president, Society of Bakers, said, ‘While biscuits have a 60 per cent share of the market, bread accounts for the remainder. Fancy bakery items have a 10-15% share.’ He pointed out that in the rural areas, biscuits were growing very fast, whereas in cities, the role of bread was changing. He added that this was visible in the eating habits, and the basic reason for growth was acceptability amongst both the rural and urban masses. ‘Now, baked products are playing a vital role in people’s diet from breakfast to dinner. Items like pizzas and burgers have replaced regular items eaten at lunch and dinner,’ Kushwaha stated. ‘Earlier, people consumed only white bread. But today, apart from plain bread, there are several varieties in breads available, and every hotel and restaurant is now establishing a bakery facility to woo the consumers,’ he added....

Words: 255 - Pages: 2

Free Essay

Parabola Investigation

...Parabola Investigation In this task, I will investigate the patterns in the intersections of parabolas and the lines y=x and y=2x, then I will prove my conjectures and to broaden the scope of the investigation to include other lines and other types of polynomials. 1. Consider the parabola y=(x-3)2 +2=x2-6x+11 and the lines y=x and y=2x. The original graph is shown below (graph 1.1) Find the intersections of the parabola with y=x and y=2x, Graph 1.2. Also, label the x-values of the intersections with the line y=x as they appear from left to right on the x-axis as a1 and a2; label the x-values of the intersections with the line y=2x as b1 and b2. Now, I will using the graph and graph calculator, find the values of a1-b1 and b2-a2 and name them respectively SL and SR. SL=a1-b1=2.381966-1.763932=0.618034 SR=b2-a2=6.236068-4.618034=1.618034 Now, calculate the quantity D= │SL-SR│ D= │SL-SR│=│0.618034-1.618034│=1 By algebra calculation, D=│SL-SR│ =│ a1-b1-(b2-a2) │ =│ a1-b1-b2+a2 │ =│ (a1+ a2 )-(b1+b2) │ Now, I will try other parabolas of the form y=ax2+bx+c, a>0, with vertices in quadrant 1, intersected by the lines y=x and y=2x. y=x2+2x+1 [pic] From the graph we can see there is no intersection of the parabola and y=x, y=2x. Using the algebra way: Solve: (a) x2+2x+1=x (b)......

Words: 566 - Pages: 3

Free Essay

Bow and Arrow Parabola

...arrow is 50 feet from where it was released. The target is 120 feet away and the center of the bulls eye is exactly 3 feet above the ground, and 4 inches in diameter. Assuming that Cool guy shoots a perfectly straight shot, will he hit a bulls eye? We need to use the vertex form of the equation y = a(x – h)^2 + k  To find the vertical height of the arrow as it approaches the target.  Since the arrow has a maximum height of 5feet when it has traveled 50 feet toward the target, we know that the vertex is at (50, 5).  Substituting this into the equation, we get: y = a(x – 50)^2 + 5 To find the stretching factor, a, we need to plug in a point other than the vertex.  Since the arrow was initially launched at a height of 3 feet, the parabola goes through the point (0,3).  Replacing x and y in the equation, we get: 3 = a(0 – 50)^2 + 5 3 = 2500a + 5 -2 = 2500a a = -0.0008 This gives a final equation of  y = -0.0008(x – 50)^2 + 5 We can find the height of the arrow when it hits the target by plugging in 120 feet in for x. y = -0.0008(120 – 50)^2 + 5 y = 4.888 feet The bulls eye is at 3 feet above the ground. Subtracting the height from 3, we will find the place on the target that the arrow hits. 3 – 4.888 = -1.888 feet below the bulls eye -1.888 ft * 12 in/ft = 22.656 inches below the bulls eye Cool guy missed the bulls eye. In fact he missed the whole target. Maybe next time, Cool Guy....

Words: 369 - Pages: 2

Premium Essay

Market Segment

...involves aggregating prospective buyers into groups that (1) have common needs and (2) will respond similarly to a marking action. a) Market diversification b) Market differentiation c) Market segmentation d) Market augmentation e) Repositioning Ans: c Page: 243 Learning Objective: 1 10. To be identified as a market segment, its members must __________. a) represent a large share of the entire market and have critical buying power b) have common needs and respond similarly to market actions c) have different needs and have potential for future growth d) have different needs and respond similarly to market actions e) have potential for future growth and have potential for increased profit or ROI Ans: b Page: 243 Learning Objective: 1 11. The phrase "relatively homogeneous collections of prospective buyers" is most descriptive of __________. a) market segments b) demographic clusters c) organizational buyers d) ultimate consumers e) qualified prospects Ans: a Page: 243 Learning Objective: 1 12. Each __________ consists of people who are relatively similar to each other in terms of their consumption behavior. a) market segment b) demographic cluster c) organizational buyer d) ultimate consumer e) qualified prospect Ans: a Page: 243 Learning Objective: 1 13. Which strategy involves a firm's using different marketing mix activities, such as product features and advertising, to help consumers perceive the product as being different and......

Words: 21403 - Pages: 86

Premium Essay

Segment Reporting

...Segment | 2013 | Change | 2012 | Change2 | 2011 | Americas | 62,739 | 9% | 57,512 | 50% | 38,315 | Europe | 37,883 | 4% | 36,323 | 31% | 27,778 | Greater China | 25,417 | 13% | 22,533 | 78% | 12,690 | Japan | 13,462 | 27% | 10,571 | 94% | 5,437 | Rest of Asia Pacific | 11,181 | 4% | 10,741 | 8% | 9,902 | Retail | 20,228 | 7% | 18,828 | 33% | 14,127 | Net Sales | 170,910 | | 156,508 | | 108,249 | Yasamin Farahanyrad Hanna Trias 2. Analysis of Segment Reporting 1. What are the reportable segments and what is the basis for the company to choose the segment structure? a. The Company’s reportable segments are managed on a geographic basis which consists of the Americas, Europe, Greater China, Japan, Rest of Asia Pacific and Retail operations. Retail segment operates Apple retail stores in 13 countries and all segments sell similar hardware, software products, and similar services. The Company reports based on the “management” approach which designates the internal reporting used by management for making decisions and assessing performance. 2. What are the reconciliation items from the company’s segment operating income to the conciliated financial statements? The reconciliation items from the company’s operating income are: Depreciation and Amortization, Share-based compensation expense, and Deferred income tax expense. (Page 49 of 2013 Apple Inc. annual report, Consolidated Statement of Cash Flows) 3. Which segment has shown the......

Words: 454 - Pages: 2

Premium Essay

Operating Segments

...I will be happy to assist you, based on the information it is clear that the company does indeed have different operating segments. This was determined from ASC 280-10-50-1; within the codification there are three characteristics that the company must have. For clarity I have posted them below. 1. a. It engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same public entity). 2. b. Its operating results are regularly reviewed by the public entity's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance. 3. c. Its discrete financial information is available For SEC reporting purposes we find guidance from ASC 280-10-50-11 regarding aggregation criteria as well as 280-10-50-12 which sets forth the qualitative thresholds. The nature of the entire business in which the company operates in is very similar from the type of customer they serve to the service they deliver everything is very standardized. So after careful analysis I have determined that the aggregation criterion is met. The threshold requirements have been met by certain operations in the company; upon analysis of the information provided it was determined that Big Islands Georgia, Big Islands North Carolina, Big Islands Washington, Still Water Thrills Orlando, Island Adventure Cove, and Still Water Thrills Charlotte all exceed...

Words: 342 - Pages: 2

Premium Essay

Insurance Segment

...The insurance segment of the bank also expose to certain risks. Furthermore, the risks exposed are more unique and difficult to manage as the industry does not have many players and facilities needed. Below are the risks that associate with the insurance segment to Maybank. 1) Capital and solvency With the current world economy situation, Maybank is exposed to short and long term prudential risks. The premium from its customer needs to be place and investment in certain product that meet the investment time horizon. The macroeconomic changes affected insurers in different ways. Its can see that where the life sector’s capital levels came under pressure and the non-life sector, where reserve releases continued to support results, cushioning the impact of investment and underwriting losses. The bank will also expose to new requirement policies impose by the regulator that can affect its investment activities. 2) Life insurance segment In the life sector, the greatest challenges have been for those most exposed to falls in asset values, widening bond spreads and low interest rates. Even though the issues are always highlighted, but still a careful attention is needed for capital management and planning that eyeing on the downturn in the economy. For example monitoring the solvency position, exercise care in the valuation of assets and liabilities with they are appropriately matched by duration. Others that is needed to be highlighted is the guarantees and options must...

Words: 678 - Pages: 3

Premium Essay

Sonic's Segment

...layout varies from company to company, a marketing plan usually contains the sections described in Chapter 2. Smaller businesses may create shorter or less formal marketing plans, whereas corporations generally require highly structured marketing plans. To guide implementation effectively, every part of the plan must be described in considerable detail. Sometimes a company will post its marketing plan on an internal Web site so managers and employees in different locations can consult specific sections and collaborate on additions or changes. The Role of Research To develop innovative products, successful strategies, and action programs, marketers need up-todate information about the environment, the competition, and the selected market segments. Often, analysis of internal data is the starting point for assessing the current marketing situation, supplemented by marketing intelligence and research investigating the overall market, the competition, key issues, threats, and opportunities. As the plan is put into effect, marketers use research to measure progress toward objectives and to identify areas for improvement if results fall short of projections. Finally, marketing research helps marketers learn more about their customers’ requirements, expectations, perceptions, satisfaction, and loyalty. This deeper understanding provides a foundation for building competitive advantage through well-informed segmenting, targeting, and positioning decisions. Thus, the marketing plan......

Words: 7341 - Pages: 30

Premium Essay

Segment

...cluster analysis routines. Market segmentation is a much broader concept, however, and pervades the practice of business throughout the world. What is market segmentation? At its most basic level, the term “market segmentation” refers to subdividing a market along some commonality, similarity, or kinship. That is, the members of a market segment share something in common. The purpose of segmentation is the concentration of marketing energy and force on the subdivision (or the market segment) to gain a competitive advantage within the segment. It’s analogous to the military principle of “concentration of force” to overwhelm an enemy. Concentration of marketing energy (or force) is the essence of all marketing strategy, and market segmentation is the conceptual tool to help achieve this focus. Before discussing psychographic or lifestyle segmentation (which is what most of us mean when using the term “segmentation”), let’s review other types of market segmentation. Our focus is on consumer markets rather than business markets. Geographic Segmentation This is perhaps the most common form of market segmentation, wherein companies segment the market by attacking a restricted geographic area. For example, corporations may choose to market their brands in certain countries, but not in others. A brand could be sold only in one market, one state, or one region of the United States. Many restaurant chains focus on a limited geographic area to achieve concentration of force.......

Words: 647 - Pages: 3

Free Essay

Segments Served

...Segments Served Our market will be segmented into two segments that have common needs in order to respond similarly to a marketing action. Therefore, to gain competitive advantage with a specific segment we need to link needs to actions. Owning and maintaining a home is really expensive. However, due either to our own ambitions or Mother Nature inevitably we find ourselves making home repairs or home improvements to our houses. In some cases we put on our own home improvement or repairs DIYer tool belts and do it ourselves. There are many requirements to a useful and effective segment, the segment we tend serve will be measureable; accessible or rather reachable; sustainable and will last for a long time; different that other segments and unique to help in matching the characteristics of the segment to the services DIY Consultant is to able to provide; and finally actionable meaning that the DIY Consultant is willing and able to serve those segments with all our facilities. At the present time with the market becoming more diverse there is a consistent need for innovation and DIY Consultant will accept that the market as heterogeneous and will not look at one form of segmentation separately. That’s why we will serve novice and regular DIYers. Because, not only regular DIYers, but also new homeowners or novice DIYers often plow ahead into unchartered waters and end up costing themselves time, money and frustration. Additionally, DIY consultants will offer additional......

Words: 1523 - Pages: 7

Premium Essay

Marketing Segments

...of consumers (positioning). Chapter Objectives: 1. Define the four major steps in designing a customer-driven marketing strategy: market segmentation, market targeting, differentiation, and positioning 2. List and discuss the major bases for segmenting consumer and business markets 3. Explain how companies identify attractive market segments and choose a market targeting strategy 4. Discuss how companies differentiate and position their products for maximum competitive advantage in the marketplace. Most companies have moved away from mass marketing and toward target marketing—identifying market segments, selecting one or more of them, and developing products and marketing programs tailored to each. Figure 7.1 (pg.216) shows the four major steps in designing a customer-driven marketing strategy. Market segmentation involves dividing a market into smaller groups of buyers with distinct needs, characteristics, or behaviors that might require separate marketing strategies or mixes. Market targeting (or targeting) consists of evaluating each market segment’s attractiveness and selecting one or more market segments to enter. Differentiation involves actually differentiating the firm’s market offering to create superior customer value. Positioning consists of arranging for a market offering to occupy a clear, distinctive, and desirable place relative to competing products in the minds of target consumers. MARKET SEGMENTATION (pg.......

Words: 1897 - Pages: 8

Free Essay

Parabolas

...Parábola, según su sentido griego, el termino parábole, sugiere una comparación, es decir, para significa al lado y bole echar. Este sentido comparativo aparece en los tres evangelios sinópticos sin embargo Juan utiliza otro termino, paroimia, es esta palabra también para significa al lado, pero oimai se traduce por suponer, figurar, pensar, y tradicionalmente se ha traducido en Reina Valera 1960 por alegoría y en Reina Valera Actualizada por figura. Se puede decir que según su sentido griego una parábola es lenguaje figurado que provoca una comparación con el fin de aclarar o iluminar una cosa o idea. A la hora de leer las parábolas se deben tener en cuenta tres cosas. La Historia fijándonos en el contexto histórico y social del momento. Procurando ver la parábola dentro del marco cultural del pueblo de Palestina en los tiempos de Jesús, sobre todo los modos y costumbres. Literaria viendo la parábola como una creación literaria que respeta las normas de composición literaria en cuanto a narrativa, alegoría, retórica, etc. sin caer en una lectura de las parábolas como tratados doctrinales de teología. Finalmente Hermenéutica intenta interpretar la parábola de forma correcta y aplicarla a nuestra realidad hoy. Por esto se puede considerar que las parábolas nos hablan de la intervención de Dios en la historia. Nos retan a dar una respuesta en arrepentimiento y fe, nos invitan a buscar el reino de Dios, por eso dicen que son evangelisticas. Las parábolas de Jesús son......

Words: 1205 - Pages: 5