Fortran Symbolic math calculations with Fortran 95

AI Thread Summary
The discussion centers on the challenge of performing symbolic math calculations in Fortran 95 using the Silverfrost ftn 95 platform. The user seeks to compute a symbolic expression like "c = a + b" without initializing the variables "a" and "b," aiming to output the expression itself rather than a numerical result. Despite experimenting with various data types, the user has encountered difficulties with error handling and has not found a solution. Other participants suggest that Fortran may not be the best choice for symbolic math, recommending alternatives like Maple for such tasks. The user expresses a desire for a relatively simple solution within Fortran.
Nomar_1985
Messages
2
Reaction score
0
Hi all
I am struggling to work symbolic math calculations with Fotran 95 in the Silverfrost ftn 95 plataform.

Say you want to calculate c=a+b but without initializing "a" or "b" to get a value "c", but rather print out or obtain the actual generic expresion "a+b"

I have tried to solve that using different data types (REAL, CHARACTER etc) but no way to handle the error exception for me.

Could somebody please give any light on this? I am new to Fotran and have not been able to find any solution on this.

Thanks in advance
 
Technology news on Phys.org
Why do you try to use FORTRAN? Of all languages I ever used I would never select it for doing such things.
 
Hi Borek, you are right, I had the same tought.
Better to do it with Mapple,
I just wanted to know if there was a relatively "simple" way to make it out
Thanks
 
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
12
Views
15K
Replies
20
Views
9K
Replies
7
Views
3K
Replies
4
Views
27K
Replies
13
Views
4K
Replies
2
Views
4K
Replies
16
Views
2K
Back
Top