Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > General Discussion

Reply
 
Thread Tools Search this Thread
Old 02-09-2006, 09:18 AM   #1
Callum
Symbol of Cyric
 

Join Date: October 21, 2004
Location: Vancouver, BC
Age: 36
Posts: 1,143
Ok... If at all possible I need this answered by about 4 am my time [img]tongue.gif[/img] If not... then I can check before about 9 30 and again before 2 30... Otherwise I'm screwed [img]tongue.gif[/img]

Ok, and here we go.

I have a graph with the function Y = 10(0.84^X), where Y represents the level of a drug in the bloodstream of a patient, X hours after the first dosage, where the original dosage was 10 micrograms, and the amount decreases so that 84% of the previous hour's amount is left every hour. All well and good, its an exponential decay curve... (at least I think so... that makes sense right?)

However, then the question says that the patient takes another dose of 10 micrograms every hour. And we have to draw a diagram. Still simple...

But then it asks for a function for this new graph... And as far as I know... there is no way to draw a graph that suddenly jumps up 10 before continuing as normal. Is there? So the function is the same, except every six hours, it increases by 10...

Is there a way to obtain a function for this?

How bout if instead of the function resuming, and the levels decreasing at 83% per hour as before... the part of the graph after six hours simply translates upwards ten... and doesn't decrease by 83 of the value... but by 83 percent of the value minus ten... Is this making any sense?

Picture to come soon to help clarify...
__________________
[img]\"http://img11.imageshack.us/img11/4763/callumavataranimated4ff.gif\" alt=\" - \" />
Callum is offline   Reply With Quote
Old 02-09-2006, 09:25 AM   #2
Callum
Symbol of Cyric
 

Join Date: October 21, 2004
Location: Vancouver, BC
Age: 36
Posts: 1,143


As promised... an image...

I need to find a formula for one of the red or blue graphs...

The formula for the green graph is y = 10(0.84^x)

The graphs repeat in the same manner (every six hours, y increases by 10)

Anyone? I'm stumped...
__________________
[img]\"http://img11.imageshack.us/img11/4763/callumavataranimated4ff.gif\" alt=\" - \" />
Callum is offline   Reply With Quote
Old 02-09-2006, 07:20 PM   #3
shamrock_uk
Dracolich
 

Join Date: January 24, 2004
Location: UK
Age: 42
Posts: 3,092
Just so you know that IW isn't ignoring you, I've asked a couple of my friends but they've all been stumped too.

Good luck!

[ 02-09-2006, 07:20 PM: Message edited by: shamrock_uk ]
shamrock_uk is offline   Reply With Quote
Old 02-09-2006, 07:30 PM   #4
Ilander
20th Level Warrior
 

Join Date: December 28, 2003
Location: Kentucky
Age: 39
Posts: 2,820
Piecewise is the only way you can represent such a function.
__________________

Is that what you really want to say?
Ilander is offline   Reply With Quote
Old 02-09-2006, 10:41 PM   #5
Assassin
Symbol of Cyric
 

Join Date: March 23, 2003
Location: Canada
Age: 37
Posts: 1,134
Would a series work? I'm not sure if you could call it a function per say though...
__________________
In The Terminator, Sarah Connor is told a speech by John Connor\'s father that John has given in the future. When John is born, Sarah tells John this speech, and John grows up to tell it in the future. So who wrote the speech?!
Assassin is offline   Reply With Quote
Old 02-10-2006, 02:06 AM   #6
Ilander
20th Level Warrior
 

Join Date: December 28, 2003
Location: Kentucky
Age: 39
Posts: 2,820
The net effect is another exponential curve, but unless the medication is given CONTINUOUSLY, you don't get a curve you can represent in any way besides piecewise :S
__________________

Is that what you really want to say?
Ilander is offline   Reply With Quote
Old 02-10-2006, 03:35 AM   #7
JrKASperov
Fzoul Chembryl
 

Join Date: July 16, 2003
Location: Wa\'eni\'n
Age: 39
Posts: 1,701
Quote:
Originally posted by Callum:
Y = 10(0.84^X),

But then it asks for a function for this new graph... And as far as I know... there is no way to draw a graph that suddenly jumps up 10 before continuing as normal. Is there? So the function is the same, except every six hours, it increases by 10...

Is there a way to obtain a function for this?
Yes. It needs to be done piecewise, so that for every six hours you have a new graph. But finding this graph is surprisingly easy:

1. Find the function value of Y at the time the dose of 10 is administered. (NOT AFTER it has been administered but BEFORE)

2. Add this value to the dose you added, being 10.

3. Assuming the drop rate is the same (it should be unvariable under the taken dose) you take new formula: Y' = (10 + value before new dose) (0.84^x)

4. For the next jump of six hours, repeat, only this time you will most likely find a different value when administering new dose.
__________________
God is in the rain.
JrKASperov is offline   Reply With Quote
Old 02-11-2006, 02:34 AM   #8
Callum
Symbol of Cyric
 

Join Date: October 21, 2004
Location: Vancouver, BC
Age: 36
Posts: 1,143
OK... Turns out I was just wrong... it didn't say "find a single function"... it said represent this on your GDC or graphing program... Which means that piecewise it worked [img]tongue.gif[/img]

0<=x<6 y=10[0.84^x]
6<=x<12 y=10[0.84^x]+10[0.84^[x-6]]
12<=x<18 y=10[0.84^x]+10[0.84^[x-6]]+10[0.84^[x-12]]
12<=x<18 y=10[0.84^x]+10[0.84^[x-6]]+10[0.84^[x-12]]+10[0.84^[x-24]]

For those of you interested... [img]tongue.gif[/img]
__________________
[img]\"http://img11.imageshack.us/img11/4763/callumavataranimated4ff.gif\" alt=\" - \" />
Callum is offline   Reply With Quote
Old 02-11-2006, 04:03 AM   #9
shadeoracle
Elite Waterdeep Guard
 

Join Date: October 7, 2005
Location: Christchurch, New Zealand
Age: 39
Posts: 10
If you wanted to put it into a single function you could use Heaviside functions which pretty much replicate piecewise functions. Therefore your function is:
y = H[x]*10[0.84^x] - H[x-6]*10[0.84^x] + H[x-6]*10[0.84^x]+10[0.84^[x-6]] - H[x-12]*10[0.84^x]+10[0.84^[x-6]] + H[x-12]*10[0.84^x]+10[0.84^[x-6]]+10[0.84^[x-12]]+10[0.84^[x-24]] - H[x-18]*10[0.84^x]+10[0.84^[x-6]]+10[0.84^[x-12]]+10[0.84^[x-24]] + ...

For those of you who are interested, a Heaviside function, denoted H[x], has the following properties:
H[x] = 0 for x<0
H[x] = 1 for x>=0
So above where I have, say, H[x-6], the Heaviside function 'turns on' at x=6.

Note: I learnt this in my second year at uni so it isn't a good idea to use this in class if you haven't covered it.
shadeoracle is offline   Reply With Quote
Old 02-11-2006, 01:09 PM   #10
ZFR
Legion Symbol
 

Join Date: February 14, 2002
Location: Ireland
Age: 41
Posts: 7,369
By the way Heaviside function can be represented analitically:

H(x)= ( sqrt(x2) + x ) / 2x

(except in this case it's undefined for 0)
__________________
ZFR
ZFR is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maths Revision Callum General Discussion 21 06-06-2005 10:59 AM
Do You See The Point In Maths Lessons? Beaumanoir General Discussion 25 05-14-2003 05:01 AM
I need more help(Maths related) Neb General Conversation Archives (11/2000 - 01/2005) 10 11-11-2002 05:29 AM
Dragon spire crystal question + question about Giant killing for the warriorguild Malakez Wizards & Warriors Forum 4 02-20-2001 03:52 PM
spell lvl question, buying spells question, and role ascension question Paupa Wizards & Warriors Forum 1 12-31-2000 04:59 PM


All times are GMT -4. The time now is 03:12 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved