![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
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=\" - \" /> |
![]() |
![]() |
![]() |
#2 |
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=\" - \" /> |
![]() |
![]() |
![]() |
#3 |
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 ] |
![]() |
![]() |
![]() |
#4 |
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? |
![]() |
![]() |
![]() |
#5 |
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?! |
![]() |
![]() |
![]() |
#6 |
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? |
![]() |
![]() |
![]() |
#7 | |
Fzoul Chembryl
![]() ![]() ![]() ![]() Join Date: July 16, 2003
Location: Wa\'eni\'n
Age: 39
Posts: 1,701
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#8 |
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=\" - \" /> |
![]() |
![]() |
![]() |
#9 |
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. |
![]() |
![]() |
![]() |
#10 |
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 |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
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 |