how to generate s-transform by programming

Hi
Recently I try to design a dc-dc converter that use a theory for limiting the current of inductor branch.
But I have some problems about programming. I don't know how to make some codes to explane s-transform for micro (I decide to use an Arduino due board).
I need help to learn how can I use C codes to make laplace and s-transform in AVR or ARM Programming.

You obviously know enough to know the names. But a Laplace transform is a model of a system. It is not the system itself.

A control system with gain and feedback can be anayzed using those transforms but you still have to build it with gain and feedback.

I think I didn't explained my problem correctly. I used Matlab for my simulations and everything was correct. Now that I want to build the converter, designing of the circuit has done but for programming the processor (AVR/Arduino) I don't know how can I make some codes to implement s-transform...
I need s-transform for implementation of a lead compensator that make changes on my error signal.
all I need is learning about how to make some codes for this s-transform.

Thanks for your attention

Now that I want to build the converter, designing of the circuit has done but for programming the processor (AVR/Arduino)

Most power supplies don't even have a microcontroller or software... And, if they are microprocessor controlled the code usually doesn't include any "advanced math".

Lots of filters, amplifiers, and oscillators, etc., are made without a microcontroller or software... But, software (or a calculator) may have been used to help with the design.

As Morgan says, you may be able to analyze or optimize your design with the help of these mathematical tools/models but they don't have to be included in your code.

It's similar to calculating a resistor or capacitor value. You make those calculations in advance of building the circuit but those calculations/formulas don't end-up in your firmware.

Thank's for your time.

Recently I made some changes in my project. Now I'm searching for some info to programming my arduino processors for implementing z-transform...
Actually, I used c2d in my application and now I'm using z-transform instead of s-function and laplace transform.
But I have some problem to make some codes by z-transform.
Does Arduino has any library that know z-transform? For example we use <math.h> to use sum or pow the numbers... or I think I read some codes about implementing PID function in arduino...
What about z-transform?
Is there any library or direct code for it??

thanks for your attention

No.

Well you can get a library to help with complex arithmetic: Arduino Playground - ComplexMath

What are you actually trying to do?

Filter design? Adaptive filtering?

If you used c2d you already have the problem solved. You should have an expression for the gain you want to implement in the form Y(z)/X(z) = (a0 + a1z^1 + a2z^2 + ...) / ( b0 + b1*z^1 + ... + z^n)

Y is the filter output and X is the input. You want to solve for Y(z)*z^n which is the last term for the output. You simply cross multiply and solve for Y(z)*z^n. This will give you a difference equation. Changing from the z domain to the time domain is trivial.

y[n] = - b(n-1)y[n-1] - ... -b1y[1] - b0y[0] + a0x[0] + a1x[1] + a2x[2] +...

This is the equation you put into your code. All you need to add is the shifting of the series terms as you iterate.
x[0] = x[1]
x[1] = x[2] ...etc.

Thank You All
My problem has solved