473,385 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how can i solve it on turbo C?

write C assignment statement to ecaluate the following equations:


Side = √(a^2+b^2-2ab cos(x) )
Oct 28 '08 #1
9 3032
gpraghuram
1,275 Expert 1GB
write C assignment statement to ecaluate the following equations:


Side = √(a^2+b^2-2ab cos(x) )

First you should convert the equation to pre-fix or post fix notation and then have a calculator code to evaluate it.
Also we cant write the code for you.

Raghu
Oct 29 '08 #2
newb16
687 512MB
First you should convert the equation to pre-fix or post fix notation and then have a calculator code to evaluate it.
Also we cant write the code for you.

I don't see there any need to write a calculator code. It just need to be converted to C assignment ( not equation ) using sqrt(), a*a instead power of 2, etc.
Oct 29 '08 #3
gpraghuram
1,275 Expert 1GB
I don't see there any need to write a calculator code. It just need to be converted to C assignment ( not equation ) using sqrt(), a*a instead power of 2, etc.

How will u evaluate the expression to get the output?

Raghu
Oct 29 '08 #4
newb16
687 512MB
How will u evaluate the expression to get the output?
Ewe need not to evaluate the expression, ewe need to write C language assignment, like
y = cos(sqrt(x)+x*x);
The rest is up to compiler and cpu.
Oct 29 '08 #5
gpraghuram
1,275 Expert 1GB
Ewe need not to evaluate the expression, ewe need to write C language assignment, like
y = cos(sqrt(x)+x*x);
The rest is up to compiler and cpu.

Thi idea what i told is a generic solution.

Raghu
Oct 30 '08 #6
First you should convert the equation to pre-fix or post fix notation and then have a calculator code to evaluate it.
Also we cant write the code for you.

Raghu
but i want the c programme of it
the programme that can solve the equation after giving values of a, b, x
Oct 30 '08 #7
r035198x
13,262 8TB
but i want the c programme of it
the programme that can solve the equation after giving values of a, b, x
Go ahead and write the program then. You've already been told how to do it. Write the code and test it. You can post again if you get problems with your code.
Oct 30 '08 #8
donbock
2,426 Expert 2GB
Take a look at the features provided by standard library <math.h>
Oct 30 '08 #9
boxfish
469 Expert 256MB
cmath reference.
Hope this helps.
Oct 30 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Developwebsites | last post by:
I am taking advanced C++ at college and we use Borland Turbo C++ 4.5 compiler. How different is Turbo C++ from the standard C++? I know Borland used to call their versions of C++ and Pascal Turbo,...
7
by: marek | last post by:
Dear colleagues, for one project, I need to link Turbo (or Borland) Pascal with (Turbo) C code. I would strongly like to avoid rewriting (my) C routines to Pascal (other part of project is under...
3
by: riku | last post by:
Does any1 know a site where i can download Turbo Pascal for free and is not a trial version. If you do, can u please tell me?
0
by: bitong | last post by:
I was just wondering when I installed a Turbo C in my computer..When I'm about to run my work it says there unable to input turbo.c..What does it mean? I already consolidated all the turbo C files in...
1
by: anonymous | last post by:
i wrote a graphical program in turbo c 3.0 ,it runs safe on turbo 3.0,(however i'm using xp) so when i wanted to run it for my teacher,both turbo c & program crashed; so i decided to compile it in...
16
by: scott | last post by:
I am looking for a copy of Turbo C 1.5 from 1987 for some historical research I'm doing into computing from that time period.
0
by: anonymous | last post by:
i wrote a graphical program in turbo c 3.0 ,it runs safe on turbo 3.0,(however i'm using xp) so when i wanted to run it for my teacher,both turbo c & program crashed; so i decided to compile it in...
3
by: postrishi | last post by:
Hello Everybody , I am a new user. I am currently using Turbo C++ 3.0 editor in my engg.Can you tell me or post me a ebook on turbo c++ and NOT on c or C++.MInd it I want a book on TURBO C++ editor...
2
by: mika_ella258 | last post by:
the output should be like this Loop Program -------------------- enter 1st integer: enter 2nd integer: enter 3rd integer: enter 4th integer: enter 5th integer:
4
by: Abe Kobei | last post by:
Hello. Is there an official website to obtain Turbo C 1.0? I know that I can download Turbo C 2.0 from Borland, but I want a smaller version, because I expect that older is smaller. I want...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.