Atlas - math.php
Home / lab / trail / php Lines: 5 | Size: 747 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1#!/usr/bin/env php 2<?php 3# SPDX-License-Identifier: GPL-3.0 4# The Language Trail 5# 6# math.php 7# Math operations in PHP 8# 9# COPYRIGHT NOTICE 10# Copyright (C) 2025 0x4248 and contributors 11# Redistribution and use in source and binary forms, with or without 12# modification, are permitted provided that the license is not changed. 13# 14# This software is free and open source. Licensed under the GNU general 15# public license version 3.0 as published by the Free Software Foundation. 16 17$a = 10; 18$b = 3; 19$sum = $a + $b; 20$product = $a * $b; 21echo "Sum: $sum\n"; 22echo "Product: $product\n"; 23 24# More advanced math functions 25$squareRoot = sqrt($a); 26$power = pow($a, $b); 27echo "Square root of $a: $squareRoot\n"; 28echo "$a raised to the power of $b: $power\n"; 29 30 31?>[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.