473,387 Members | 1,300 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,387 software developers and data experts.

symbolic algebra computation with list

Hello,

I have try symbolic algebra computation with list,
in c language. (It is only for fun)

This is the result of the example : c13.c

/* ---------------------------------------- */
A_n :
[+][a * &cos(x)^(1/2)]
[+][a * x^(1/2) * &cos(x)^(1/4)]
[+][a * &cos(x)]

I factorize A_n = (B*A)
B :
[&cos(x)^(1/4) * a]

A :
[+][&cos(x)^(1/4)]
[+][x^(1/2)]
[+][&cos(x)^(3/4)]
I refind A_n = B*A
C_n :
[+][a * &cos(x)^(1/2)]
[+][x^(1/2) * a * &cos(x)^(1/4)]
[+][a * &cos(x)]

Press return to continue.

/* ---------------------------------------- */

This is the result of the example : c14.c

/* ---------------------------------------- */

A_7 :
[+][a * &cos(x)^(1/4) * &sin(x)^(1/4)]
[+][a * &cos(x)^(1/4) * &sin(x)^(1/4)]
[+][a * &cos(x)^(1/4) * &sin(x)^(1/4)]
[+][b * &cot(x)^(1/4) * &tan(x)^(1/4)]
[+][b * &cot(x)^(1/4) * &tan(x)^(1/4)]
[+][a * (x)^(1/4) * &ln(x)^(1/4)]
[+][a * &exp(x)^(1/4)]

I combine the same lists

A_4 :
[+][a * &cos(x)^(1/4) * &sin(x)^(1/4) * 3 ]
[+][b * &cot(x)^(1/4) * &tan(x)^(1/4) * 2 ]
[+][a * (x)^(1/4) * &ln(x)^(1/4)]
[+][a * &exp(x)^(1/4)]

/* ---------------------------------------- */

If you can give me the list of the biggest mistake.

You can try the code here:

http://www.geocities.com/xhungab/z/c12_aa.zip

Apr 27 '07 #1
1 1216
On 28 huhti, 00:48, xhunga <xhun...@yahoo.frwrote:
Hello,

I have try symbolic algebra computation with list,
in c language. (It is only for fun)

This is the result of the example : c13.c

/* ---------------------------------------- */
A_n :
[+][a * &cos(x)^(1/2)]
[+][a * x^(1/2) * &cos(x)^(1/4)]
[+][a * &cos(x)]

I factorize A_n = (B*A)
B :
[&cos(x)^(1/4) * a]

A :
[+][&cos(x)^(1/4)]
[+][x^(1/2)]
[+][&cos(x)^(3/4)]

I refind A_n = B*A
C_n :
[+][a * &cos(x)^(1/2)]
[+][x^(1/2) * a * &cos(x)^(1/4)]
[+][a * &cos(x)]

Press return to continue.

/* ---------------------------------------- */

This is the result of the example : c14.c

/* ---------------------------------------- */

A_7 :
[+][a * &cos(x)^(1/4) * &sin(x)^(1/4)]
[+][a * &cos(x)^(1/4) * &sin(x)^(1/4)]
[+][a * &cos(x)^(1/4) * &sin(x)^(1/4)]
[+][b * &cot(x)^(1/4) * &tan(x)^(1/4)]
[+][b * &cot(x)^(1/4) * &tan(x)^(1/4)]
[+][a * (x)^(1/4) * &ln(x)^(1/4)]
[+][a * &exp(x)^(1/4)]

I combine the same lists

A_4 :
[+][a * &cos(x)^(1/4) * &sin(x)^(1/4) * 3 ]
[+][b * &cot(x)^(1/4) * &tan(x)^(1/4) * 2 ]
[+][a * (x)^(1/4) * &ln(x)^(1/4)]
[+][a * &exp(x)^(1/4)]

/* ---------------------------------------- */

If you can give me the list of the biggest mistake.

You can try the code here:

http://www.geocities.com/xhungab/z/c12_aa.zip
Please stop posting garbage. It's not even fun :)

Apr 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

35
by: Sandeep Sharma | last post by:
Right from the time the first edition of K&R was released, the advantages of using symbolic constants, as opposed to "magic numbers", has been emphasized ---- and for good reason. I don't dispute...
22
by: mp | last post by:
i have a python program which attempts to call 'cls' but fails: sh: line 1: cls: command not found i tried creating an alias from cls to clear in .profile, .cshrc, and /etc/profile, but none...
1
by: solarin | last post by:
Hi, I've developed a program under VS 6.0. I can compile it and run it, but when I try to debbug , all my breakpoints are dissabled and I can see the following messages: Loaded...
0
by: xhunga | last post by:
Symbolic computation : the derivative of a quotient. Hello, This time I try to simulate the derivative of a quotient. The same function use the quotient rule if it is a quotient (f/g) and the...
0
by: xhunga | last post by:
* Symbolic computation with the language c : The Derivative step by step. (Windows,Linux) You can find some examples into the file a_exampl.txt @ @
1
by: amygrant1701 | last post by:
Hi, I've done this before so I don't see what I could doing wrong here. I'm running mysql 5x on freebsd. I'm using the default data directory of "/var/db/mysql" In there I have several dozen...
1
by: muniba | last post by:
Relational algebric expression for the following: Draw two relational algebra query trees for the following query and show that one query tree is more eficient than the other. "Give the number...
0
by: tony_in_da_uk | last post by:
*** I posted this on comp.lang.c++.moderated a couple days ago, and got a near-flippant response from someone who clearly didn't take the time to consider the import. I replied, and it's still not...
1
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.