1 answer

Using Mathematica, how do you type #1 and #2 in mathematica. exlist[ (2]1 exlist[(7]1 exlistit Length(exList] 1 Note that the

Question:

Using Mathematica, how do you type #1 and #2 in mathematica.
exlist[ (2]1 exlist[(7]1 exlistit Length(exList] 1 Note that the last command gives us the last element of the list. We can a
exlist[ (2]1 exlist[(7]1 exlistit Length(exList] 1 Note that the last command gives us the last element of the list. We can also use extist[l-1]] for this. Negative numbers count backwards from the end of the list: exlist-1] exlisti-2]1 exListlI-3]1 1. Write a command accessing individual list elements to find the sum of the second and fifth element of our list exList. Summing Over a List Another important tool for working with lists is the Sum ] function. If you just want to add up all the elements of a list, you can use Totall ], but for anything more complicated (like Simpson's Rule) we'll need more sophistication. The basic syntax for a sum is Sum[ fUl, li, a, b)] which gives us ie a Thus to add all the elements of our list, we could use: SuntexList [[1]], {1, 1, Length [exlist])) Sum[] is very powerful, and has many more options for more complicated formulas. For example, you can increment i by more than just 1 each time like this: Sum[ fli] , (i,a,bAi] ], where Δί is how much you want to change i each time. So to add only the even-numbered elements in our list, we would use: Sum[exListt[i], (i, 2, Length [exList], 2) 2. Write a Sum[] command to add only the odd-numbered elements of our example list.

Answers

1. For summing second and fifth element

exList[[2]] + exList[[5]]

2. For adding only odd-numbered elements

Sum[exList[[i]], {i,1, Length[exList], 2}]

.

Similar Solved Questions

1 answer
10. Combinations In doing problems a - d below, use the combinations formula and calculator to...
10. Combinations In doing problems a - d below, use the combinations formula and calculator to evaluate each combination. SHOW SOME WORK for each problem Remember that each answer should be a WHOLE number. a. CS A bicycle shop owner has 12 mountain bicycles in the showroom. The owner wishes to selec...
1 answer
Cardio World Inc. (CWI) is a sporting goods retailer that specializes in bicycles, running shoes, and...
Cardio World Inc. (CWI) is a sporting goods retailer that specializes in bicycles, running shoes, and related clothing. The firm has become successful by careful attention to trends in cycling, running, and changes in the technology and fashion of sport clothing. In recent years, however, the profit...
1 answer
[2] A linear combination of vectors is given. Determine the resultant vector using the tip- to-tail...
[2] A linear combination of vectors is given. Determine the resultant vector using the tip- to-tail method for adding vectors geometrically. (9,-6) + (-12, -1) – (3, -15) + 5(2, -1)...
1 answer
Assign the appropriate ICD-10-CM code(s): Closed dislocation of clavicle (initial encounter)
Assign the appropriate ICD-10-CM code(s): Closed dislocation of clavicle (initial encounter)...
1 answer
Between a 5 year-old child, a 15 year-old teenager, a 35 year-old man and a 75...
Between a 5 year-old child, a 15 year-old teenager, a 35 year-old man and a 75 year-old grandpa, who will experience the most, the toxic effects of a specific dose of a given substance and why? If your answer is more than one, please elaborate....
1 answer
A researcher wished to compare the average amount of time spent in extracurricular activities by high...
A researcher wished to compare the average amount of time spent in extracurricular activities by high school students in a suburban school district with that in a school district of a large city. The researcher obtained a simple random sample of 60 high school students in a large suburban school dis...
1 answer
Pros and Cons of MNCS Multi-national corporations (MCNs) are a controversial topic. Summarize their pros and...
Pros and Cons of MNCS Multi-national corporations (MCNs) are a controversial topic. Summarize their pros and cons for the home country (where they are headquartered) as well as for the host countries (in which they invest). (Required - 5 points possible.)...
1 answer
An individual with one normal homolog and one homolog with a deletion is called? a) a...
An individual with one normal homolog and one homolog with a deletion is called? a) a deletion heterozygote b) a deletion homozygote c) dosage compensation d) haploinsufficient...
1 answer
Wildhorse Corporation just purchased computing equipment for $24,000. The equipment will be depreciated using a five-year...
Wildhorse Corporation just purchased computing equipment for $24,000. The equipment will be depreciated using a five-year MACRS depreciation schedule. If the equipment is sold at the end of its fourth year for $14,000, what are the after-tax proceeds from the sale, assuming the marginal tax rate is ...
1 answer
How do you find the next two terms of the geometric sequence #1/3, 5/6, 25/12,...#?
How do you find the next two terms of the geometric sequence #1/3, 5/6, 25/12,...#?...
1 answer
Please provide FULL detail and round answer to right signifcant digits. Three masses are positioned on...
Please provide FULL detail and round answer to right signifcant digits. Three masses are positioned on a frictionless surface, as shown. Initially, mass m_1 (1.0 kg) moves with a velocity of 2.0 m/s to the right, mass m_2 (2.0 kg) is at rest, and mass m_3 (3.0 kg) moves to the left with a velocity ...
1 answer
3. A scientist is measuring a block for an experiment. She uses a meter stick to...
3. A scientist is measuring a block for an experiment. She uses a meter stick to measure sides A and B, and calipers to measure side C. Determine the length of side C based on the picture below. Additionally, provide the correct uncertainty for each length. 3 4 Side A: 4.2- Side B: 12.7 ± Sid...
1 answer
Problem 10-17 Comparison of Performance Using Return on Investment (ROI) (LO10-1) Comparative data on three companies...
Problem 10-17 Comparison of Performance Using Return on Investment (ROI) (LO10-1) Comparative data on three companies in the same service industry are given below: Required: 2. Fill in the missing information. (Round the "Margin" answers to 1 decimal place and "Turnover" answers to 2...
1 answer
Problem #5 (20 points) n the two stage cascade amplifier circuit shown below, the MOSFET has...
Problem #5 (20 points) n the two stage cascade amplifier circuit shown below, the MOSFET has V IV and k-0s mA/ and the BIT has p 100 a) Perform the DC analysis of this circuit and based on the appropriate DC current values, calculate the small signal parameters for each transistor. b) Replace each t...
1 answer
Write steps Problem 3 (4 pts.). A bathyscaphe (a small free-diving self-propelled deep-sea submersible), is a...
write steps Problem 3 (4 pts.). A bathyscaphe (a small free-diving self-propelled deep-sea submersible), is a sphere of radius R- 1.5 m located 873.5 m below the sea level. a) what is the pressure exerted on its surface (here, you can neglect the size of the bathyscaphe compared to the depth of i...
1 answer
P3-2 (L03,4) EXCEL (Adjusting Entries and Financial Statements) Mason Advertising was founded in January 2013, Presented...
P3-2 (L03,4) EXCEL (Adjusting Entries and Financial Statements) Mason Advertising was founded in January 2013, Presented below are adjusted and unadjusted trial balances as of December 31, 2017 MASON ADVERTISING TRIAL BALANCE DECEMBER 31, 2017 Unadjusted Dr Cr. $ 11,000 20,000 8.400 3,350 60,000 $ 2...
1 answer
Which of the following statements is correct regarding the new pass through entity business deduction? a....
which of the following statements is correct regarding the new pass through entity business deduction? a. It can never come into play for a capital intensive business, b. It can never come into play for a business that does not pay any W-2 wages, c. It can never be claimed by a service provider such...
1 answer
Define bonds. Explain how bonds are priced. Be dure to provide an example of a bond.
Define bonds. Explain how bonds are priced. Be dure to provide an example of a bond....