Chemical Forums

Please login or register.

Login with username, password and session length

Sponsored links

Pages: [1]   Go Down

Author Topic: Math help  (Read 517 times)

0 Members and 1 Guest are viewing this topic.

Corribus

  • Chemist
  • Sr. Member
  • *
  • Mole Snacks: +417/-20
  • Offline Offline
  • Gender: Male
  • Posts: 2566
  • A lover of spectroscopy and chocolate.
Math help
« on: November 01, 2018, 02:06:48 PM »

Can anyone figure out a simple expression for the following series of terms (n starting at 0 or 1)? I would like to express as a summation of terms.

x, 2-x, 2+x, 4-x, 4+x, 6-x, 6+x, .

? I can't think of one. Obviously I could break it into two summations but that becomes cumbersome.

Cyberbeer to whoever comes up with something. :)
Logged
What men are poets who can speak of Jupiter if he were like a man, but if he is an immense spinning sphere of methane and ammonia must be silent?  - Richard P. Feynman

Corribus

  • Chemist
  • Sr. Member
  • *
  • Mole Snacks: +417/-20
  • Offline Offline
  • Gender: Male
  • Posts: 2566
  • A lover of spectroscopy and chocolate.
Re: Math help
« Reply #1 on: November 01, 2018, 05:14:21 PM »

I get to buy myself a beer. I had to use a few trigonometric functions. My expression is pretty ugly and could probably be simplified but I'm too tired.
Logged
What men are poets who can speak of Jupiter if he were like a man, but if he is an immense spinning sphere of methane and ammonia must be silent?  - Richard P. Feynman

Enthalpy

  • Chemist
  • Sr. Member
  • *
  • Mole Snacks: +227/-51
  • Offline Offline
  • Posts: 2679
Re: Math help
« Reply #2 on: November 05, 2018, 08:22:14 AM »

Would this fit your needs?
n+0.5+(-1)n(x-0.5)
starts giving x for n=0.

(-1)n could be cos(n×π) if any better.
Logged
Pages: [1]   Go Up
 

Mitch Andre Garcia's Chemical Forums 2003-Present.

Page created in 0.069 seconds with 23 queries.