﻿ Digital Circuits and Systems - Circuits i Sistemes Digitals (CSD) - EETAC - UPC

## Project P1 tutorial on using WolframAlpha to analyse simple circuits

Computer simulation based in SPICE algorithms

1. Specifications

The aim is to obtain a circuit's truth table directly from the Boolean algebraic equation

1) The circuit and its algebraic equivalent equation    f = g(A, B, C, D)= ( (A + B)·C’·(A·D)’ )’

2. Solution

1)  WolframAlpha. A new and powerful computing tool available in the Internet from Wolfram Research.

2) Write the equations into WolframAlpha and run the software to obtain the truth table: 3) Computer's result: 4) Sometimes, depending on the variables order and names, you have to reinterpret the table to extract the minterms and maxterms (Circuit 1A and class notes. The set of equations to be used with WolframAlpha:   and the

5) Additionally, you may obtain the circuit representation:  Other similar projects

- Another example on how to use WolframAlpha to solve a truth table.

Other applications

- And sure, you can use WolframAlpha to calculate anything you like, for instance, y(x) = 5sin2(x4) ; The first derivative y'(x) = dy/dx = >  - And for instance:  integrate ( sqr (4-x^2) (x^3 cos(x/2) + 1/2 ) )dx from -2 to 2  