Jump to content


Photo
- - - - -

Can Psychiatric Conditions Be Computerised As Algorithms?


  • Please log in to reply
3 replies to this topic

#1 petrushkagoogol

petrushkagoogol

    SMIEEE (Jerk who took engineering)

  • Members
  • PipPipPipPipPipPip
  • 637 posts

Posted 11 January 2020 - 09:28 AM

SEE THE CODE SNIPPET 😎
OCD -
a=0;
Int fn_checkswitch() {

if(a!=1) fn_checkswitch();

}

Error - Too many iterations cause overflow

Bipolar disorder -

interface int fn_manicdepressive(bool k) {};

k may be 0 or 1 for bipolar states

#2 Flummoxed

Flummoxed

    Creating

  • Members
  • PipPipPipPipPipPipPip
  • 1474 posts

Posted 12 January 2020 - 03:58 AM

SEE THE CODE SNIPPET
OCD -
a=0;
Int fn_checkswitch() {

if(a!=1) fn_checkswitch();

}

Error - Too many iterations cause overflow

Bipolar disorder -

interface int fn_manicdepressive(bool k) {};

k may be 0 or 1 for bipolar states

 

Needs a break() function or time out after x loops, to make the OCD function normal :) 


  • petrushkagoogol likes this

#3 petrushkagoogol

petrushkagoogol

    SMIEEE (Jerk who took engineering)

  • Members
  • PipPipPipPipPipPip
  • 637 posts

Posted 12 January 2020 - 09:50 PM

Needs a break() function or time out after x loops, to make the OCD function normal :)


Methinks return is the magic word ☀️

#4 VictorMedvil

VictorMedvil

    The Human Shadow

  • Members
  • PipPipPipPipPipPipPip
  • 2786 posts

Posted 13 January 2020 - 09:36 AM

Keep working you will yet discover the code of the human brain, which I am unsure exactly exists. What you need is a count function such as 

OCD in QB64

 

DO 

 

Return:

(Equation of his thoughts go here such as  X = Y + G2)

SELECT X

 

CASE 1

 

PRINT  "Oh, I figured it out."

 

THEN X = Y

 

CASE 2

 

PRINT " I am trying to figure out something with my OCD that is bugging me"

 

THEN GOTO Return

 

CASE 3

 

PRINT "That is messing with my OCD but forget it I will deal with it later"

 

THEN X = Y

 

LOOP

 

UNTIL X = Y


Edited by VictorMedvil, 13 January 2020 - 09:58 AM.