Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

recognition of the native c# function #253

Closed michaldengusiak closed 5 months ago

michaldengusiak commented 5 months ago

Is there a way to get recognition of the native c# function?

image

Proektsoftbg commented 5 months ago

Hi!

No, you cannot do this in Calcpad. But you can use the Calcpad functions Exp() and e^x instead. Otherwise there will be difficulties with formatting such code in the report. And since Calcpad is designed as a web based platform, this will also create security risks.

If you need C#, you can do the opposite - use Calcpad from inside C# as a library. The "Cli" project is a worked example now to do that. It takes the expression, gives it to the Calcpad.Code to parse and calculate and displays the results:

https://github.com/Proektsoftbg/Calcpad/blob/main/Calcpad.Cli/Program.cs