Based on the prolog facts given below:
1
i Given a drug, list the drugs, which have no interactions with it.
ii Given a drug, list the drugs, which do interact with it.
interacts(gatifloxacin,mometasone,asthma).
interacts(gatifloxacin,cisplatin,hyperglycaemia).
interacts(gatifloxacin,cisplatin,bone_marrow_failure).
interacts(gatifloxacin,montelukast,difficulty_breathing).
interacts(temazepam,thalidomide,neutropenia).
interacts(temazepam,thalidomide,thrombocytopenia).
interacts(temazepam,timolol,drowsiness).
interacts(temazepam,tizanidine,acid_reflux).
interacts(temazepam,tizanidine,heart_attack).
PREDICATES IN PROLOG:
%we find all the interactions with given Drug in first and
second place, append the lists and sort them to remove
duplicates
listofinteracts(Drug, List):- findall(X, interacts(Drug, X, _),
List1),
findall(X, interacts(X, Drug, _), List2),
append(List1, List2, List3),
sort(List3, List).
%we find all the Drugs in first and second place, append the
lists and sort them to remove duplicates to get a list of drugs. We
use previous predicate to get the list of interacting drugs, and
subtract them from list to get list of not interacting drugs
listofnointeracts(Drug, List):- findall(X, interacts(_, X, _),
List1),
findall(X, interacts(X, _, _), List2),
append(List1, List2, List3),
sort(List3, List4),
listofinteracts(Drug, List5),
subtract(List4, List5, List).
OUTPUT:
Regards!
Based on the prolog facts given below: 1 i Given a drug, list the drugs, which...
Based on the prolog facts given below: 1.Given two medications, if they interact, tell what the effect of the interaction may be. Note there may be more than one result of the interaction. 2. Given a medical condition, list the drug interactions that may have caused it. 3. Given a drug, list the drugs, which have no interactions with it. 4. Given a drug, list the drugs, which do interact with it. interacts(gatifloxacin,mometasone,asthma). interacts(gatifloxacin,cisplatin,hyperglycaemia). interacts(gatifloxacin,cisplatin,bone_marrow_failure). interacts(gatifloxacin,montelukast,difficulty_breathing). interacts(temazepam,thalidomide,neutropenia). interacts(temazepam,thalidomide,thrombocytopenia). interacts(temazepam,timolol,drowsiness). interacts(temazepam,tizanidine,acid_reflux)....
Based on the prolog facts given below: 1.Given two medications, if they interact, tell what the effect of the interaction may be. Note there may be more than one result of the interaction. 2. Given a medical condition, list the drug interactions that may have caused it. interacts(gatifloxacin,mometasone,asthma). interacts(gatifloxacin,cisplatin,hyperglycaemia). interacts(gatifloxacin,cisplatin,bone_marrow_failure). interacts(gatifloxacin,montelukast,difficulty_breathing). interacts(temazepam,thalidomide,neutropenia). interacts(temazepam,thalidomide,thrombocytopenia). interacts(temazepam,timolol,drowsiness). interacts(temazepam,tizanidine,acid_reflux). interacts(temazepam,tizanidine,heart_attack).
Based on the given drug, which microbe is affected by if? Thank you! QUESTION 2 Below is the name of antimicrobial agent (drug). Based on the description of the drug listed below, check off all the microbes that could potentially be directly targeted by that agent. (Note these are not real drugs. Use the descriptions to determine which microbes could target.) provasic: denatures the enzyme reverse transcriptase bacteria prions protozoa fung helminths ✓ viruses fung
1) State which of the electrophiles given below will react preferentially by i) SN1, ii) by SN2, or iii) capable of reacting by either of the two mechanisms depending on the given conditions. How can you affect those conditions to favour SN1 or SN2? Reason your predictions based on the structures of the compounds. Br-CH3, Br-CH2CH3, Br-CH(CH3)2, Br-C(CH3)3, Br-CH2-C5H6; C5H6 = phenyl 6) Using orbitals, draw the transition state of the SN2 reaction between sodium cyanide and bromomethane. Which orbitals...
1) State which of the electrophiles given below will react preferentially by i) SN1, ii) by SN2, or iii) capable of reacting by either of the two mechanisms depending on the given conditions. How can you affect those conditions to favour SN1 or SN2? Reason your predictions based on the structures of the compounds. Br-CH3, Br-CH2CH3, Br-CH(CH3)2, Br-C(CH3)3, Br-CH2-C5H6; C5H6 = phenyl Introduction Alkyl halides can be prepared from alcohols by reactions with hydrogen halides (HCI, HBr, or HI) via...
I have this case study to solve. i want to ask which type of case study in this like problem, evaluation or decision? if its decision then what are the criterias and all? Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...