Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Latest commit

 

History

History
46 lines (36 loc) · 1.31 KB

File metadata and controls

46 lines (36 loc) · 1.31 KB
page_type languages products description urlFragment jupyter
sample
qsharp
qdk
This sample demonstrates evaluating polynomial functions with the Q# numerics library.
evaluating-functions
jupytext kernelspec
cell_markers text_representation
region,endregion
extension format_name format_version jupytext_version
.md
markdown
1.2
1.5.2
display_name language name
.NET (PowerShell)
PowerShell
.net-powershell

Evaluating polynomial functions in Q#

This sample demonstrates:

  • How to use the Q# numerics library to evaluate polynomial functions.

Prerequisites

Running the Sample

To run the sample, use the dotnet run command from your terminal:

dotnet run

Manifest

  • EvaluatePolynomial.qs: Q# code implementing polynomial function evaluation.
  • Program.qs: A Q# standalone application that uses and tests polynomial function evaluation.
  • EvaluatingFunctions.csproj: Main Q# project for the sample.
  • remez.py: A Python script for calculating polynomial coefficients approximating a given function, using Remez's algorithm.