answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

What is the synonym word for sustainability?

longevity prolongation preservation stay vital stay lively to continue survivability livelihood endurance


Write a program to represent a polynomial as linked list and write functions for polynimial addition?

#include<iostream.h> #include<stdlib.h> #include<conio.h> struct poly { int coeff; int x; int y; int z; struct poly * next; }; class polynomial { private : poly *head; public: polynomial():head(NULL) { } void getdata(); void display(); void insert(poly *prv,poly *curr,poly *p); polynomial operator + (polynomial ); }; polynomial polynomial :: operator +(polynomial px2) { polynomial px; poly *t1,*t2,*t3,*last; t1 = head; t2 = px2.head; px.head = NULL; while(t1 != NULL && t2 != NULL) { t3 = new poly; t3->next = NULL; if(t1->x t2->z) { t3->coeff = t1->coeff + t2->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; t2 = t2->next; } elseif(t1->x > t2->x) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->x < t2->x) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } elseif(t1->y > t2->y) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->y < t2->y) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } elseif(t1->z > t2->z) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->z < t2->z) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } if(px.head == NULL) px.head = t3; else last->next = t3; last = t3; } if(t1 == NULL) t3->next = t2; else t3->next = t1; return px; } void polynomial :: insert(poly *prv,poly *curr,poly *node) { if(node->x curr->z) { curr->coeff += node->coeff; delete node; } elseif((node->x > curr->x) (node->x curr->y && node->z > curr->z)) { node->next = curr; prv->next = node; } else { prv = curr; curr = curr->next; if(curr == NULL) { prv->next = node; node->next = NULL; return; } insert(prv,curr,node); } return; } void polynomial :: getdata() { int tempcoeff; poly *node; while(1) { cout << endl << "Coefficient : "; cin >> tempcoeff; if (tempcoeff==0) break; node = new poly; node->coeff = tempcoeff; cout << endl << "Power of X : "; cin >> node->x; cout << endl << "Power of Y : "; cin >> node->y; cout << endl << "Power of Z : "; cin >> node->z; if(head == NULL) { node->next = NULL; head = node; } elseif(node->x head->z) { head->coeff += node->coeff; delete node; } elseif((node->x > head->x) (node->x head->y && node->z > head->z)) { node->next = head; head = node; } elseif (head->next == NULL) { head->next = node; node->next = NULL; } else insert(head,head->next,node); } } void polynomial :: display() { poly *temp; temp = head; cout << endl << "Polynomial :: "; while(temp != NULL) { if(temp->coeff < 0) cout << " - "; cout << abs(temp->coeff); if(temp->x != 0) cout << "x^" << temp->x; if(temp->y != 0) cout << "y^" << temp->y; if(temp->z != 0) cout << "z^" << temp->z; if(temp->next->coeff > 0) cout << " + "; temp = temp->next; } cout << " = 0"; } void main() { polynomial px1,px2,px3; clrscr(); px1.getdata(); px2.getdata(); px3 = px1 + px2; px1.display(); px2.display(); px3.display(); getch(); }


A 60kg platform is 8m wide supported by 4 legs each of which are 2m from the edge of the platform What is the force on the left legs if a 30kg mass is placed on the left edge of the platform?

This problem asks to solve for unknown forces when an object is in equilibrium. Let us solve it! As platform is in equilibrium , so , by 1st condition of equilibrium, Upward forces = Downward forces T1+T2=600+300=900N , Now apply second condition, Anti-clockwise torque= Clockwise torque (taking point of first leg as axis of rotation so that torque due to T1 is zero) 300*2+T2*4=600*2 600-1200=-T2*4, 600=T2*4, or T2=600/4=150N ,now T1=90-T2=900-150=750N


How do you put signal in a sentence?

i have no signal on my phone i have signal on my phone i have no signal on my television i have signal on m y television the signal has been interupted i dont know the hand signal i need to know the signal what is the signal strength teach me the hand signals what is the signal for danger i have little signal i have high signal i have no signal how much signal do i have how do i tell how much signal i have is there a sign for signal by the way you already put it in a sentence by asking a question lol


How to use threads simultaneously?

Threads are meant to be used simultaneously. If you have 3 threads, you can run them simultaneously by starting them together. Ex: t1.start(); t2.start(); t3.start(); Assuming the three threads t1, t2 and t3 are already created.

Related Questions

What is patchy T2 prolongation along the undersurface of the supraspinatus tendon?

Lik


What is T2 signal in MRI?

The T2 signal is used by MRI machines to help identify different characteristics of tissues within the brain. For example, the T2 signal can help identify if the tissue contains too much water.


What is a t2 signal in the left paraspinous muscle?

There are a multitude of electrical signal released by neurons to activate a response in a muscle. A t2 signal in the left paraspinous muscle refers to the impulse from the t2 vertebrae to the muscle on the left of the spine .


Brain T2 signal abnormal?

What does it mean when the MRI states Marked patchy to confluent abnormal T2 signal white matter? increase brain T2 signal from white matter in MRI might be due to AIDS dementia complex


What is T2 signal intensity?

T2 signal intensity refers to the brightness of a tissue on a T2-weighted MRI image. Bright areas on T2-weighted images typically represent tissues with high water content or edema, while dark areas indicate tissues with low water content or dense structures. Variations in T2 signal intensity can provide important diagnostic information for identifying different tissues and abnormalities in the body.


What is a Hyperintense T2 signal mass in the region of the head of the pancreas?

what is hyper intense t2 lesion in the right liver lobe


What is heterogenous t2 signal mean?

A heterogeneous T2 signal means that there are areas within a tissue or structure that have different levels of signal intensity on a T2-weighted MRI image. This can indicate a mix of different tissue types, such as fluid-filled spaces, fibrosis, or inflammation. It may suggest underlying pathology or a mix of normal and abnormal tissue.


What can cause nonspecific foci of T2 prolongation of the subcortical and periventricular white matter?

Nonspecific foci of T2 prolongation in subcortical and periventricular white matter can be caused by a variety of conditions such as small vessel ischemic disease, chronic microvascular changes, demyelination, or inflammatory processes. It is commonly seen in conditions like small vessel disease, migraine, or chronic microvascular changes related to aging. Further evaluation may be needed to determine the exact cause in each individual case.


Are T2 and Flair signal hyperintensities associated with the white matter in the brain?

Yes, T2 and FLAIR signal hyperintensities are typically associated with white matter abnormalities in the brain. These hyperintensities can be seen in various conditions such as aging, vascular changes, inflammation, or demyelination. They can be important markers for diagnosing and monitoring neurological conditions.


What is curvilinear central increase T2?

Curvilinear central increase T2 signal refers to a particular pattern seen on MRI images where there is a crescent-shaped area of increased T2 signal intensity in the central portion of a structure. This can be seen in conditions such as infection, inflammation, or certain types of tumors where there is a combination of necrosis and reactive tissue changes. Further evaluation with additional imaging or clinical information is often needed to determine the specific underlying cause.


What is T2FLAIR?

T2 FLAIR is an MRI sequence used when scanning brain anatomy. It stands for Fluid Attenuated Inversion Recovery and is a T2 weighted scan where signal from CSF is nulled giving a good detailed view of brain anatomy.


What is 5mm focus of hyperintense t1 and t2 signal in the t8 vertebral body?

It is very likely to be a hemangioma- a benign collection of vessels.