|
[Date Index]
[Thread Index]
[Author Index]
Re: Simple task with Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg63047] Re: [mg63040] Simple task with Mathematica
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sun, 11 Dec 2005 22:25:21 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <200512110957.EAA23416@smc.vnet.net>
- Reply-to: murray at math.umass.edu
- Sender: owner-wri-mathgroup at wolfram.com
Would you kindly state this more clearly: I don't see a "first column"
in your example, nor a second.
Lea Rebanks wrote:
> Dear Sir / Madame,
>
> I am currently learning how to use Mathematica at college with a view to
> purchasing the program.
>
> Having spent a week studying the documentation / Book etc of version 4 I
> am struggling to do even the most simple tasks. I have looked at other
> Math programs, but I am really impressed with the numerical precision &
> scope of Mathematica. Below is an example of a really easy task which I
> can do in a second in Excel, however I am stuck with Mathematica 4.
> Please show me the correct code to do in Mathematica. Many thanks for
> your attention.
>
> Question:-
>
> Given the two columns below; I am trying to take the first column (A)
> created as a list & iterate it by starting with 5 to finish with the
> second column using the function A(1) = (6.5*2)-5 (starting value from
> the second column) = 8.
>
> Then, for A(2) = (9.5*2)-8 =11 etc, etc giving the second column.
> Function A(x) = x*2.
>
> (A)rea
>
> 5
>
>
> 6.5
>
> 8
>
>
> 9.5
>
> 11
>
>
> 8.5
>
> 6
>
>
> 4.5
>
> 3
>
>
> 9
>
> 15
>
>
> 12.5
>
> 10
>
>
> 12.5
>
> 15
>
>
> 17.5
>
> 20
>
>
> 18.5
>
> 17
>
>
> 11
>
> 5
>
>
>
> I have tried indexing with x = Range[11] & using A[[x]]-B[[x-1]]. Sorry,
> but I am really confused.
>
>
>
> Many thanks for any help you can offer.
>
>
>
> Best regards,
>
>
>
> Lea Rebanks.
>
>
--
Murray Eisenberg murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Prev by Date:
Re: Simple task with Mathematica
Next by Date:
Re: general nth term of series
Previous by thread:
Simple task with Mathematica
Next by thread:
Re: Simple task with Mathematica
|